org.datamanager.constraint
Class OrEntityConstraint

java.lang.Object
  |
  +--org.datamanager.kernel.AbstractEntityConstraint
        |
        +--org.datamanager.constraint.OrEntityConstraint
All Implemented Interfaces:
Constraint, EntityConstraint, EntityValue, Serializable

public class OrEntityConstraint
extends AbstractEntityConstraint

OrEntityConstraint takes two EntityConstraints in its constructor. It matches all entities that match one or both of those constraints.

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
OrEntityConstraint(EntityConstraint p, EntityConstraint q)
          Create a new OrEntityConstraint to work on Entities
 
Method Summary
protected  boolean describes(Entity defendant)
          Check to see if the given Entity is valid or not.
 
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

OrEntityConstraint

public OrEntityConstraint(EntityConstraint p,
                          EntityConstraint q)
Create a new OrEntityConstraint to work on Entities

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

describes

protected boolean describes(Entity defendant)
                     throws DataManagerException
Check to see if the given Entity is valid or not.

Specified by:
describes in class AbstractEntityConstraint
Parameters:
defendant - An Entity to check.
Returns:
Whether the Entity was valid or not.
DataManagerException


See the Helium Website