uk.co.flamingpenguin.jewel.cli
Enum ArgumentValidationException.ValidationError.ErrorType

java.lang.Object
  extended by java.lang.Enum<ArgumentValidationException.ValidationError.ErrorType>
      extended by uk.co.flamingpenguin.jewel.cli.ArgumentValidationException.ValidationError.ErrorType
All Implemented Interfaces:
Serializable, Comparable<ArgumentValidationException.ValidationError.ErrorType>
Enclosing interface:
ArgumentValidationException.ValidationError

public static enum ArgumentValidationException.ValidationError.ErrorType
extends Enum<ArgumentValidationException.ValidationError.ErrorType>


Enum Constant Summary
AdditionalValue
           
HelpRequested
           
InvalidValueForType
           
MisplacedOption
           
MissingOption
           
MissingValue
           
PatternMismatch
           
UnableToConstructType
           
UnexpectedOption
           
UnexpectedTrailingValue
           
UnexpectedValue
           
 
Method Summary
abstract  String getDescription(ArgumentValidationException.ValidationError error)
           
static ArgumentValidationException.ValidationError.ErrorType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ArgumentValidationException.ValidationError.ErrorType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UnexpectedOption

public static final ArgumentValidationException.ValidationError.ErrorType UnexpectedOption

MissingValue

public static final ArgumentValidationException.ValidationError.ErrorType MissingValue

MisplacedOption

public static final ArgumentValidationException.ValidationError.ErrorType MisplacedOption

UnexpectedValue

public static final ArgumentValidationException.ValidationError.ErrorType UnexpectedValue

AdditionalValue

public static final ArgumentValidationException.ValidationError.ErrorType AdditionalValue

MissingOption

public static final ArgumentValidationException.ValidationError.ErrorType MissingOption

InvalidValueForType

public static final ArgumentValidationException.ValidationError.ErrorType InvalidValueForType

UnableToConstructType

public static final ArgumentValidationException.ValidationError.ErrorType UnableToConstructType

PatternMismatch

public static final ArgumentValidationException.ValidationError.ErrorType PatternMismatch

HelpRequested

public static final ArgumentValidationException.ValidationError.ErrorType HelpRequested

UnexpectedTrailingValue

public static final ArgumentValidationException.ValidationError.ErrorType UnexpectedTrailingValue
Method Detail

values

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

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

valueOf

public static ArgumentValidationException.ValidationError.ErrorType 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

getDescription

public abstract String getDescription(ArgumentValidationException.ValidationError error)


Copyright © 2006-2012 lexicalscope. All Rights Reserved.