ua.in.hutorny.util
Enum CommentRetriever.Option

java.lang.Object
  extended by java.lang.Enum<CommentRetriever.Option>
      extended by ua.in.hutorny.util.CommentRetriever.Option
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CommentRetriever.Option>
Enclosing class:
CommentRetriever

public static enum CommentRetriever.Option
extends java.lang.Enum<CommentRetriever.Option>

A set of options to opt CommentRetriever behavior - ( THROWERRORS, RETURNERRORS, VOIDERRORS, BLANKISERROR, NODEFAULTS, TRIMRESULT )

Author:
Eugene

Enum Constant Summary
BLANKISERROR
          Treat null and blank output as an error and handle them accordingly
NODEFAULTS
          Do not return a default section if the discriminator is not found
RETURNERRORS
          Return error message as the output value
THROWERRORS
          Throw exception when an error occurs
TRIMRESULT
          Trim output value prior to returning
VOIDERRORS
          Return a preset string when an error occurs
 
Method Summary
 int value()
           
static CommentRetriever.Option valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CommentRetriever.Option[] values()
          Returns an array containing the constants of this enum type, in the order they're 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

THROWERRORS

public static final CommentRetriever.Option THROWERRORS
Throw exception when an error occurs


RETURNERRORS

public static final CommentRetriever.Option RETURNERRORS
Return error message as the output value


VOIDERRORS

public static final CommentRetriever.Option VOIDERRORS
Return a preset string when an error occurs


BLANKISERROR

public static final CommentRetriever.Option BLANKISERROR
Treat null and blank output as an error and handle them accordingly


NODEFAULTS

public static final CommentRetriever.Option NODEFAULTS
Do not return a default section if the discriminator is not found


TRIMRESULT

public static final CommentRetriever.Option TRIMRESULT
Trim output value prior to returning

Method Detail

values

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

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

valueOf

public static CommentRetriever.Option 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

value

public int value()