org.datamanager.constraint
Class ValueClassIsConstraint

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

public class ValueClassIsConstraint
extends AbstractEntityConstraint

Check to see if the class type of an Entity's value is the same, or a subtype, of a specified class.

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
ValueClassIsConstraint(Class target)
          Create a new ValueClassIsConstraint looking for the given class type.
 
Method Summary
protected  boolean describes(Entity defendant)
          Check to see if the given Entity's value is of the right type.
 
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

ValueClassIsConstraint

public ValueClassIsConstraint(Class target)
Create a new ValueClassIsConstraint looking for the given class type.

Parameters:
target - The type that is valid.
Method Detail

describes

protected boolean describes(Entity defendant)
                     throws DataManagerException
Check to see if the given Entity's value is of the right type.

Specified by:
describes in class AbstractEntityConstraint
Parameters:
defendant - The Entity to check.
Returns:
Whether the given Entity is valid or not.
DataManagerException


See the Helium Website