public class CardinalityValidator extends Object implements GroupPropertyConstraintValidator, PropertyConstraintValidator
Cardinality
.Constructor and Description |
---|
CardinalityValidator() |
Modifier and Type | Method and Description |
---|---|
void |
validateGroupPropertyConstraint(Object[] values,
GroupPropertyConstraint constraint,
GroupPropertyDefinition property,
InstanceValidationContext context)
Validate
values against constraint . |
void |
validatePropertyConstraint(Object[] values,
PropertyConstraint constraint,
PropertyDefinition property,
InstanceValidationContext context)
Validate
values against constraint . |
public void validatePropertyConstraint(Object[] values, PropertyConstraint constraint, PropertyDefinition property, InstanceValidationContext context) throws ValidationException
PropertyConstraintValidator
values
against constraint
. The
constraint and the values belong to property
.validatePropertyConstraint
in interface PropertyConstraintValidator
values
- the values to validate, may be null
constraint
- the constraint to validateproperty
- the property the values and the constraint belong tocontext
- the validation contextValidationException
- if the validation failspublic void validateGroupPropertyConstraint(Object[] values, GroupPropertyConstraint constraint, GroupPropertyDefinition property, InstanceValidationContext context) throws ValidationException
GroupPropertyConstraintValidator
values
against constraint
. The
constraint and the values belong to property
.validateGroupPropertyConstraint
in interface GroupPropertyConstraintValidator
values
- the values to validate, may be null
constraint
- the constraint to validateproperty
- the property the values and the constraint belong tocontext
- the validation contextValidationException
- if the validation failsBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a