FileDocCategorySizeDatePackage
Constraint.javaAPI DocGlassfish v2 API2999Fri May 04 22:34:58 BST 2007com.sun.enterprise.tools.common.validation.constraints

Constraint

public interface Constraint
Constraint is an Interface needed to perform a Validation. User can define a new type of Validation by implementing this Interface. Method match defines the Validation logic. This method returns an empty collection if the value being validated is valid; else it returns a Collection with a {@link ConstraintFailure} object in it.
author
Rajeshwar Patil
version
%I%, %G%

Fields Summary
Constructors Summary
Methods Summary
public java.util.Collectionmatch(java.lang.String value, java.lang.String name)
Validates the given value against this Constraint.

param
value the value to be validated
param
name the element name, value of which is being validated.
return
Collection the Collection of failure Objects. Collection is empty if there are no failures.