org.wwbota.identification
Class EnumerationCharacter

java.lang.Object
  |
  +--org.wwbota.identification.EnumerationCharacter
All Implemented Interfaces:
Character

public class EnumerationCharacter
extends java.lang.Object
implements Character

The simplest type of a character à la Delta, a Character with String enumerated values ("multistate" in Delta), hence the name "EnumerationCharacter".


Constructor Summary
EnumerationCharacter(java.lang.String name)
           
 
Method Summary
 void addPossibleState(java.lang.String s)
           
 java.lang.String getName()
           
 java.util.List getPossibleValues()
           
 java.lang.Class getType()
           
 java.lang.String getURI()
           
 boolean isPossibleState(java.lang.Object state)
           
 Criterion makeCriterion(java.lang.String spec)
          A factory for a Criterion of the type associated to the Character
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EnumerationCharacter

public EnumerationCharacter(java.lang.String name)
Method Detail

isPossibleState

public boolean isPossibleState(java.lang.Object state)

addPossibleState

public void addPossibleState(java.lang.String s)

getPossibleValues

public java.util.List getPossibleValues()

makeCriterion

public Criterion makeCriterion(java.lang.String spec)
A factory for a Criterion of the type associated to the Character
Specified by:
makeCriterion in interface Character

getType

public java.lang.Class getType()
Specified by:
getType in interface Character
Following copied from interface: org.wwbota.identification.Character
Returns:
the base type, a simple type: Int, Double, String. Currently unused, but probably useful for introspection purposes.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getName

public java.lang.String getName()
Specified by:
getName in interface Character

getURI

public java.lang.String getURI()
Specified by:
getURI in interface Character