bpiwowar.argparser
Enum ArgParserOption

java.lang.Object
  extended by java.lang.Enum<ArgParserOption>
      extended by bpiwowar.argparser.ArgParserOption
All Implemented Interfaces:
Serializable, Comparable<ArgParserOption>

public enum ArgParserOption
extends Enum<ArgParserOption>


Enum Constant Summary
EXCEPTION_ON_ERROR
          Throw an exception if there is an error
EXCEPTION_ON_UNMATCHED
          Throw an exception if unmatched
EXIT_ON_ERROR
          Stop the parse at the first error
EXIT_ON_UNMATCHED
          Stop if there remains unmatched arguments
STOP_FIRST_UNMATCHED
          Stop the parse at the first unmatched argument
 
Method Summary
static ArgParserOption valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ArgParserOption[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

EXIT_ON_ERROR

public static final ArgParserOption EXIT_ON_ERROR
Stop the parse at the first error


STOP_FIRST_UNMATCHED

public static final ArgParserOption STOP_FIRST_UNMATCHED
Stop the parse at the first unmatched argument


EXIT_ON_UNMATCHED

public static final ArgParserOption EXIT_ON_UNMATCHED
Stop if there remains unmatched arguments


EXCEPTION_ON_UNMATCHED

public static final ArgParserOption EXCEPTION_ON_UNMATCHED
Throw an exception if unmatched


EXCEPTION_ON_ERROR

public static final ArgParserOption EXCEPTION_ON_ERROR
Throw an exception if there is an error

Method Detail

values

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

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

valueOf

public static ArgParserOption 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
NullPointerException - if the argument is null


Copyright © 2013. All Rights Reserved.