org.datamanager.constraint
Class AndEntityConstraint
java.lang.Object
|
+--org.datamanager.kernel.AbstractEntityConstraint
|
+--org.datamanager.constraint.AndEntityConstraint
- All Implemented Interfaces:
- Constraint, EntityConstraint, EntityValue, Serializable
- public class AndEntityConstraint
- extends AbstractEntityConstraint
AndEntityConstraint matches all entities that match both
of the EntityConstraints given to it in its constructor.
- Author:
- Matthew Farrellee
- See Also:
- Serialized Form
Method Summary |
protected boolean |
describes(Entity defendant)
Check to see if the given Entity is valid or not. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AndEntityConstraint
public AndEntityConstraint(EntityConstraint p,
EntityConstraint q)
- Create a new AndEntityConstraint to work on Entitys
- Parameters:
p
- An EntityConstraint.q
- An EntityConstraint.
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