public enum VersionSegment extends Enum<VersionSegment> implements Enumerator
P2Package.getVersionSegment()
Enum Constant and Description |
---|
MAJOR
The 'Major' literal object.
|
MICRO
The 'Micro' literal object.
|
MINOR
The 'Minor' literal object.
|
QUALIFIER
The 'Qualifier' literal object.
|
Modifier and Type | Field and Description |
---|---|
static int |
MAJOR_VALUE
The 'Major' literal value.
|
static int |
MICRO_VALUE
The 'Micro' literal value.
|
static int |
MINOR_VALUE
The 'Minor' literal value.
|
static int |
QUALIFIER_VALUE
The 'Qualifier' literal value.
|
static List<VersionSegment> |
VALUES
A public read-only list of all the 'Version Segment' enumerators.
|
Modifier and Type | Method and Description |
---|---|
static VersionSegment |
get(int value)
Returns the 'Version Segment' literal with the specified integer value.
|
static VersionSegment |
get(String literal)
Returns the 'Version Segment' literal with the specified literal value.
|
static VersionSegment |
getByName(String name)
Returns the 'Version Segment' literal with the specified name.
|
String |
getLiteral() |
String |
getName() |
int |
getValue() |
String |
toString()
Returns the literal value of the enumerator, which is its string representation.
|
static VersionSegment |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static VersionSegment[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VersionSegment MAJOR
MAJOR_VALUE
public static final VersionSegment MINOR
MINOR_VALUE
public static final VersionSegment MICRO
MICRO_VALUE
public static final VersionSegment QUALIFIER
QUALIFIER_VALUE
public static final int MAJOR_VALUE
If the meaning of 'Major' literal object isn't clear, there really should be more of a description here...
MAJOR
,
Constant Field Valuespublic static final int MINOR_VALUE
If the meaning of 'Minor' literal object isn't clear, there really should be more of a description here...
MINOR
,
Constant Field Valuespublic static final int MICRO_VALUE
If the meaning of 'Micro' literal object isn't clear, there really should be more of a description here...
MICRO
,
Constant Field Valuespublic static final int QUALIFIER_VALUE
If the meaning of 'Qualifier' literal object isn't clear, there really should be more of a description here...
QUALIFIER
,
Constant Field Valuespublic static final List<VersionSegment> VALUES
public static VersionSegment[] values()
for (VersionSegment c : VersionSegment.values()) System.out.println(c);
public static VersionSegment valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static VersionSegment get(String literal)
public static VersionSegment getByName(String name)
public static VersionSegment get(int value)
public int getValue()
getValue
in interface Enumerator
public String getName()
getName
in interface Enumerator
public String getLiteral()
getLiteral
in interface Enumerator
public String toString()
toString
in class Enum<VersionSegment>
Copyright (c) 2014 Eike Stepper (Loehne, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v2.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v20.html