fr.inria.opengve.tools
Enum CommandLineParse.OptionType

java.lang.Object
  extended by java.lang.Enum<CommandLineParse.OptionType>
      extended by fr.inria.opengve.tools.CommandLineParse.OptionType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CommandLineParse.OptionType>
Enclosing class:
CommandLineParse

public static enum CommandLineParse.OptionType
extends java.lang.Enum<CommandLineParse.OptionType>

Enumeration of all option type.

Author:
fabrice.peix@sophia.inria.fr

Enum Constant Summary
BOOLEAN_OPTION
          Boolean option type
DOUBLE_OPTION
          Double option type
INTEGER_OPTION
          Integer option type
LONG_OPTION
          Long option type
STRING_OPTION
          String option type
 
Method Summary
static CommandLineParse.OptionType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CommandLineParse.OptionType[] 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

BOOLEAN_OPTION

public static final CommandLineParse.OptionType BOOLEAN_OPTION
Boolean option type


INTEGER_OPTION

public static final CommandLineParse.OptionType INTEGER_OPTION
Integer option type


LONG_OPTION

public static final CommandLineParse.OptionType LONG_OPTION
Long option type


DOUBLE_OPTION

public static final CommandLineParse.OptionType DOUBLE_OPTION
Double option type


STRING_OPTION

public static final CommandLineParse.OptionType STRING_OPTION
String option type

Method Detail

values

public static final CommandLineParse.OptionType[] 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(CommandLineParse.OptionType c : CommandLineParse.OptionType.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static CommandLineParse.OptionType valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name


Copyright © 2009 INRIA (Projet Mascotte). All Rights Reserved.