org.datamanager.constraint
Class EntityEqualsConstraint

java.lang.Object
  |
  +--org.datamanager.kernel.AbstractEntityConstraint
        |
        +--org.datamanager.constraint.EntityEqualsConstraint
All Implemented Interfaces:
Constraint, EntityConstraint, EntityValue, Serializable

public class EntityEqualsConstraint
extends AbstractEntityConstraint

Check to see if a given Entity is equal to another.

Author:
Benjamin Keil
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.datamanager.kernel.AbstractEntityConstraint
DEBUG_ACCEPTS_MESSAGE
 
Fields inherited from interface org.datamanager.constraint.EntityConstraint
NONE
 
Constructor Summary
EntityEqualsConstraint(Entity match)
          Create a new EntityEqualsConstraint.
 
Method Summary
protected  boolean describes(Entity defendant)
          Check whether the given Entity is the same as the Entity specified in the constructor.
 
Methods inherited from class org.datamanager.kernel.AbstractEntityConstraint
accepts
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityEqualsConstraint

public EntityEqualsConstraint(Entity match)
Create a new EntityEqualsConstraint.

Parameters:
match - Entity to match.
Method Detail

describes

protected boolean describes(Entity defendant)
                     throws DataManagerException
Check whether the given Entity is the same as the Entity specified in the constructor.

Specified by:
describes in class AbstractEntityConstraint
Parameters:
defendant - An Entity to check.
Returns:
Whether the two Entities are the same.
DataManagerException


See the Helium Website