org.datamanager.constraint
Class ValueEqualsConstraint
java.lang.Object
|
+--org.datamanager.kernel.AbstractEntityConstraint
|
+--org.datamanager.constraint.ValueEqualsConstraint
- All Implemented Interfaces:
- Constraint, EntityConstraint, EntityValue, Serializable
- public class ValueEqualsConstraint
- extends AbstractEntityConstraint
Check whether the value of an Entity is the same as a given value.
- See Also:
- Serialized Form
Method Summary |
protected boolean |
describes(Entity entity)
Report whether the given entity's value matches the stored value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValueEqualsConstraint
public ValueEqualsConstraint(PassiveEntityValue value)
- Store a given PassiveEntityValue.
describes
protected boolean describes(Entity entity)
throws DataManagerException
- Report whether the given entity's value matches the stored value.
- Specified by:
describes
in class AbstractEntityConstraint
- Parameters:
entity
- An entity to check.
- Returns:
- Whether the entity is acceptable or not.
DataManagerException
See the Helium Website