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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NameEqualsConstraint
public NameEqualsConstraint(String name)
- Create a new NameEqualsConstraint.
- Parameters:
name
- The name to target.
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