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

Field Summary
 
Fields inherited from class org.datamanager.kernel.AbstractEntityConstraint
DEBUG_ACCEPTS_MESSAGE
 
Fields inherited from interface org.datamanager.constraint.EntityConstraint
NONE
 
Constructor Summary
ValueEqualsConstraint(PassiveEntityValue value)
          Store a given PassiveEntityValue.
 
Method Summary
protected  boolean describes(Entity entity)
          Report whether the given entity's value matches the stored value.
 
Methods inherited from class org.datamanager.kernel.AbstractEntityConstraint
accepts
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueEqualsConstraint

public ValueEqualsConstraint(PassiveEntityValue value)
Store a given PassiveEntityValue.

Method Detail

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