You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by dr...@apache.org on 2010/03/28 13:20:48 UTC
svn commit: r928376 -
/tapestry/tapestry5/trunk/tapestry-beanvalidator/src/main/java/org/apache/tapestry5/beanvalidator/ClientConstraintDescriptor.java
Author: drobiazko
Date: Sun Mar 28 11:20:47 2010
New Revision: 928376
URL: http://svn.apache.org/viewvc?rev=928376&view=rev
Log:
Some javadoc fixes.
Modified:
tapestry/tapestry5/trunk/tapestry-beanvalidator/src/main/java/org/apache/tapestry5/beanvalidator/ClientConstraintDescriptor.java
Modified: tapestry/tapestry5/trunk/tapestry-beanvalidator/src/main/java/org/apache/tapestry5/beanvalidator/ClientConstraintDescriptor.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-beanvalidator/src/main/java/org/apache/tapestry5/beanvalidator/ClientConstraintDescriptor.java?rev=928376&r1=928375&r2=928376&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-beanvalidator/src/main/java/org/apache/tapestry5/beanvalidator/ClientConstraintDescriptor.java (original)
+++ tapestry/tapestry5/trunk/tapestry-beanvalidator/src/main/java/org/apache/tapestry5/beanvalidator/ClientConstraintDescriptor.java Sun Mar 28 11:20:47 2010
@@ -29,6 +29,14 @@ public final class ClientConstraintDescr
private final String validatorName;
private final Set<String> attributes;
+ /**
+ * Creates a {@link ClientConstraintDescriptor}.
+ *
+ * @param annotationClass Type of the constraint annotation
+ * @param validatorName Name of the client-side validator
+ * @param attributes Attribute names of the constraint annotation to be passed (along with their values) to the JavaScript validator
+ * function as an {@link JSONObject}.
+ */
public ClientConstraintDescriptor(final Class annotationClass,
final String validatorName, final String... attributes)
{
@@ -54,8 +62,8 @@ public final class ClientConstraintDescr
}
/**
- * Returns a map containing the annotation attribute names as keys and the annotation attribute values as value.
- * This map is passed to the client-side validator as a {@link JSONObject}.
+ * Attribute names of the constraint annotation to be passed (along with their values) to the JavaScript validator
+ * function as an {@link JSONObject}.
*/
public Set<String> getAttributes()
{