public final class ClientConstraintDescriptor extends Object
Constructor and Description |
---|
ClientConstraintDescriptor(Class annotationClass,
String validatorName,
String... attributes)
Creates a
ClientConstraintDescriptor . |
Modifier and Type | Method and Description |
---|---|
Class |
getAnnotationClass()
Returns the annotation describing the constraint declaration.
|
Set<String> |
getAttributes()
Attribute names of the constraint annotation to be passed (along with their values) to the JavaScript validator
function as an
JSONObject . |
String |
getValidatorName()
Returns the name of the client-side validator.
|
public ClientConstraintDescriptor(Class annotationClass, String validatorName, String... attributes)
ClientConstraintDescriptor
.annotationClass
- Type of the constraint annotationvalidatorName
- Name of the client-side validatorattributes
- Attribute names of the constraint annotation to be passed (along with their values) to the JavaScript validator
function as an JSONObject
.public Class getAnnotationClass()
public String getValidatorName()
public Set<String> getAttributes()
JSONObject
.Copyright © 2003-2012 The Apache Software Foundation.