org.apache.tapestry5.beanvalidator
Class ClientConstraintDescriptor

java.lang.Object
  extended by org.apache.tapestry5.beanvalidator.ClientConstraintDescriptor

public final class ClientConstraintDescriptor
extends Object

Describes a single client-side constraint.


Constructor Summary
ClientConstraintDescriptor(Class annotationClass, String validatorName, String... attributes)
          Creates a ClientConstraintDescriptor.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientConstraintDescriptor

public ClientConstraintDescriptor(Class annotationClass,
                                  String validatorName,
                                  String... attributes)
Creates a ClientConstraintDescriptor.

Parameters:
annotationClass - Type of the constraint annotation
validatorName - Name of the client-side validator
attributes - Attribute names of the constraint annotation to be passed (along with their values) to the JavaScript validator function as an JSONObject.
Method Detail

getAnnotationClass

public Class getAnnotationClass()
Returns the annotation describing the constraint declaration.


getValidatorName

public String getValidatorName()
Returns the name of the client-side validator.


getAttributes

public Set<String> getAttributes()
Attribute names of the constraint annotation to be passed (along with their values) to the JavaScript validator function as an JSONObject.



Copyright © 2003-2012 The Apache Software Foundation.