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

Field Summary
 
Fields inherited from class org.datamanager.kernel.AbstractEventConstraint
DEBUG_ACCEPTS_MESSAGE
 
Fields inherited from interface org.datamanager.constraint.EventConstraint
NONE
 
Constructor Summary
OrEventConstraint(EventConstraint p, EventConstraint q)
          Create a new OrEventConstraint to work on Events
 
Method Summary
protected  boolean describes(DataManagerEvent defendant)
          Check to see if the given event is valid or not.
 
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

OrEventConstraint

public OrEventConstraint(EventConstraint p,
                         EventConstraint q)
Create a new OrEventConstraint to work on Events

Parameters:
p - An EventConstraint.
q - An EventConstraint.
Method Detail

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