org.datamanager.constraint
Class OrEventConstraint
java.lang.Object
|
+--org.datamanager.kernel.AbstractEventConstraint
|
+--org.datamanager.constraint.OrEventConstraint
- All Implemented Interfaces:
- Constraint, EntityValue, EventConstraint, Serializable
- public class OrEventConstraint
- extends AbstractEventConstraint
OrEventConstraint takes two EventConstraints in its constructor.
It matches all events that match one or both of those constraints.
- Author:
- Matthew Farrellee
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OrEventConstraint
public OrEventConstraint(EventConstraint p,
EventConstraint q)
- Create a new OrEventConstraint to work on Events
- Parameters:
p
- An EventConstraint.q
- An EventConstraint.
describes
protected boolean describes(DataManagerEvent defendant)
throws DataManagerException
- Check to see if the given event is valid or not.
- Specified by:
describes
in class AbstractEventConstraint
- Parameters:
defendant
- An event to check.
- Returns:
- Whether the event was valid or not.
DataManagerException
See the Helium Website