public interface Constraint
The Constraint
class represents a single data constraint
Modifier and Type | Method and Description |
---|---|
ValidatorError |
checkConstraint(java.lang.Object value)
Check the field against this Constraint to see
if it is in a valid state.
|
java.lang.String |
getDataType()
This will return the
String version of the Java data type for this
constraint. |
java.lang.String |
getIdentifier()
Get the named identifier of this Constraint
|
void |
setDataType(java.lang.String dataTypeIn)
This will allow the data type for the constraint to be set.
|
ValidatorError checkConstraint(java.lang.Object value)
value
- the value to checkjava.lang.String getIdentifier()
java.lang.String getDataType()
This will return the String
version of the Java data type for this
constraint.
String
- the data type for this constraint.void setDataType(java.lang.String dataTypeIn)
This will allow the data type for the constraint to be set. The type is specified
as a Java String
.
dataTypeIn
- String
that is the Java data type for this constraint.