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
Method Summary |
protected boolean |
describes(Entity defendant)
Decide if the Entity is acceptable or not. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValueInRangeConstraint
public ValueInRangeConstraint(double low,
double high)
- Create a new ValueInRangeConstraint.
- Parameters:
low
- Lower bounds.high
- Upper bounds.
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