com.isti.trinetwatch.ruleset
Class ComparisonValue

java.lang.Object
  extended by com.isti.trinetwatch.ruleset.ComparisonValue
All Implemented Interfaces:
IComparisonValue

public abstract class ComparisonValue
extends java.lang.Object
implements IComparisonValue


Field Summary
static java.lang.String REG_EX_VALUE_END_TEXT
          Regular expression value end text.
static java.lang.String REG_EX_VALUE_START_TEXT
          Regular expression value start text.
 
Method Summary
 java.lang.Number getNumber()
          Gets the value as a number.
 java.lang.Object getValue()
          Returns the value.
static void main(java.lang.String[] args)
           
 java.lang.String toString()
          Returns a string representation of this object.
static IComparisonValue valueOf(java.lang.Object value)
          Get a comparison value for the specified value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.isti.trinetwatch.ruleset.IComparisonValue
matches
 

Field Detail

REG_EX_VALUE_START_TEXT

public static final java.lang.String REG_EX_VALUE_START_TEXT
Regular expression value start text.

See Also:
Constant Field Values

REG_EX_VALUE_END_TEXT

public static final java.lang.String REG_EX_VALUE_END_TEXT
Regular expression value end text.

See Also:
Constant Field Values
Method Detail

getNumber

public java.lang.Number getNumber()
Gets the value as a number.

Specified by:
getNumber in interface IComparisonValue
Returns:
the value as a number or null if it is not a number.

getValue

public java.lang.Object getValue()
Returns the value.

Specified by:
getValue in interface IComparisonValue
Returns:
the value.

toString

public java.lang.String toString()
Returns a string representation of this object.

Overrides:
toString in class java.lang.Object
Returns:
a string representation of this object.

main

public static void main(java.lang.String[] args)

valueOf

public static IComparisonValue valueOf(java.lang.Object value)
Get a comparison value for the specified value.

Parameters:
value - the value.
Returns:
a comparison value or null if none.