|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.generic.constraint.AbstractConstraint
com.tensegrity.generic.constraint.EnumConstraint
com.tensegrity.generic.constraint.OpenEnumConstraint
*
The class OpenEnumConstraint provides the same functionality and
comes with the same behaviour as the EnumConstraint class.
The difference between them is that the OpenEnumConstraint
allows values that are not part of the given list of alternatives. In other
words the OpenEnumConstraint allows any value but provides a
list of alternatives.
| Field Summary |
| Fields inherited from class com.tensegrity.generic.constraint.EnumConstraint |
lastError |
| Constructor Summary | |
OpenEnumConstraint(java.lang.Object[] enumeration)
Constructor with list of alternatives given by enumeration. |
|
| Method Summary | |
boolean |
validate(java.lang.Object value)
Validates this contraint against a given value. |
| Methods inherited from class com.tensegrity.generic.constraint.EnumConstraint |
getAlternatives, intern, toString, trace |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public OpenEnumConstraint(java.lang.Object[] enumeration)
enumeration.
enumeration - the list of alternatives| Method Detail |
public boolean validate(java.lang.Object value)
Constraintnull.
validate in interface Constraintvalidate in class EnumConstraint
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||