Package com.sun.tools.ws.wscompile
Enum Options.Target
- java.lang.Object
-
- java.lang.Enum<Options.Target>
-
- com.sun.tools.ws.wscompile.Options.Target
-
- All Implemented Interfaces:
Serializable,Comparable<Options.Target>
- Enclosing class:
- Options
public static enum Options.Target extends Enum<Options.Target>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Options.TargetgetDefault()static Options.TargetgetLoadedAPIVersion()StringgetVersion()Gives the String representation of theOptions.TargetbooleanisLaterThan(Options.Target t)Returns true if this version is equal or later than the given one.static Options.Targetparse(String token)Parses "2.0" and "2.1" into theOptions.Targetobject.static Options.TargetvalueOf(String name)Returns the enum constant of this type with the specified name.static Options.Target[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
V2_0
public static final Options.Target V2_0
-
V2_1
public static final Options.Target V2_1
-
V2_2
public static final Options.Target V2_2
-
-
Method Detail
-
values
public static Options.Target[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Options.Target c : Options.Target.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Options.Target valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
isLaterThan
public boolean isLaterThan(Options.Target t)
Returns true if this version is equal or later than the given one.
-
parse
public static Options.Target parse(String token)
Parses "2.0" and "2.1" into theOptions.Targetobject.- Returns:
- null for parsing failure.
-
getVersion
public String getVersion()
Gives the String representation of theOptions.Target
-
getDefault
public static Options.Target getDefault()
-
getLoadedAPIVersion
public static Options.Target getLoadedAPIVersion()
-
-