Class BaseConstraint
java.lang.Object
com.webmethods.caf.faces.validator.bean.BaseConstraint
- Direct Known Subclasses:
AssertFalseConstraint
,AssertTrueConstraint
,BaseDateConstraint
,DecimalMaxConstraint
,DecimalMinConstraint
,DigitsConstraint
,MaxConstraint
,MinConstraint
,PatternConstraint
,SizeConstraint
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMetadata
(FacesContext context, ValidatorFactory validatorFactory, ConstraintDescriptor<?> constraintDescriptor, UIInput input) Returns a map of properties that should be passed to the client-side validation function to assist with validation in the browser.
-
Constructor Details
-
BaseConstraint
public BaseConstraint()
-
-
Method Details
-
getMetadata
public Map<String,Object> getMetadata(FacesContext context, ValidatorFactory validatorFactory, ConstraintDescriptor<?> constraintDescriptor, UIInput input) Returns a map of properties that should be passed to the client-side validation function to assist with validation in the browser.- Parameters:
context
- the current faces contextvalidatorFactory
- the validator factoryconstraint
- the bean validation constraint descriptorinput
- the control the constraint is for- Returns:
- map of properties
-