public class ValidationConstraint extends Object implements TypeConstraint
Constructor and Description |
---|
ValidationConstraint()
Default constructor.
|
ValidationConstraint(Validator validator,
TypeDefinition type)
Constructs a constraint with the given validator.
|
Modifier and Type | Method and Description |
---|---|
Validator |
getValidator()
Returns the validator for this constraint.
|
boolean |
isInheritable()
Determines if the constraint is inheritable, meaning it may be used for a
sub-type.
|
public ValidationConstraint()
public ValidationConstraint(Validator validator, TypeDefinition type)
validator
- the validatortype
- the typepublic Validator getValidator()
public boolean isInheritable()
TypeConstraint
isInheritable
in interface TypeConstraint
TypeConstraint.isInheritable()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a