org.datamanager.constraint
Class NotEventConstraint

java.lang.Object
  |
  +--org.datamanager.kernel.AbstractEventConstraint
        |
        +--org.datamanager.constraint.NotEventConstraint
All Implemented Interfaces:
Constraint, EntityValue, EventConstraint, Serializable

public class NotEventConstraint
extends AbstractEventConstraint

Logical Not for EventConstraints.

Author:
Matthew Farrellee
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.datamanager.kernel.AbstractEventConstraint
DEBUG_ACCEPTS_MESSAGE
 
Fields inherited from interface org.datamanager.constraint.EventConstraint
NONE
 
Constructor Summary
NotEventConstraint(EventConstraint negated)
          Create a NotEventConstraint to work on Events.
 
Method Summary
protected  boolean describes(DataManagerEvent defendant)
          Check to see if the event satisfies the EventConstraint given in the constructor and then negate the result.
 
Methods inherited from class org.datamanager.kernel.AbstractEventConstraint
accepts
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotEventConstraint

public NotEventConstraint(EventConstraint negated)
Create a NotEventConstraint to work on Events.

Parameters:
negated - EventConstraint to negate.
Method Detail

describes

protected boolean describes(DataManagerEvent defendant)
                     throws DataManagerException
Check to see if the event satisfies the EventConstraint given in the constructor and then negate the result.

Specified by:
describes in class AbstractEventConstraint
Parameters:
defendant - An event to check.
Returns:
Whether the event is valid or not.
DataManagerException


See the Helium Website