csheets.ext.assertion
Enum Assertion.ComparisonResult

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

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

The possible results when two assertions are compared.

See Also:
AssertableCell.assertAssertions()

Enum Constant Summary
ILLEGAL_INTERVAL
          Denotes that the system generated assertion for this cell can not be generated because the formula in this cell contains a possible illegal mathematic operation.
NON_EQUAL
          Denotes that the user supplied assertion and the system generated assertion associated with this cell do not represent the same range(s) of values.
OK
          Denotes that the assertions on this cell are okay
 
Method Summary
 String getErrorMsg()
           
 void setErrorMsg(String msg)
           
static Assertion.ComparisonResult valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Assertion.ComparisonResult[] 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.ComparisonResult OK
Denotes that the assertions on this cell are okay


NON_EQUAL

public static final Assertion.ComparisonResult NON_EQUAL
Denotes that the user supplied assertion and the system generated assertion associated with this cell do not represent the same range(s) of values.


ILLEGAL_INTERVAL

public static final Assertion.ComparisonResult ILLEGAL_INTERVAL
Denotes that the system generated assertion for this cell can not be generated because the formula in this cell contains a possible illegal mathematic operation. Such as division by zero or calculations with an imaginary result. (Due to either an error in the formula itself or in the assertion(s) of its precedents.

Method Detail

values

public static final Assertion.ComparisonResult[] 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.ComparisonResult c : Assertion.ComparisonResult.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.ComparisonResult 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

setErrorMsg

public void setErrorMsg(String msg)

getErrorMsg

public String getErrorMsg()