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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NotEventConstraint
public NotEventConstraint(EventConstraint negated)
- Create a NotEventConstraint to work on Events.
- Parameters:
negated
- EventConstraint to negate.
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