EchoPoint
1.0

echopoint.stylesheet
Class SymbolicNumberValue

java.lang.Object
  extended byechopoint.stylesheet.SymbolicNumberValue
All Implemented Interfaces:
java.io.Serializable, SymbolicValue
Direct Known Subclasses:
SymbolicIntegerValue

public class SymbolicNumberValue
extends java.lang.Object
implements SymbolicValue

A SymbolicValue for number data. The getValue will always return an Integer object.

See Also:
Serialized Form

Field Summary
protected  java.lang.String symbolic
           
protected  java.lang.Number value
           
 
Constructor Summary
SymbolicNumberValue(java.lang.Number value, java.lang.String symbol)
          Constructor that takes an integer value and symbolic string
 
Method Summary
 java.lang.String getSymbolic()
          The symbolic string value for a given object value It must not be null.
 java.lang.Object getValue()
          The actual object value for a given symbolic value.
 boolean matches(java.lang.String testSymbolicValue)
          Matching is done with case insensitivity!
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

value

protected java.lang.Number value

symbolic

protected java.lang.String symbolic
Constructor Detail

SymbolicNumberValue

public SymbolicNumberValue(java.lang.Number value,
                           java.lang.String symbol)
Constructor that takes an integer value and symbolic string

Method Detail

getSymbolic

public java.lang.String getSymbolic()
Description copied from interface: SymbolicValue
The symbolic string value for a given object value It must not be null.

Specified by:
getSymbolic in interface SymbolicValue
Returns:
a symbolic String
See Also:
SymbolicValue.getSymbolic()

getValue

public java.lang.Object getValue()
Description copied from interface: SymbolicValue
The actual object value for a given symbolic value.

Specified by:
getValue in interface SymbolicValue
Returns:
an object value
See Also:
SymbolicValue.getValue()

matches

public boolean matches(java.lang.String testSymbolicValue)
Matching is done with case insensitivity!

Specified by:
matches in interface SymbolicValue
Parameters:
testSymbolicValue -
Returns:
true if the symbolic values match
See Also:
SymbolicValue.matches(java.lang.String)

toString

public java.lang.String toString()
See Also:
Object.toString()

EchoPoint
1.0