org.datamanager.constraint
Class AttributeExistsConstraint
java.lang.Object
|
+--org.datamanager.kernel.AbstractEntityConstraint
|
+--org.datamanager.constraint.AttributeExistsConstraint
- All Implemented Interfaces:
- Constraint, EntityConstraint, EntityValue, Serializable
- public class AttributeExistsConstraint
- extends AbstractEntityConstraint
Filter out Entities that have an attribute which satisifies
a given EntityConstraint.
- Author:
- Benjamin Keil
- See Also:
- Serialized Form
Method Summary |
protected boolean |
describes(Entity defendant)
Check to see if the given Entity has an attribute
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 |
AttributeExistsConstraint
public AttributeExistsConstraint(EntityConstraint attributeConstraint)
- Create a new AttributeExistsConstraint to match all
Entities that have an attribute matching the given
EntityConstraint.
- Parameters:
attributeConstraint
- Constraint to use to match
bases.
describes
protected boolean describes(Entity defendant)
throws DataManagerException
- Check to see if the given Entity has an attribute
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 an attribute
that satisfies the constraint given
in the constructor of this constriant.
DataManagerException
See the Helium Website