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".
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
EnumerationCharacter
public EnumerationCharacter(java.lang.String name)
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