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

Field Summary
 
Fields inherited from class org.datamanager.kernel.AbstractEntityConstraint
DEBUG_ACCEPTS_MESSAGE
 
Fields inherited from interface org.datamanager.constraint.EntityConstraint
NONE
 
Constructor Summary
NotEntityConstraint(EntityConstraint negated)
          Create a NotEntityConstraint to work on Entities.
 
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 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

NotEntityConstraint

public NotEntityConstraint(EntityConstraint negated)
Create a NotEntityConstraint to work on Entities.

Parameters:
negated - EntityConstraint to negate.
Method Detail

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