com.sun.tools.ws.wscompile
Enum Options.Target

java.lang.Object
  extended by java.lang.Enum<Options.Target>
      extended by 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>


Enum Constant Summary
V2_0
           
V2_1
           
 
Method Summary
 String getVersion()
          Gives the String representation of the Options.Target
 boolean isLaterThan(Options.Target t)
          Returns true if this version is equal or later than the given one.
static Options.Target parse(String token)
          Parses "2.0" and "2.1" into the Options.Target object.
static Options.Target valueOf(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're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

V2_0

public static final Options.Target V2_0

V2_1

public static final Options.Target V2_1
Method Detail

values

public static final Options.Target[] values()
Returns an array containing the constants of this enum type, in the order they're 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're 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 name

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 the Options.Target object.

Returns:
null for parsing failure.

getVersion

public String getVersion()
Gives the String representation of the Options.Target