org.datamanager.constraint
Class NameEqualsIgnoringCaseConstraint

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

public class NameEqualsIgnoringCaseConstraint
extends AbstractEntityConstraint

Check the name of an Entity and ignore case.

Author:
Matthew Farrellee
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
NameEqualsIgnoringCaseConstraint(String name)
          Create a new NameEqualsIgnoringCaseConstraint.
 
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, ignoring the case of both Strings.
 
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

NameEqualsIgnoringCaseConstraint

public NameEqualsIgnoringCaseConstraint(String name)
Create a new NameEqualsIgnoringCaseConstraint.

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, ignoring the case of both Strings.

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