Interface ClientConstraintDescriptor
-
- All Known Implementing Classes:
BaseCCD
public interface ClientConstraintDescriptor
Applies client-side validation constraints based on a particular JSR 303 annotation. Note: converted from a final class to an interface as part of 5.4.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidapplyClientValidation(MarkupWriter writer, java.lang.String message, java.util.Map<java.lang.String,java.lang.Object> attributes)Applies the validationjava.lang.ClassgetAnnotationClass()The annotation class that drives this descriptor.java.util.Set<java.lang.String>getAttributes()Names of attributes from theConstraintDescriptorthat are relevant.
-
-
-
Method Detail
-
getAnnotationClass
java.lang.Class getAnnotationClass()
The annotation class that drives this descriptor.
-
getAttributes
java.util.Set<java.lang.String> getAttributes()
Names of attributes from theConstraintDescriptorthat are relevant.
-
applyClientValidation
void applyClientValidation(MarkupWriter writer, java.lang.String message, java.util.Map<java.lang.String,java.lang.Object> attributes)
Applies the validation- Parameters:
writer- used to write new attributes into the HTML tag for the user interface elementmessage- error message to present to user when the constraint is violatedattributes- getAttributes() selected attributes} from theConstraintDescriptor
-
-