org.datamanager.constraint
Class NameEqualsConstraint

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

public class NameEqualsConstraint
extends AbstractEntityConstraint

Check the name of an Entity.

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
NameEqualsConstraint(String name)
          Create a new NameEqualsConstraint.
 
Method Summary
protected  boolean describes(Entity defendant)
          Check to see if the String given in the constructor of this constraint is in the name of the given Entity.
 
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

NameEqualsConstraint

public NameEqualsConstraint(String name)
Create a new NameEqualsConstraint.

Parameters:
name - The name to target.
Method Detail

describes

protected boolean describes(Entity defendant)
                     throws DataManagerException
Check to see if the String given in the constructor of this constraint is in the name of the given Entity.

Specified by:
describes in class AbstractEntityConstraint
Parameters:
defendant - An Entity to check.
Returns:
Whether the target String was in the name of the given Entity.
DataManagerException


See the Helium Website