org.datamanager.constraint
Class EventContainsEntityConstraint
java.lang.Object
|
+--org.datamanager.kernel.AbstractEventConstraint
|
+--org.datamanager.constraint.EventContainsEntityConstraint
- All Implemented Interfaces:
- Constraint, EntityValue, EventConstraint, Serializable
- public class EventContainsEntityConstraint
- extends AbstractEventConstraint
This EventConstraint describes a subset of Entity-containing events that
are described by a given EntityConstraint. It selects all Events marked
with a ContainsEntityEvent type and then applies the EntityConstraint to
those Events.
- Version:
- $Revision: 1.4 $
- Author:
- Team Helium
- See Also:
- Serialized Form
Method Summary |
protected boolean |
describes(DataManagerEvent event)
Returns true if and only if event is a
ContainsEntityEvent and the Entity in the event satisfies the
constraint passed into the constructor of this constraint. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EventContainsEntityConstraint
public EventContainsEntityConstraint(EntityConstraint constraint)
- Create a new EventConstainsEntityConstraint to check
for Entities that satisfy the given EntityConstraint.
- Parameters:
constraint
- An EntityConstraint to use when filtering
newly added entities.
describes
protected boolean describes(DataManagerEvent event)
throws DataManagerException
- Returns true if and only if
event
is a
ContainsEntityEvent and the Entity in the event satisfies the
constraint passed into the constructor of this constraint.
- Specified by:
describes
in class AbstractEventConstraint
- Parameters:
event
- An event to check
- Returns:
- Whether the event is an AddEntityPoolEvent and the
new Entity in the event satisfies the constraint
given in the constructor of this constraint.
DataManagerException
See the Helium Website