org.datamanager.constraint
Class NotEntityConstraint
java.lang.Object
|
+--org.datamanager.kernel.AbstractEntityConstraint
|
+--org.datamanager.constraint.NotEntityConstraint
- All Implemented Interfaces:
- Constraint, EntityConstraint, EntityValue, Serializable
- public class NotEntityConstraint
- extends AbstractEntityConstraint
Logical Not for EntityConstraints.
- Author:
- Matthew Farrellee
- See Also:
- Serialized Form
Method Summary |
protected boolean |
describes(Entity defendant)
Check to see if an Entity satisfies the EntityConstraint
given in the constructor and then negate the result. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NotEntityConstraint
public NotEntityConstraint(EntityConstraint negated)
- Create a NotEntityConstraint to work on Entities.
- Parameters:
negated
- EntityConstraint to negate.
describes
protected boolean describes(Entity defendant)
throws DataManagerException
- Check to see if an Entity satisfies the EntityConstraint
given in the constructor and then negate the result.
- Specified by:
describes
in class AbstractEntityConstraint
- Parameters:
defendant
- An Entity to check.
- Returns:
- Whether the Entity is valid or not.
DataManagerException
See the Helium Website