org.globus.cog.gridshell.getopt.interfaces
Interface Option

All Superinterfaces:
Comparable, Storable
All Known Implementing Classes:
OptionImpl

public interface Option
extends Storable, Comparable

Option is a value that is associated a string value of a short key (one character) and/or a long key (more than one character)


Field Summary
static Boolean FALSE
          Used for flag variables for false
static Boolean TRUE
          Used for flag variables for true
 
Method Summary
 String getLong()
          Returns the long key associated with this option
 String getShort()
          Returns the short key associated with this option
 boolean isFlag()
          Determines if this is a flag option.
 
Methods inherited from interface org.globus.cog.gridshell.getopt.interfaces.Storable
getDescription, getType, getValue, isRequired, isSet, setValue
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

TRUE

public static final Boolean TRUE
Used for flag variables for true


FALSE

public static final Boolean FALSE
Used for flag variables for false

Method Detail

getShort

public String getShort()
Returns the short key associated with this option

Returns:

getLong

public String getLong()
Returns the long key associated with this option

Returns:

isFlag

public boolean isFlag()
Determines if this is a flag option. If isFlag is true, then the value of it is true if the option appears, false if it doesn't. If isFlag is false, there must be a value specified at the commandline for it.

Returns: