[hibernate-commits] Hibernate SVN: r16600 - beanvalidation/trunk/validation-api/src/main/java/javax/validation/constraints.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Tue May 19 09:44:49 EDT 2009


Author: hardy.ferentschik
Date: 2009-05-19 09:44:49 -0400 (Tue, 19 May 2009)
New Revision: 16600

Modified:
   beanvalidation/trunk/validation-api/src/main/java/javax/validation/constraints/Pattern.java
Log:
javadoc fixes

Modified: beanvalidation/trunk/validation-api/src/main/java/javax/validation/constraints/Pattern.java
===================================================================
--- beanvalidation/trunk/validation-api/src/main/java/javax/validation/constraints/Pattern.java	2009-05-19 13:26:30 UTC (rev 16599)
+++ beanvalidation/trunk/validation-api/src/main/java/javax/validation/constraints/Pattern.java	2009-05-19 13:44:49 UTC (rev 16600)
@@ -1,3 +1,20 @@
+// $Id: Past.java 16368 2009-04-21 09:51:00Z epbernard $
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2008, Red Hat Middleware LLC, and individual contributors
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+* http://www.apache.org/licenses/LICENSE-2.0
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
 package javax.validation.constraints;
 
 import java.lang.annotation.Target;
@@ -24,22 +41,22 @@
 @Constraint(validatedBy = {})
 public @interface Pattern {
 	/**
-	 * regular expression to match
+	 * @return The regular expression to match.
 	 */
 	String regexp();
 
 	/**
-	 * Flags considered when resolving the regular expression
+	 * @return Array of <code>Flag</code> enumeration instances considered when resolving the regular expression.
 	 */
 	Flag[] flags() default {};
 
 	/**
-	 * error message template
+	 * @return The error message template.
 	 */
 	String message() default "{constraint.pattern}";
 
 	/**
-	 * groups the constraint belongs to
+	 * @return The groups the constraint belongs to.
 	 */
 	Class<?>[] groups() default { };
 




More information about the hibernate-commits mailing list