csheets.ext.assertion
Enum Assertion.Result

java.lang.Object
  extended by java.lang.Enum<Assertion.Result>
      extended by csheets.ext.assertion.Assertion.Result
All Implemented Interfaces:
Serializable, Comparable<Assertion.Result>
Enclosing class:
Assertion

public static enum Assertion.Result
extends Enum<Assertion.Result>

Enumeration indicating the result of a validation of a value.


Enum Constant Summary
FAILED
          Indicates the assertion failed.
NAN
          Indicates the assertion failed because the data was not a number.
NO_DATA
          Indicates there was no data to validate.
OK
          Indicates the assertion succeeded.
 
Method Summary
static Assertion.Result valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Assertion.Result[] 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

OK

public static final Assertion.Result OK
Indicates the assertion succeeded.


FAILED

public static final Assertion.Result FAILED
Indicates the assertion failed.


NO_DATA

public static final Assertion.Result NO_DATA
Indicates there was no data to validate.


NAN

public static final Assertion.Result NAN
Indicates the assertion failed because the data was not a number.

Method Detail

values

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

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

valueOf

public static Assertion.Result 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