org.datamanager.constraint
Class BaseExistsConstraint
java.lang.Object
|
+--org.datamanager.kernel.AbstractEntityConstraint
|
+--org.datamanager.constraint.BaseExistsConstraint
- All Implemented Interfaces:
- Constraint, EntityConstraint, EntityValue, Serializable
- public class BaseExistsConstraint
- extends AbstractEntityConstraint
Filter out Entities that have a base which satisifies
a given EntityConstraint.
- Author:
- Benjamin Keil
- See Also:
- Serialized Form
Constructor Summary |
BaseExistsConstraint(EntityConstraint baseConstraint)
Create a new BaseExistsConstraint to match all
Entities that have a base matching the given
EntityConstraint. |
Method Summary |
protected boolean |
describes(Entity defendant)
Check to see if the given Entity has a base
that satisfies the constraint given in the
constructor of this constraint. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseExistsConstraint
public BaseExistsConstraint(EntityConstraint baseConstraint)
- Create a new BaseExistsConstraint to match all
Entities that have a base matching the given
EntityConstraint.
- Parameters:
baseConstraint
- Constraint to use to match
bases.
describes
protected boolean describes(Entity defendant)
throws DataManagerException
- Check to see if the given Entity has a base
that satisfies the constraint given in the
constructor of this constraint.
- Specified by:
describes
in class AbstractEntityConstraint
- Parameters:
defendant
- An Entity to check.
- Returns:
- Whether the Entity has a base
that satisfies the constraint given
in the constructor of this constriant.
DataManagerException
See the Helium Website