com.sun.tools.xjc.api
public class SpecVersion extends Enum<SpecVersion>
| Field Summary | |
|---|---|
| static SpecVersion | LATEST |
| static SpecVersion | V2_0 |
| static SpecVersion | V2_1 |
| static SpecVersion | V2_2 |
| static List<SpecVersion> | VALUES An immutable list containing the values comprising this enum class in the order they're declared. |
| Method Summary | |
|---|---|
| List<SpecVersion> | family() Returns an immutable list containing the values comprising this enum class in the order they're declared. |
| boolean | isLaterThan(SpecVersion t)
Returns true if this version is equal or later than the given one. |
| static SpecVersion | parse(String token)
Parses "2.0", "2.1", and "2.2" into the SpecVersion object.
|
| static SpecVersion | valueOf(String name) Static factory to return the enum constant pertaining to the given string name. |
for(SpecVersion c : SpecVersion.VALUES)
System.out.println(c);VALUES. Few programmers should have any need to use this method. It is provided for use by sophisticated enum-based data structures to prevent the need for reflective access to VALUES.Returns: an immutable list containing the values comprising this enum class, in the order they're declared.
Returns: null for parsing failure.
Throws: IllegalArgumentException if this enum class has no constant with the specified name.