org.datamanager.constraint
Interface EntityConstraint
- All Superinterfaces:
- Constraint, EntityValue, Serializable
- All Known Implementing Classes:
- AbstractEntityConstraint
- public interface EntityConstraint
- extends Constraint
Constraints define a set of entities. For any given entity,
a constraint's accepts method should return true if that
Entity is a member of its set, and false if it doesn't.
- Author:
- Matthew Farrellee
Method Summary |
boolean |
accepts(Entity defendant)
Reports whether a given entity fits the set of Entities
defined by this constraint. |
NONE
public static final EntityConstraint NONE
- Matches all entities.
accepts
public boolean accepts(Entity defendant)
throws DataManagerException
- Reports whether a given entity fits the set of Entities
defined by this constraint.
DataManagerException
See the Helium Website