Class BaseCCD
- java.lang.Object
-
- org.apache.tapestry5.internal.beanvalidator.BaseCCD
-
- All Implemented Interfaces:
ClientConstraintDescriptor
public abstract class BaseCCD extends Object implements ClientConstraintDescriptor
Describes a single client-side constraint.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 anJSONObject
.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.tapestry5.beanvalidator.ClientConstraintDescriptor
applyClientValidation
-
-
-
-
Constructor Detail
-
BaseCCD
public BaseCCD(Class annotationClass, String... attributes)
Creates aBaseCCD
.- Parameters:
annotationClass
- Type of the constraint annotationattributes
- Attribute names of the constraint annotation to be passed (along with their values) to the JavaScript validator function as anJSONObject
.
-
-
Method Detail
-
getAnnotationClass
public Class getAnnotationClass()
Returns the annotation describing the constraint declaration.- Specified by:
getAnnotationClass
in interfaceClientConstraintDescriptor
-
getAttributes
public Set<String> getAttributes()
Attribute names of the constraint annotation to be passed (along with their values) to the JavaScript validator function as anJSONObject
.- Specified by:
getAttributes
in interfaceClientConstraintDescriptor
-
-