org.datamanager.constraint
Class ValueInRangeConstraint

java.lang.Object
  |
  +--org.datamanager.kernel.AbstractEntityConstraint
        |
        +--org.datamanager.constraint.ValueInRangeConstraint
All Implemented Interfaces:
Constraint, EntityConstraint, EntityValue, Serializable

public class ValueInRangeConstraint
extends AbstractEntityConstraint

See if the value of an Entity is within a specific range.

Author:
Benjamin Keil
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
ValueInRangeConstraint(double low, double high)
          Create a new ValueInRangeConstraint.
 
Method Summary
protected  boolean describes(Entity defendant)
          Decide if the Entity is acceptable or not.
 
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

ValueInRangeConstraint

public ValueInRangeConstraint(double low,
                              double high)
Create a new ValueInRangeConstraint.

Parameters:
low - Lower bounds.
high - Upper bounds.
Method Detail

describes

protected boolean describes(Entity defendant)
                     throws DataManagerException
Decide if the Entity is acceptable or not.

Specified by:
describes in class AbstractEntityConstraint
Parameters:
defendant - Entity to check.
Returns:
Whether the Entity satisfies this constraint or not.
DataManagerException


See the Helium Website