[jboss-cvs] JBossAS SVN: r97336 - in projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator: es-ES and 4 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Dec 2 21:29:19 EST 2009
Author: xhuang at jboss.com
Date: 2009-12-02 21:29:18 -0500 (Wed, 02 Dec 2009)
New Revision: 97336
Modified:
projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/de-DE/Author_Group.po
projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/de-DE/Book_Info.po
projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/de-DE/Preface.po
projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/de-DE/Revision_History.po
projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/de-DE/checkconstraints.po
projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/de-DE/defineconstraints.po
projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/es-ES/Author_Group.po
projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/es-ES/Book_Info.po
projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/es-ES/Preface.po
projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/es-ES/Revision_History.po
projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/es-ES/checkconstraints.po
projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/es-ES/defineconstraints.po
projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/fr-FR/Author_Group.po
projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/fr-FR/Book_Info.po
projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/fr-FR/Preface.po
projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/fr-FR/Revision_History.po
projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/fr-FR/checkconstraints.po
projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/fr-FR/defineconstraints.po
projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/ja-JP/Author_Group.po
projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/ja-JP/Book_Info.po
projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/ja-JP/Preface.po
projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/ja-JP/Revision_History.po
projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/ja-JP/checkconstraints.po
projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/ja-JP/defineconstraints.po
projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/pt-BR/Author_Group.po
projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/pt-BR/Book_Info.po
projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/pt-BR/Preface.po
projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/pt-BR/Revision_History.po
projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/pt-BR/checkconstraints.po
projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/pt-BR/defineconstraints.po
projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/zh-CN/Author_Group.po
projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/zh-CN/Book_Info.po
projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/zh-CN/Preface.po
projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/zh-CN/Revision_History.po
projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/zh-CN/checkconstraints.po
projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/zh-CN/defineconstraints.po
Log:
update po via publican 1.0
Modified: projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/de-DE/Author_Group.po
===================================================================
--- projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/de-DE/Author_Group.po 2009-12-03 01:31:33 UTC (rev 97335)
+++ projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/de-DE/Author_Group.po 2009-12-03 02:29:18 UTC (rev 97336)
@@ -1,5 +0,0 @@
-#. Tag: author
-#: Author_Group.xml:6
-#, no-c-format
-msgid "<firstname>Red Hat Documentation Group</firstname> <surname></surname>"
-msgstr ""
Modified: projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/de-DE/Book_Info.po
===================================================================
--- projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/de-DE/Book_Info.po 2009-12-03 01:31:33 UTC (rev 97335)
+++ projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/de-DE/Book_Info.po 2009-12-03 02:29:18 UTC (rev 97336)
@@ -1,25 +1,16 @@
#. Tag: title
-#: Book_Info.xml:6
#, no-c-format
msgid "Hibernate Validator Reference Guide"
msgstr ""
#. Tag: subtitle
-#: Book_Info.xml:7
#, no-c-format
msgid "for Use with JBoss Enterprise Application Platform 5.0"
msgstr ""
#. Tag: para
-#: Book_Info.xml:14
#, no-c-format
msgid ""
"The JBoss Enterprise Application Platform Edition of the Hibernate Validator "
"Reference Guide"
msgstr ""
-
-#. Tag: holder
-#: Book_Info.xml:25
-#, no-c-format
-msgid "&HOLDER;"
-msgstr ""
Modified: projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/de-DE/Preface.po
===================================================================
--- projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/de-DE/Preface.po 2009-12-03 01:31:33 UTC (rev 97335)
+++ projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/de-DE/Preface.po 2009-12-03 02:29:18 UTC (rev 97336)
@@ -1,11 +1,9 @@
#. Tag: title
-#: Preface.xml:7
#, no-c-format
msgid "Preface"
msgstr ""
#. Tag: para
-#: Preface.xml:9
#, no-c-format
msgid ""
"Annotations are a very convenient and elegant way to specify invariant "
@@ -20,7 +18,6 @@
msgstr ""
#. Tag: para
-#: Preface.xml:20
#, no-c-format
msgid ""
"Hibernate Validator works at two levels. First, it is able to check in-"
@@ -30,7 +27,6 @@
msgstr ""
#. Tag: para
-#: Preface.xml:25
#, no-c-format
msgid ""
"Each constraint annotation is associated to a validator implementation "
@@ -44,7 +40,6 @@
msgstr ""
#. Tag: para
-#: Preface.xml:35
#, no-c-format
msgid ""
"When checking instances at runtime, Hibernate Validator returns information "
Modified: projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/de-DE/Revision_History.po
===================================================================
--- projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/de-DE/Revision_History.po 2009-12-03 01:31:33 UTC (rev 97335)
+++ projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/de-DE/Revision_History.po 2009-12-03 02:29:18 UTC (rev 97336)
@@ -1,11 +1,9 @@
#. Tag: title
-#: Revision_History.xml:6
#, no-c-format
msgid "Revision History"
msgstr ""
-#. Tag: author
-#: Revision_History.xml:12
+#. Tag: member
#, no-c-format
-msgid "<firstname></firstname> <surname></surname> <email></email>"
+msgid "Initial draft."
msgstr ""
Modified: projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/de-DE/checkconstraints.po
===================================================================
--- projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/de-DE/checkconstraints.po 2009-12-03 01:31:33 UTC (rev 97335)
+++ projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/de-DE/checkconstraints.po 2009-12-03 02:29:18 UTC (rev 97336)
@@ -1,11 +1,9 @@
#. Tag: title
-#: checkconstraints.xml:3
#, no-c-format
msgid "Using the Validator framework"
msgstr ""
#. Tag: para
-#: checkconstraints.xml:5
#, no-c-format
msgid ""
"Hibernate Validator is intended to be used to implement multi-layered data "
@@ -14,19 +12,16 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:10
#, no-c-format
msgid "This chapter will cover Hibernate Validator usage for different layers"
msgstr ""
#. Tag: title
-#: checkconstraints.xml:14
#, no-c-format
msgid "Database schema-level validation"
msgstr ""
#. Tag: para
-#: checkconstraints.xml:16
#, no-c-format
msgid ""
"Out of the box, Hibernate Annotations will translate the constraints you "
@@ -37,7 +32,6 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:22
#, no-c-format
msgid ""
"Using hbm2ddl, domain model constraints will be expressed into the database "
@@ -45,7 +39,6 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:25
#, no-c-format
msgid ""
"If, for some reason, the feature needs to be disabled, set "
@@ -54,13 +47,11 @@
msgstr ""
#. Tag: title
-#: checkconstraints.xml:31
#, no-c-format
msgid "ORM integration"
msgstr ""
#. Tag: para
-#: checkconstraints.xml:33
#, no-c-format
msgid ""
"Hibernate Validator integrates with both Hibernate and all pure Java "
@@ -68,13 +59,11 @@
msgstr ""
#. Tag: title
-#: checkconstraints.xml:37
#, no-c-format
msgid "Hibernate event-based validation"
msgstr ""
#. Tag: para
-#: checkconstraints.xml:39
#, no-c-format
msgid ""
"Hibernate Validator has two built-in Hibernate event listeners. Whenever a "
@@ -90,7 +79,6 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:51
#, no-c-format
msgid ""
"If Hibernate Validator is present in the classpath, Hibernate Annotations "
@@ -100,7 +88,6 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:58
#, no-c-format
msgid ""
"If the beans are not annotated with validation annotations, there is no "
@@ -108,40 +95,18 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:62
#, no-c-format
msgid ""
"In case you need to manually set the event listeners for Hibernate Core, use "
"the following configuration in <literal>hibernate.cfg.xml</literal>:"
msgstr ""
-#. Tag: programlisting
-#: checkconstraints.xml:66
-#, no-c-format
-msgid ""
-"<hibernate-configuration>\n"
-" ...\n"
-" <event type=\"pre-update\">\n"
-" <listener \n"
-" class=\"org.hibernate.validator.event.ValidateEventListener\"/"
-">\n"
-" </event>\n"
-" <event type=\"pre-insert\">\n"
-" <listener \n"
-" class=\"org.hibernate.validator.event.ValidateEventListener\"/"
-">\n"
-" </event>\n"
-"</hibernate-configuration>"
-msgstr ""
-
#. Tag: title
-#: checkconstraints.xml:70
#, no-c-format
msgid "Java Persistence event-based validation"
msgstr ""
#. Tag: para
-#: checkconstraints.xml:72
#, no-c-format
msgid ""
"Hibernate Validator is not tied to Hibernate for event based validation: a "
@@ -156,24 +121,11 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:83
#, no-c-format
msgid "Here is how to make a class validatable:"
msgstr ""
-#. Tag: programlisting
-#: checkconstraints.xml:85
-#, no-c-format
-msgid ""
-"@Entity\n"
-"@EntityListeners( JPAValidateListener.class )\n"
-"public class Submarine {\n"
-" ...\n"
-"}"
-msgstr ""
-
#. Tag: para
-#: checkconstraints.xml:88
#, no-c-format
msgid ""
"Compared to the Hibernate event, the Java Persistence listener has two "
@@ -182,42 +134,26 @@
msgstr ""
#. Tag: title
-#: checkconstraints.xml:97
#, no-c-format
msgid "Application-level validation"
msgstr ""
#. Tag: para
-#: checkconstraints.xml:99
#, no-c-format
msgid "Hibernate Validator can be applied anywhere in your application code."
msgstr ""
-#. Tag: programlisting
-#: checkconstraints.xml:102
-#, no-c-format
-msgid ""
-"ClassValidator personValidator = new ClassValidator( Person.class );\n"
-"ClassValidator addressValidator = new ClassValidator( Address.class, "
-"ResourceBundle.getBundle(\"messages\", Locale.ENGLISH) );\n"
-"\n"
-"InvalidValue[] validationMessages = addressValidator.getInvalidValues"
-"(address);"
-msgstr ""
-
#. Tag: para
-#: checkconstraints.xml:104
#, no-c-format
msgid ""
"The first two lines prepare the Hibernate Validator for class checking. The "
"first one relies upon the error messages embedded in Hibernate Validator "
-"(see <xref linkend=\"validator-defineconstraints-error\"/>), the second one "
+"(see <xref linkend=\"validator-defineconstraints-error\" />), the second one "
"uses a resource bundle for these messages. It is considered a good practice "
"to execute these lines once and cache the validator instances."
msgstr ""
#. Tag: para
-#: checkconstraints.xml:111
#, no-c-format
msgid ""
"The third line actually validates the <literal>Address</literal> instance "
@@ -226,37 +162,18 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:115
#, no-c-format
msgid ""
"You can also check a particular property instead of the whole bean. This "
"might be useful for property per property user interaction"
msgstr ""
-#. Tag: programlisting
-#: checkconstraints.xml:118
-#, no-c-format
-msgid ""
-"ClassValidator addressValidator = new ClassValidator( Address.class, "
-"ResourceBundle.getBundle(\"messages\", Locale.ENGLISH) );\n"
-"\n"
-"//only get city property invalid values\n"
-"InvalidValue[] validationMessages = addressValidator.getInvalidValues"
-"(address, \"city\");\n"
-"\n"
-"//only get potential city property invalid values\n"
-"InvalidValue[] validationMessages = addressValidator."
-"getPotentialInvalidValues(\"city\", \"Paris\")"
-msgstr ""
-
#. Tag: title
-#: checkconstraints.xml:122
#, no-c-format
msgid "Presentation layer validation"
msgstr ""
#. Tag: para
-#: checkconstraints.xml:124
#, no-c-format
msgid ""
"When working with JSF and <productname>JBoss Seam</productname>, one can "
@@ -266,34 +183,7 @@
"violations presented in the view"
msgstr ""
-#. Tag: programlisting
-#: checkconstraints.xml:130
-#, no-c-format
-msgid ""
-"<h:form>\n"
-" <div>\n"
-" <h:messages/>\n"
-" </div>\n"
-" <emphasis role=\"bold\"><s:validateAll></emphasis>\n"
-" <div>\n"
-" Country:\n"
-" <h:inputText value=\"#{location.country}\" required=\"true\"/"
-">\n"
-" </div>\n"
-" <div>\n"
-" Zip code:\n"
-" <h:inputText value=\"#{location.zip}\" required=\"true\"/"
-">\n"
-" </div>\n"
-" <div>\n"
-" <h:commandButton/>\n"
-" </div>\n"
-" <emphasis role=\"bold\"></s:validateAll></emphasis>\n"
-"</h:form>"
-msgstr ""
-
#. Tag: para
-#: checkconstraints.xml:132
#, no-c-format
msgid ""
"Going even further, and adding <productname>Ajax4JSF</productname> to the "
@@ -302,7 +192,6 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:137
#, no-c-format
msgid ""
"Check the <ulink url=\"http://www.jboss.com/products/seam\">JBoss Seam</"
@@ -310,13 +199,11 @@
msgstr ""
#. Tag: title
-#: checkconstraints.xml:142
#, no-c-format
msgid "Validation informations"
msgstr ""
#. Tag: para
-#: checkconstraints.xml:144
#, no-c-format
msgid ""
"As a validation information carrier, hibernate provide an array of "
@@ -325,13 +212,11 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:148
#, no-c-format
msgid "<methodname>getBeanClass()</methodname> retrieves the failing bean type"
msgstr ""
#. Tag: para
-#: checkconstraints.xml:151
#, no-c-format
msgid ""
"<methodname>getBean()</methodname>retrieves the failing instance (if any ie "
@@ -339,13 +224,11 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:155
#, no-c-format
msgid "<methodname>getValue()</methodname> retrieves the failing value"
msgstr ""
#. Tag: para
-#: checkconstraints.xml:158
#, no-c-format
msgid ""
"<methodname>getMessage()</methodname> retrieves the proper internationalized "
@@ -353,7 +236,6 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:161
#, no-c-format
msgid ""
"<methodname>getRootBean()</methodname> retrieves the root bean instance "
@@ -362,7 +244,6 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:166
#, no-c-format
msgid ""
"<literal>getPropertyPath()</literal> retrieves the dotted path of the "
Modified: projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/de-DE/defineconstraints.po
===================================================================
--- projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/de-DE/defineconstraints.po 2009-12-03 01:31:33 UTC (rev 97335)
+++ projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/de-DE/defineconstraints.po 2009-12-03 02:29:18 UTC (rev 97336)
@@ -1,17 +1,14 @@
#. Tag: title
-#: defineconstraints.xml:3
#, no-c-format
msgid "Defining constraints"
msgstr ""
#. Tag: title
-#: defineconstraints.xml:6
#, no-c-format
msgid "What is a constraint?"
msgstr ""
#. Tag: para
-#: defineconstraints.xml:8
#, no-c-format
msgid ""
"A constraint is a rule that a given element (field, property or bean) has to "
@@ -21,13 +18,11 @@
msgstr ""
#. Tag: title
-#: defineconstraints.xml:16
#, no-c-format
msgid "Built in constraints"
msgstr ""
#. Tag: para
-#: defineconstraints.xml:18
#, no-c-format
msgid ""
"Hibernate Validator comes with some built-in constraints, which covers most "
@@ -36,131 +31,106 @@
msgstr ""
#. Tag: title
-#: defineconstraints.xml:23
#, no-c-format
msgid "Built-in constraints"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:30
#, no-c-format
msgid "Annotation"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:32
#, no-c-format
msgid "Apply on"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:34
#, no-c-format
msgid "Runtime checking"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:36
#, no-c-format
msgid "Hibernate Metadata impact"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:42
#, no-c-format
msgid "@Length(min=, max=)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:44 defineconstraints.xml:188
-#: defineconstraints.xml:199
#, no-c-format
msgid "property (String)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:46
#, no-c-format
msgid "check if the string length match the range"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:48
#, no-c-format
msgid "Column length will be set to max"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:52
#, no-c-format
msgid "@Max(value=)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:54 defineconstraints.xml:65 defineconstraints.xml:130
-#: defineconstraints.xml:210
#, no-c-format
msgid "property (numeric or string representation of a numeric)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:57
#, no-c-format
msgid "check if the value is less than or equals to max"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:59 defineconstraints.xml:70 defineconstraints.xml:101
-#: defineconstraints.xml:136
#, no-c-format
msgid "Add a check constraint on the column"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:63
#, no-c-format
msgid "@Min(value=)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:68
#, no-c-format
msgid "check if the value is more than or equals to min"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:74
#, no-c-format
msgid "@NotNull"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:76 defineconstraints.xml:86 defineconstraints.xml:153
-#: defineconstraints.xml:164
#, no-c-format
msgid "property"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:78
#, no-c-format
msgid "check if the value is not null"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:80
#, no-c-format
msgid "Column(s) are not null"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:84
#, no-c-format
msgid "@NotEmpty"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:88
#, no-c-format
msgid ""
"check if the string is not null nor empty. Check if the connection is not "
@@ -168,65 +138,51 @@
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:91
#, no-c-format
msgid "Column(s) are not null (for String)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:95
#, no-c-format
msgid "@Past"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:97 defineconstraints.xml:107
#, no-c-format
msgid "property (date or calendar)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:99
#, no-c-format
msgid "check if the date is in the past"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:105
#, no-c-format
msgid "@Future"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:109
#, no-c-format
msgid "check if the date is in the future"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:111 defineconstraints.xml:124
-#: defineconstraints.xml:147 defineconstraints.xml:158
-#: defineconstraints.xml:169 defineconstraints.xml:182
-#: defineconstraints.xml:193 defineconstraints.xml:204
-#: defineconstraints.xml:228
#, no-c-format
msgid "none"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:115
#, no-c-format
msgid "@Pattern(regex=\"regexp\", flag=) or @Patterns( {@Pattern(...)} )"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:118 defineconstraints.xml:223
#, no-c-format
msgid "property (string)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:120
#, no-c-format
msgid ""
"check if the property match the regular expression given a match flag (see "
@@ -234,43 +190,36 @@
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:128
#, no-c-format
msgid "@Range(min=, max=)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:133
#, no-c-format
msgid "check if the value is between min and max (included)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:140
#, no-c-format
msgid "@Size(min=, max=)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:142
#, no-c-format
msgid "property (array, collection, map)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:144
#, no-c-format
msgid "check if the element size is between min and max (included)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:151
#, no-c-format
msgid "@AssertFalse"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:155
#, no-c-format
msgid ""
"check that the method evaluates to false (useful for constraints expressed "
@@ -278,13 +227,11 @@
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:162
#, no-c-format
msgid "@AssertTrue"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:166
#, no-c-format
msgid ""
"check that the method evaluates to true (useful for constraints expressed in "
@@ -292,19 +239,16 @@
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:173
#, no-c-format
msgid "@Valid"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:175
#, no-c-format
msgid "property (object)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:177
#, no-c-format
msgid ""
"perform validation recursively on the associated object. If the object is a "
@@ -313,25 +257,21 @@
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:186
#, no-c-format
msgid "@Email"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:190
#, no-c-format
msgid "check whether the string is conform to the email address specification"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:197
#, no-c-format
msgid "@CreditCardNumber"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:201
#, no-c-format
msgid ""
"check whether the string is a well formated credit card number (derivative "
@@ -339,13 +279,11 @@
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:208
#, no-c-format
-msgid "@Digits"
+msgid "@Digits(integerDigits=1)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:213
#, no-c-format
msgid ""
"check whether the property is a number having up to <literal>integerDigits</"
@@ -354,31 +292,26 @@
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:217
#, no-c-format
msgid "define column precision and scale"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:221
#, no-c-format
msgid "@EAN"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:225
#, no-c-format
msgid "check whether the string is a properly formated EAN or UPC-A code"
msgstr ""
#. Tag: title
-#: defineconstraints.xml:236
#, no-c-format
msgid "Error messages"
msgstr ""
#. Tag: para
-#: defineconstraints.xml:238
#, no-c-format
msgid ""
"Hibernate Validator comes with a default set of error messages translated in "
@@ -392,7 +325,6 @@
msgstr ""
#. Tag: para
-#: defineconstraints.xml:248
#, no-c-format
msgid ""
"Alternatively you can provide a <classname>ResourceBundle</classname> while "
@@ -403,13 +335,11 @@
msgstr ""
#. Tag: title
-#: defineconstraints.xml:257
#, no-c-format
msgid "Writing your own constraints"
msgstr ""
#. Tag: para
-#: defineconstraints.xml:259
#, no-c-format
msgid ""
"Extending the set of built-in constraints is extremely easy. Any constraint "
@@ -418,22 +348,7 @@
"implementation class). Here is a simple user-defined descriptor:"
msgstr ""
-#. Tag: programlisting
-#: defineconstraints.xml:265
-#, no-c-format
-msgid ""
-"@ValidatorClass(CapitalizedValidator.class)\n"
-"@Target(METHOD)\n"
-"@Retention(RUNTIME)\n"
-"@Documented\n"
-"public @interface Capitalized {\n"
-" CapitalizeType type() default Capitalize.FIRST;\n"
-" String message() default \"has incorrect capitalization\"\n"
-"}"
-msgstr ""
-
#. Tag: para
-#: defineconstraints.xml:267
#, no-c-format
msgid ""
"<literal>type</literal> is a parameter describing how the property should to "
@@ -442,7 +357,6 @@
msgstr ""
#. Tag: para
-#: defineconstraints.xml:271
#, no-c-format
msgid ""
"<literal>message</literal> is the default string used to describe the "
@@ -453,35 +367,15 @@
"<literal>Capitalization is not {type}</literal> would generate "
"<literal>Capitalization is not FIRST</literal> ), externalizing the whole "
"string in <filename>ValidatorMessages.properties</filename> is considered "
-"good practice. See <xref linkend=\"validator-defineconstraints-error\"/> ."
+"good practice. See <xref linkend=\"validator-defineconstraints-error\" /> ."
msgstr ""
-#. Tag: programlisting
-#: defineconstraints.xml:282
-#, no-c-format
-msgid ""
-"@ValidatorClass(CapitalizedValidator.class)\n"
-"@Target(METHOD)\n"
-"@Retention(RUNTIME)\n"
-"@Documented\n"
-"public @interface Capitalized {\n"
-" CapitalizeType type() default Capitalize.FIRST;\n"
-" String message() default \"{validator.capitalized}\";\n"
-"}\n"
-"\n"
-"\n"
-"#in ValidatorMessages.properties\n"
-"validator.capitalized = <literal>Capitalization is not {type}</literal>"
-msgstr ""
-
#. Tag: para
-#: defineconstraints.xml:284
#, no-c-format
msgid "As you can see the {} notation is recursive."
msgstr ""
#. Tag: para
-#: defineconstraints.xml:286
#, no-c-format
msgid ""
"To link a descriptor to its validator implementation, we use the "
@@ -491,7 +385,6 @@
msgstr ""
#. Tag: para
-#: defineconstraints.xml:291
#, no-c-format
msgid ""
"We now have to implement the validator (ie. the rule checking "
@@ -502,38 +395,7 @@
"literal> )"
msgstr ""
-#. Tag: programlisting
-#: defineconstraints.xml:298
-#, no-c-format
-msgid ""
-"public class CapitalizedValidator\n"
-" implements Validator<Capitalized>, PropertyConstraint {\n"
-" private CapitalizeType type;\n"
-"\n"
-" //part of the Validator<Annotation> contract,\n"
-" //allows to get and use the annotation values\n"
-" public void initialize(Capitalized parameters) {\n"
-" type = parameters.type();\n"
-" }\n"
-"\n"
-" //part of the property constraint contract\n"
-" public boolean isValid(Object value) {\n"
-" if (value==null) return true;\n"
-" if ( !(value instanceof String) ) return false;\n"
-" String string = (String) value;\n"
-" if (type == CapitalizeType.ALL) {\n"
-" return string.equals( string.toUpperCase() );\n"
-" }\n"
-" else {\n"
-" String first = string.substring(0,1);\n"
-" return first.equals( first.toUpperCase();\n"
-" }\n"
-" }\n"
-"}"
-msgstr ""
-
#. Tag: para
-#: defineconstraints.xml:300
#, no-c-format
msgid ""
"The <literal>isValid()</literal> method should return false if the "
@@ -542,7 +404,6 @@
msgstr ""
#. Tag: para
-#: defineconstraints.xml:304
#, no-c-format
msgid ""
"We only have seen property level validation, but you can write a Bean level "
@@ -553,35 +414,13 @@
msgstr ""
#. Tag: para
-#: defineconstraints.xml:310
#, no-c-format
msgid ""
"If your constraint can be applied multiple times (with different parameters) "
"on the same property or type, you can use the following annotation form:"
msgstr ""
-#. Tag: programlisting
-#: defineconstraints.xml:314
-#, no-c-format
-msgid ""
-"@Target(METHOD)\n"
-"@Retention(RUNTIME)\n"
-"@Documented\n"
-"<emphasis role=\"bold\">public @interface Patterns {</emphasis>\n"
-" Pattern[] value();\n"
-"}\n"
-"\n"
-"@Target(METHOD)\n"
-"@Retention(RUNTIME)\n"
-"@Documented\n"
-"@ValidatorClass(PatternValidator.class)\n"
-"public @interface Pattern {\n"
-" String regexp();\n"
-"}"
-msgstr ""
-
#. Tag: para
-#: defineconstraints.xml:316
#, no-c-format
msgid ""
"Basically an annotation containing the value attribute as an array of "
@@ -589,102 +428,25 @@
msgstr ""
#. Tag: title
-#: defineconstraints.xml:321
#, no-c-format
msgid "Annotating your domain model"
msgstr ""
#. Tag: para
-#: defineconstraints.xml:323
#, no-c-format
msgid ""
"Since you are already familiar with annotations now, the syntax should be "
"very familiar"
msgstr ""
-#. Tag: programlisting
-#: defineconstraints.xml:326
-#, no-c-format
-msgid ""
-"public class Address {\n"
-" private String line1;\n"
-" private String line2;\n"
-" private String zip;\n"
-" private String state;\n"
-" private String country;\n"
-" private long id;\n"
-"\n"
-" // a not null string of 20 characters maximum\n"
-" @Length(max=20)\n"
-" @NotNull\n"
-" public String getCountry() {\n"
-" return country;\n"
-" }\n"
-"\n"
-" // a non null string\n"
-" @NotNull\n"
-" public String getLine1() {\n"
-" return line1;\n"
-" }\n"
-"\n"
-" //no constraint\n"
-" public String getLine2() {\n"
-" return line2;\n"
-" }\n"
-"\n"
-" // a not null string of 3 characters maximum\n"
-" @Length(max=3) @NotNull\n"
-" public String getState() {\n"
-" return state;\n"
-" }\n"
-"\n"
-" // a not null numeric string of 5 characters maximum\n"
-" // if the string is longer, the message will\n"
-" //be searched in the resource bundle at key 'long'\n"
-" @Length(max=5, message=\"{long}\")\n"
-" @Pattern(regex=\"[0-9]+\")\n"
-" @NotNull\n"
-" public String getZip() {\n"
-" return zip;\n"
-" }\n"
-"\n"
-" // should always be true\n"
-" @AssertTrue\n"
-" public boolean isValid() {\n"
-" return true;\n"
-" }\n"
-"\n"
-" // a numeric between 1 and 2000\n"
-" @Id @Min(1)\n"
-" @Range(max=2000)\n"
-" public long getId() {\n"
-" return id;\n"
-" }\n"
-"}"
-msgstr ""
-
#. Tag: para
-#: defineconstraints.xml:328
#, no-c-format
msgid ""
"While the example only shows public property validation, you can also "
"annotate fields of any kind of visibility"
msgstr ""
-#. Tag: programlisting
-#: defineconstraints.xml:331
-#, no-c-format
-msgid ""
-"@MyBeanConstraint(max=45\n"
-"public class Dog {\n"
-" @AssertTrue private boolean isMale;\n"
-" @NotNull protected String getName() { ... };\n"
-" ...\n"
-"}"
-msgstr ""
-
#. Tag: para
-#: defineconstraints.xml:333
#, no-c-format
msgid ""
"You can also annotate interfaces. Hibernate Validator will check all "
@@ -692,26 +454,7 @@
"the appropriate validator annotations."
msgstr ""
-#. Tag: programlisting
-#: defineconstraints.xml:337
-#, no-c-format
-msgid ""
-"public interface Named {\n"
-" @NotNull String getName();\n"
-" ...\n"
-"}\n"
-"\n"
-"public class Dog implements Named {\n"
-"\n"
-" @AssertTrue private boolean isMale;\n"
-"\n"
-" public String getName() { ... };\n"
-"\n"
-"}"
-msgstr ""
-
#. Tag: para
-#: defineconstraints.xml:339
#, no-c-format
msgid ""
"The name property will be checked for nullity when the Dog bean is validated."
Modified: projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/es-ES/Author_Group.po
===================================================================
--- projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/es-ES/Author_Group.po 2009-12-03 01:31:33 UTC (rev 97335)
+++ projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/es-ES/Author_Group.po 2009-12-03 02:29:18 UTC (rev 97336)
@@ -1,5 +0,0 @@
-#. Tag: author
-#: Author_Group.xml:6
-#, no-c-format
-msgid "<firstname>Red Hat Documentation Group</firstname> <surname></surname>"
-msgstr ""
Modified: projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/es-ES/Book_Info.po
===================================================================
--- projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/es-ES/Book_Info.po 2009-12-03 01:31:33 UTC (rev 97335)
+++ projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/es-ES/Book_Info.po 2009-12-03 02:29:18 UTC (rev 97336)
@@ -1,25 +1,16 @@
#. Tag: title
-#: Book_Info.xml:6
#, no-c-format
msgid "Hibernate Validator Reference Guide"
msgstr ""
#. Tag: subtitle
-#: Book_Info.xml:7
#, no-c-format
msgid "for Use with JBoss Enterprise Application Platform 5.0"
msgstr ""
#. Tag: para
-#: Book_Info.xml:14
#, no-c-format
msgid ""
"The JBoss Enterprise Application Platform Edition of the Hibernate Validator "
"Reference Guide"
msgstr ""
-
-#. Tag: holder
-#: Book_Info.xml:25
-#, no-c-format
-msgid "&HOLDER;"
-msgstr ""
Modified: projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/es-ES/Preface.po
===================================================================
--- projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/es-ES/Preface.po 2009-12-03 01:31:33 UTC (rev 97335)
+++ projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/es-ES/Preface.po 2009-12-03 02:29:18 UTC (rev 97336)
@@ -1,11 +1,9 @@
#. Tag: title
-#: Preface.xml:7
#, no-c-format
msgid "Preface"
msgstr ""
#. Tag: para
-#: Preface.xml:9
#, no-c-format
msgid ""
"Annotations are a very convenient and elegant way to specify invariant "
@@ -20,7 +18,6 @@
msgstr ""
#. Tag: para
-#: Preface.xml:20
#, no-c-format
msgid ""
"Hibernate Validator works at two levels. First, it is able to check in-"
@@ -30,7 +27,6 @@
msgstr ""
#. Tag: para
-#: Preface.xml:25
#, no-c-format
msgid ""
"Each constraint annotation is associated to a validator implementation "
@@ -44,7 +40,6 @@
msgstr ""
#. Tag: para
-#: Preface.xml:35
#, no-c-format
msgid ""
"When checking instances at runtime, Hibernate Validator returns information "
Modified: projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/es-ES/Revision_History.po
===================================================================
--- projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/es-ES/Revision_History.po 2009-12-03 01:31:33 UTC (rev 97335)
+++ projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/es-ES/Revision_History.po 2009-12-03 02:29:18 UTC (rev 97336)
@@ -1,11 +1,9 @@
#. Tag: title
-#: Revision_History.xml:6
#, no-c-format
msgid "Revision History"
msgstr ""
-#. Tag: author
-#: Revision_History.xml:12
+#. Tag: member
#, no-c-format
-msgid "<firstname></firstname> <surname></surname> <email></email>"
+msgid "Initial draft."
msgstr ""
Modified: projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/es-ES/checkconstraints.po
===================================================================
--- projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/es-ES/checkconstraints.po 2009-12-03 01:31:33 UTC (rev 97335)
+++ projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/es-ES/checkconstraints.po 2009-12-03 02:29:18 UTC (rev 97336)
@@ -1,11 +1,9 @@
#. Tag: title
-#: checkconstraints.xml:3
#, no-c-format
msgid "Using the Validator framework"
msgstr ""
#. Tag: para
-#: checkconstraints.xml:5
#, no-c-format
msgid ""
"Hibernate Validator is intended to be used to implement multi-layered data "
@@ -14,19 +12,16 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:10
#, no-c-format
msgid "This chapter will cover Hibernate Validator usage for different layers"
msgstr ""
#. Tag: title
-#: checkconstraints.xml:14
#, no-c-format
msgid "Database schema-level validation"
msgstr ""
#. Tag: para
-#: checkconstraints.xml:16
#, no-c-format
msgid ""
"Out of the box, Hibernate Annotations will translate the constraints you "
@@ -37,7 +32,6 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:22
#, no-c-format
msgid ""
"Using hbm2ddl, domain model constraints will be expressed into the database "
@@ -45,7 +39,6 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:25
#, no-c-format
msgid ""
"If, for some reason, the feature needs to be disabled, set "
@@ -54,13 +47,11 @@
msgstr ""
#. Tag: title
-#: checkconstraints.xml:31
#, no-c-format
msgid "ORM integration"
msgstr ""
#. Tag: para
-#: checkconstraints.xml:33
#, no-c-format
msgid ""
"Hibernate Validator integrates with both Hibernate and all pure Java "
@@ -68,13 +59,11 @@
msgstr ""
#. Tag: title
-#: checkconstraints.xml:37
#, no-c-format
msgid "Hibernate event-based validation"
msgstr ""
#. Tag: para
-#: checkconstraints.xml:39
#, no-c-format
msgid ""
"Hibernate Validator has two built-in Hibernate event listeners. Whenever a "
@@ -90,7 +79,6 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:51
#, no-c-format
msgid ""
"If Hibernate Validator is present in the classpath, Hibernate Annotations "
@@ -100,7 +88,6 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:58
#, no-c-format
msgid ""
"If the beans are not annotated with validation annotations, there is no "
@@ -108,40 +95,18 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:62
#, no-c-format
msgid ""
"In case you need to manually set the event listeners for Hibernate Core, use "
"the following configuration in <literal>hibernate.cfg.xml</literal>:"
msgstr ""
-#. Tag: programlisting
-#: checkconstraints.xml:66
-#, no-c-format
-msgid ""
-"<hibernate-configuration>\n"
-" ...\n"
-" <event type=\"pre-update\">\n"
-" <listener \n"
-" class=\"org.hibernate.validator.event.ValidateEventListener\"/"
-">\n"
-" </event>\n"
-" <event type=\"pre-insert\">\n"
-" <listener \n"
-" class=\"org.hibernate.validator.event.ValidateEventListener\"/"
-">\n"
-" </event>\n"
-"</hibernate-configuration>"
-msgstr ""
-
#. Tag: title
-#: checkconstraints.xml:70
#, no-c-format
msgid "Java Persistence event-based validation"
msgstr ""
#. Tag: para
-#: checkconstraints.xml:72
#, no-c-format
msgid ""
"Hibernate Validator is not tied to Hibernate for event based validation: a "
@@ -156,24 +121,11 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:83
#, no-c-format
msgid "Here is how to make a class validatable:"
msgstr ""
-#. Tag: programlisting
-#: checkconstraints.xml:85
-#, no-c-format
-msgid ""
-"@Entity\n"
-"@EntityListeners( JPAValidateListener.class )\n"
-"public class Submarine {\n"
-" ...\n"
-"}"
-msgstr ""
-
#. Tag: para
-#: checkconstraints.xml:88
#, no-c-format
msgid ""
"Compared to the Hibernate event, the Java Persistence listener has two "
@@ -182,42 +134,26 @@
msgstr ""
#. Tag: title
-#: checkconstraints.xml:97
#, no-c-format
msgid "Application-level validation"
msgstr ""
#. Tag: para
-#: checkconstraints.xml:99
#, no-c-format
msgid "Hibernate Validator can be applied anywhere in your application code."
msgstr ""
-#. Tag: programlisting
-#: checkconstraints.xml:102
-#, no-c-format
-msgid ""
-"ClassValidator personValidator = new ClassValidator( Person.class );\n"
-"ClassValidator addressValidator = new ClassValidator( Address.class, "
-"ResourceBundle.getBundle(\"messages\", Locale.ENGLISH) );\n"
-"\n"
-"InvalidValue[] validationMessages = addressValidator.getInvalidValues"
-"(address);"
-msgstr ""
-
#. Tag: para
-#: checkconstraints.xml:104
#, no-c-format
msgid ""
"The first two lines prepare the Hibernate Validator for class checking. The "
"first one relies upon the error messages embedded in Hibernate Validator "
-"(see <xref linkend=\"validator-defineconstraints-error\"/>), the second one "
+"(see <xref linkend=\"validator-defineconstraints-error\" />), the second one "
"uses a resource bundle for these messages. It is considered a good practice "
"to execute these lines once and cache the validator instances."
msgstr ""
#. Tag: para
-#: checkconstraints.xml:111
#, no-c-format
msgid ""
"The third line actually validates the <literal>Address</literal> instance "
@@ -226,37 +162,18 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:115
#, no-c-format
msgid ""
"You can also check a particular property instead of the whole bean. This "
"might be useful for property per property user interaction"
msgstr ""
-#. Tag: programlisting
-#: checkconstraints.xml:118
-#, no-c-format
-msgid ""
-"ClassValidator addressValidator = new ClassValidator( Address.class, "
-"ResourceBundle.getBundle(\"messages\", Locale.ENGLISH) );\n"
-"\n"
-"//only get city property invalid values\n"
-"InvalidValue[] validationMessages = addressValidator.getInvalidValues"
-"(address, \"city\");\n"
-"\n"
-"//only get potential city property invalid values\n"
-"InvalidValue[] validationMessages = addressValidator."
-"getPotentialInvalidValues(\"city\", \"Paris\")"
-msgstr ""
-
#. Tag: title
-#: checkconstraints.xml:122
#, no-c-format
msgid "Presentation layer validation"
msgstr ""
#. Tag: para
-#: checkconstraints.xml:124
#, no-c-format
msgid ""
"When working with JSF and <productname>JBoss Seam</productname>, one can "
@@ -266,34 +183,7 @@
"violations presented in the view"
msgstr ""
-#. Tag: programlisting
-#: checkconstraints.xml:130
-#, no-c-format
-msgid ""
-"<h:form>\n"
-" <div>\n"
-" <h:messages/>\n"
-" </div>\n"
-" <emphasis role=\"bold\"><s:validateAll></emphasis>\n"
-" <div>\n"
-" Country:\n"
-" <h:inputText value=\"#{location.country}\" required=\"true\"/"
-">\n"
-" </div>\n"
-" <div>\n"
-" Zip code:\n"
-" <h:inputText value=\"#{location.zip}\" required=\"true\"/"
-">\n"
-" </div>\n"
-" <div>\n"
-" <h:commandButton/>\n"
-" </div>\n"
-" <emphasis role=\"bold\"></s:validateAll></emphasis>\n"
-"</h:form>"
-msgstr ""
-
#. Tag: para
-#: checkconstraints.xml:132
#, no-c-format
msgid ""
"Going even further, and adding <productname>Ajax4JSF</productname> to the "
@@ -302,7 +192,6 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:137
#, no-c-format
msgid ""
"Check the <ulink url=\"http://www.jboss.com/products/seam\">JBoss Seam</"
@@ -310,13 +199,11 @@
msgstr ""
#. Tag: title
-#: checkconstraints.xml:142
#, no-c-format
msgid "Validation informations"
msgstr ""
#. Tag: para
-#: checkconstraints.xml:144
#, no-c-format
msgid ""
"As a validation information carrier, hibernate provide an array of "
@@ -325,13 +212,11 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:148
#, no-c-format
msgid "<methodname>getBeanClass()</methodname> retrieves the failing bean type"
msgstr ""
#. Tag: para
-#: checkconstraints.xml:151
#, no-c-format
msgid ""
"<methodname>getBean()</methodname>retrieves the failing instance (if any ie "
@@ -339,13 +224,11 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:155
#, no-c-format
msgid "<methodname>getValue()</methodname> retrieves the failing value"
msgstr ""
#. Tag: para
-#: checkconstraints.xml:158
#, no-c-format
msgid ""
"<methodname>getMessage()</methodname> retrieves the proper internationalized "
@@ -353,7 +236,6 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:161
#, no-c-format
msgid ""
"<methodname>getRootBean()</methodname> retrieves the root bean instance "
@@ -362,7 +244,6 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:166
#, no-c-format
msgid ""
"<literal>getPropertyPath()</literal> retrieves the dotted path of the "
Modified: projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/es-ES/defineconstraints.po
===================================================================
--- projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/es-ES/defineconstraints.po 2009-12-03 01:31:33 UTC (rev 97335)
+++ projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/es-ES/defineconstraints.po 2009-12-03 02:29:18 UTC (rev 97336)
@@ -1,17 +1,14 @@
#. Tag: title
-#: defineconstraints.xml:3
#, no-c-format
msgid "Defining constraints"
msgstr ""
#. Tag: title
-#: defineconstraints.xml:6
#, no-c-format
msgid "What is a constraint?"
msgstr ""
#. Tag: para
-#: defineconstraints.xml:8
#, no-c-format
msgid ""
"A constraint is a rule that a given element (field, property or bean) has to "
@@ -21,13 +18,11 @@
msgstr ""
#. Tag: title
-#: defineconstraints.xml:16
#, no-c-format
msgid "Built in constraints"
msgstr ""
#. Tag: para
-#: defineconstraints.xml:18
#, no-c-format
msgid ""
"Hibernate Validator comes with some built-in constraints, which covers most "
@@ -36,131 +31,106 @@
msgstr ""
#. Tag: title
-#: defineconstraints.xml:23
#, no-c-format
msgid "Built-in constraints"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:30
#, no-c-format
msgid "Annotation"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:32
#, no-c-format
msgid "Apply on"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:34
#, no-c-format
msgid "Runtime checking"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:36
#, no-c-format
msgid "Hibernate Metadata impact"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:42
#, no-c-format
msgid "@Length(min=, max=)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:44 defineconstraints.xml:188
-#: defineconstraints.xml:199
#, no-c-format
msgid "property (String)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:46
#, no-c-format
msgid "check if the string length match the range"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:48
#, no-c-format
msgid "Column length will be set to max"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:52
#, no-c-format
msgid "@Max(value=)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:54 defineconstraints.xml:65 defineconstraints.xml:130
-#: defineconstraints.xml:210
#, no-c-format
msgid "property (numeric or string representation of a numeric)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:57
#, no-c-format
msgid "check if the value is less than or equals to max"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:59 defineconstraints.xml:70 defineconstraints.xml:101
-#: defineconstraints.xml:136
#, no-c-format
msgid "Add a check constraint on the column"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:63
#, no-c-format
msgid "@Min(value=)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:68
#, no-c-format
msgid "check if the value is more than or equals to min"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:74
#, no-c-format
msgid "@NotNull"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:76 defineconstraints.xml:86 defineconstraints.xml:153
-#: defineconstraints.xml:164
#, no-c-format
msgid "property"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:78
#, no-c-format
msgid "check if the value is not null"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:80
#, no-c-format
msgid "Column(s) are not null"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:84
#, no-c-format
msgid "@NotEmpty"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:88
#, no-c-format
msgid ""
"check if the string is not null nor empty. Check if the connection is not "
@@ -168,65 +138,51 @@
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:91
#, no-c-format
msgid "Column(s) are not null (for String)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:95
#, no-c-format
msgid "@Past"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:97 defineconstraints.xml:107
#, no-c-format
msgid "property (date or calendar)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:99
#, no-c-format
msgid "check if the date is in the past"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:105
#, no-c-format
msgid "@Future"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:109
#, no-c-format
msgid "check if the date is in the future"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:111 defineconstraints.xml:124
-#: defineconstraints.xml:147 defineconstraints.xml:158
-#: defineconstraints.xml:169 defineconstraints.xml:182
-#: defineconstraints.xml:193 defineconstraints.xml:204
-#: defineconstraints.xml:228
#, no-c-format
msgid "none"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:115
#, no-c-format
msgid "@Pattern(regex=\"regexp\", flag=) or @Patterns( {@Pattern(...)} )"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:118 defineconstraints.xml:223
#, no-c-format
msgid "property (string)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:120
#, no-c-format
msgid ""
"check if the property match the regular expression given a match flag (see "
@@ -234,43 +190,36 @@
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:128
#, no-c-format
msgid "@Range(min=, max=)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:133
#, no-c-format
msgid "check if the value is between min and max (included)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:140
#, no-c-format
msgid "@Size(min=, max=)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:142
#, no-c-format
msgid "property (array, collection, map)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:144
#, no-c-format
msgid "check if the element size is between min and max (included)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:151
#, no-c-format
msgid "@AssertFalse"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:155
#, no-c-format
msgid ""
"check that the method evaluates to false (useful for constraints expressed "
@@ -278,13 +227,11 @@
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:162
#, no-c-format
msgid "@AssertTrue"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:166
#, no-c-format
msgid ""
"check that the method evaluates to true (useful for constraints expressed in "
@@ -292,19 +239,16 @@
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:173
#, no-c-format
msgid "@Valid"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:175
#, no-c-format
msgid "property (object)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:177
#, no-c-format
msgid ""
"perform validation recursively on the associated object. If the object is a "
@@ -313,25 +257,21 @@
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:186
#, no-c-format
msgid "@Email"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:190
#, no-c-format
msgid "check whether the string is conform to the email address specification"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:197
#, no-c-format
msgid "@CreditCardNumber"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:201
#, no-c-format
msgid ""
"check whether the string is a well formated credit card number (derivative "
@@ -339,13 +279,11 @@
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:208
#, no-c-format
-msgid "@Digits"
+msgid "@Digits(integerDigits=1)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:213
#, no-c-format
msgid ""
"check whether the property is a number having up to <literal>integerDigits</"
@@ -354,31 +292,26 @@
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:217
#, no-c-format
msgid "define column precision and scale"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:221
#, no-c-format
msgid "@EAN"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:225
#, no-c-format
msgid "check whether the string is a properly formated EAN or UPC-A code"
msgstr ""
#. Tag: title
-#: defineconstraints.xml:236
#, no-c-format
msgid "Error messages"
msgstr ""
#. Tag: para
-#: defineconstraints.xml:238
#, no-c-format
msgid ""
"Hibernate Validator comes with a default set of error messages translated in "
@@ -392,7 +325,6 @@
msgstr ""
#. Tag: para
-#: defineconstraints.xml:248
#, no-c-format
msgid ""
"Alternatively you can provide a <classname>ResourceBundle</classname> while "
@@ -403,13 +335,11 @@
msgstr ""
#. Tag: title
-#: defineconstraints.xml:257
#, no-c-format
msgid "Writing your own constraints"
msgstr ""
#. Tag: para
-#: defineconstraints.xml:259
#, no-c-format
msgid ""
"Extending the set of built-in constraints is extremely easy. Any constraint "
@@ -418,22 +348,7 @@
"implementation class). Here is a simple user-defined descriptor:"
msgstr ""
-#. Tag: programlisting
-#: defineconstraints.xml:265
-#, no-c-format
-msgid ""
-"@ValidatorClass(CapitalizedValidator.class)\n"
-"@Target(METHOD)\n"
-"@Retention(RUNTIME)\n"
-"@Documented\n"
-"public @interface Capitalized {\n"
-" CapitalizeType type() default Capitalize.FIRST;\n"
-" String message() default \"has incorrect capitalization\"\n"
-"}"
-msgstr ""
-
#. Tag: para
-#: defineconstraints.xml:267
#, no-c-format
msgid ""
"<literal>type</literal> is a parameter describing how the property should to "
@@ -442,7 +357,6 @@
msgstr ""
#. Tag: para
-#: defineconstraints.xml:271
#, no-c-format
msgid ""
"<literal>message</literal> is the default string used to describe the "
@@ -453,35 +367,15 @@
"<literal>Capitalization is not {type}</literal> would generate "
"<literal>Capitalization is not FIRST</literal> ), externalizing the whole "
"string in <filename>ValidatorMessages.properties</filename> is considered "
-"good practice. See <xref linkend=\"validator-defineconstraints-error\"/> ."
+"good practice. See <xref linkend=\"validator-defineconstraints-error\" /> ."
msgstr ""
-#. Tag: programlisting
-#: defineconstraints.xml:282
-#, no-c-format
-msgid ""
-"@ValidatorClass(CapitalizedValidator.class)\n"
-"@Target(METHOD)\n"
-"@Retention(RUNTIME)\n"
-"@Documented\n"
-"public @interface Capitalized {\n"
-" CapitalizeType type() default Capitalize.FIRST;\n"
-" String message() default \"{validator.capitalized}\";\n"
-"}\n"
-"\n"
-"\n"
-"#in ValidatorMessages.properties\n"
-"validator.capitalized = <literal>Capitalization is not {type}</literal>"
-msgstr ""
-
#. Tag: para
-#: defineconstraints.xml:284
#, no-c-format
msgid "As you can see the {} notation is recursive."
msgstr ""
#. Tag: para
-#: defineconstraints.xml:286
#, no-c-format
msgid ""
"To link a descriptor to its validator implementation, we use the "
@@ -491,7 +385,6 @@
msgstr ""
#. Tag: para
-#: defineconstraints.xml:291
#, no-c-format
msgid ""
"We now have to implement the validator (ie. the rule checking "
@@ -502,38 +395,7 @@
"literal> )"
msgstr ""
-#. Tag: programlisting
-#: defineconstraints.xml:298
-#, no-c-format
-msgid ""
-"public class CapitalizedValidator\n"
-" implements Validator<Capitalized>, PropertyConstraint {\n"
-" private CapitalizeType type;\n"
-"\n"
-" //part of the Validator<Annotation> contract,\n"
-" //allows to get and use the annotation values\n"
-" public void initialize(Capitalized parameters) {\n"
-" type = parameters.type();\n"
-" }\n"
-"\n"
-" //part of the property constraint contract\n"
-" public boolean isValid(Object value) {\n"
-" if (value==null) return true;\n"
-" if ( !(value instanceof String) ) return false;\n"
-" String string = (String) value;\n"
-" if (type == CapitalizeType.ALL) {\n"
-" return string.equals( string.toUpperCase() );\n"
-" }\n"
-" else {\n"
-" String first = string.substring(0,1);\n"
-" return first.equals( first.toUpperCase();\n"
-" }\n"
-" }\n"
-"}"
-msgstr ""
-
#. Tag: para
-#: defineconstraints.xml:300
#, no-c-format
msgid ""
"The <literal>isValid()</literal> method should return false if the "
@@ -542,7 +404,6 @@
msgstr ""
#. Tag: para
-#: defineconstraints.xml:304
#, no-c-format
msgid ""
"We only have seen property level validation, but you can write a Bean level "
@@ -553,35 +414,13 @@
msgstr ""
#. Tag: para
-#: defineconstraints.xml:310
#, no-c-format
msgid ""
"If your constraint can be applied multiple times (with different parameters) "
"on the same property or type, you can use the following annotation form:"
msgstr ""
-#. Tag: programlisting
-#: defineconstraints.xml:314
-#, no-c-format
-msgid ""
-"@Target(METHOD)\n"
-"@Retention(RUNTIME)\n"
-"@Documented\n"
-"<emphasis role=\"bold\">public @interface Patterns {</emphasis>\n"
-" Pattern[] value();\n"
-"}\n"
-"\n"
-"@Target(METHOD)\n"
-"@Retention(RUNTIME)\n"
-"@Documented\n"
-"@ValidatorClass(PatternValidator.class)\n"
-"public @interface Pattern {\n"
-" String regexp();\n"
-"}"
-msgstr ""
-
#. Tag: para
-#: defineconstraints.xml:316
#, no-c-format
msgid ""
"Basically an annotation containing the value attribute as an array of "
@@ -589,102 +428,25 @@
msgstr ""
#. Tag: title
-#: defineconstraints.xml:321
#, no-c-format
msgid "Annotating your domain model"
msgstr ""
#. Tag: para
-#: defineconstraints.xml:323
#, no-c-format
msgid ""
"Since you are already familiar with annotations now, the syntax should be "
"very familiar"
msgstr ""
-#. Tag: programlisting
-#: defineconstraints.xml:326
-#, no-c-format
-msgid ""
-"public class Address {\n"
-" private String line1;\n"
-" private String line2;\n"
-" private String zip;\n"
-" private String state;\n"
-" private String country;\n"
-" private long id;\n"
-"\n"
-" // a not null string of 20 characters maximum\n"
-" @Length(max=20)\n"
-" @NotNull\n"
-" public String getCountry() {\n"
-" return country;\n"
-" }\n"
-"\n"
-" // a non null string\n"
-" @NotNull\n"
-" public String getLine1() {\n"
-" return line1;\n"
-" }\n"
-"\n"
-" //no constraint\n"
-" public String getLine2() {\n"
-" return line2;\n"
-" }\n"
-"\n"
-" // a not null string of 3 characters maximum\n"
-" @Length(max=3) @NotNull\n"
-" public String getState() {\n"
-" return state;\n"
-" }\n"
-"\n"
-" // a not null numeric string of 5 characters maximum\n"
-" // if the string is longer, the message will\n"
-" //be searched in the resource bundle at key 'long'\n"
-" @Length(max=5, message=\"{long}\")\n"
-" @Pattern(regex=\"[0-9]+\")\n"
-" @NotNull\n"
-" public String getZip() {\n"
-" return zip;\n"
-" }\n"
-"\n"
-" // should always be true\n"
-" @AssertTrue\n"
-" public boolean isValid() {\n"
-" return true;\n"
-" }\n"
-"\n"
-" // a numeric between 1 and 2000\n"
-" @Id @Min(1)\n"
-" @Range(max=2000)\n"
-" public long getId() {\n"
-" return id;\n"
-" }\n"
-"}"
-msgstr ""
-
#. Tag: para
-#: defineconstraints.xml:328
#, no-c-format
msgid ""
"While the example only shows public property validation, you can also "
"annotate fields of any kind of visibility"
msgstr ""
-#. Tag: programlisting
-#: defineconstraints.xml:331
-#, no-c-format
-msgid ""
-"@MyBeanConstraint(max=45\n"
-"public class Dog {\n"
-" @AssertTrue private boolean isMale;\n"
-" @NotNull protected String getName() { ... };\n"
-" ...\n"
-"}"
-msgstr ""
-
#. Tag: para
-#: defineconstraints.xml:333
#, no-c-format
msgid ""
"You can also annotate interfaces. Hibernate Validator will check all "
@@ -692,26 +454,7 @@
"the appropriate validator annotations."
msgstr ""
-#. Tag: programlisting
-#: defineconstraints.xml:337
-#, no-c-format
-msgid ""
-"public interface Named {\n"
-" @NotNull String getName();\n"
-" ...\n"
-"}\n"
-"\n"
-"public class Dog implements Named {\n"
-"\n"
-" @AssertTrue private boolean isMale;\n"
-"\n"
-" public String getName() { ... };\n"
-"\n"
-"}"
-msgstr ""
-
#. Tag: para
-#: defineconstraints.xml:339
#, no-c-format
msgid ""
"The name property will be checked for nullity when the Dog bean is validated."
Modified: projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/fr-FR/Author_Group.po
===================================================================
--- projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/fr-FR/Author_Group.po 2009-12-03 01:31:33 UTC (rev 97335)
+++ projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/fr-FR/Author_Group.po 2009-12-03 02:29:18 UTC (rev 97336)
@@ -7,7 +7,7 @@
msgstr ""
"Project-Id-Version: Author_Group\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-09-16 23:26+0000\n"
+"POT-Creation-Date: 2009-12-03T02:26:50\n"
"PO-Revision-Date: 2009-11-26 15:29+1000\n"
"Last-Translator: Corina Roe <croe at redhat.com>\n"
"Language-Team: French <i18 at redhat.com>\n"
@@ -16,9 +16,7 @@
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: KBabel 1.11.4\n"
-#. Tag: author
-#: Author_Group.xml:6
-#, no-c-format
-msgid "<firstname>Red Hat Documentation Group</firstname> <surname></surname>"
-msgstr "<firstname>Red Hat Documentation Group</firstname> <surname></surname>"
-
+#~ msgid ""
+#~ "<firstname>Red Hat Documentation Group</firstname> <surname></surname>"
+#~ msgstr ""
+#~ "<firstname>Red Hat Documentation Group</firstname> <surname></surname>"
Modified: projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/fr-FR/Book_Info.po
===================================================================
--- projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/fr-FR/Book_Info.po 2009-12-03 01:31:33 UTC (rev 97335)
+++ projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/fr-FR/Book_Info.po 2009-12-03 02:29:18 UTC (rev 97336)
@@ -7,7 +7,7 @@
msgstr ""
"Project-Id-Version: Book_Info\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-09-16 23:26+0000\n"
+"POT-Creation-Date: 2009-12-03T02:26:50\n"
"PO-Revision-Date: 2009-11-26 15:30+1000\n"
"Last-Translator: Corina Roe <croe at redhat.com>\n"
"Language-Team: French <i18 at redhat.com>\n"
@@ -17,19 +17,16 @@
"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: Book_Info.xml:6
#, no-c-format
msgid "Hibernate Validator Reference Guide"
msgstr "Hibernate Validator Reference Guide "
#. Tag: subtitle
-#: Book_Info.xml:7
#, no-c-format
msgid "for Use with JBoss Enterprise Application Platform 5.0"
msgstr "A utiliser avec JBoss Enterprise Application Platform 5.0"
#. Tag: para
-#: Book_Info.xml:14
#, no-c-format
msgid ""
"The JBoss Enterprise Application Platform Edition of the Hibernate Validator "
@@ -38,9 +35,5 @@
"JBoss Enterprise Application Platform Edition du guide Hibernate Validator "
"Reference Guide"
-#. Tag: holder
-#: Book_Info.xml:25
-#, no-c-format
-msgid "&HOLDER;"
-msgstr "&HOLDER;"
-
+#~ msgid "&HOLDER;"
+#~ msgstr "&HOLDER;"
Modified: projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/fr-FR/Preface.po
===================================================================
--- projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/fr-FR/Preface.po 2009-12-03 01:31:33 UTC (rev 97335)
+++ projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/fr-FR/Preface.po 2009-12-03 02:29:18 UTC (rev 97336)
@@ -7,7 +7,7 @@
msgstr ""
"Project-Id-Version: Introduction\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-09-16 23:26+0000\n"
+"POT-Creation-Date: 2009-12-03T02:26:50\n"
"PO-Revision-Date: 2009-07-16 11:27+1000\n"
"Last-Translator: Corina Roe <croe at redhat.com>\n"
"Language-Team: French <i18 at redhat.com>\n"
@@ -17,13 +17,11 @@
"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: Preface.xml:7
#, no-c-format
msgid "Preface"
msgstr "Préface"
#. Tag: para
-#: Preface.xml:9
#, no-c-format
msgid ""
"Annotations are a very convenient and elegant way to specify invariant "
@@ -48,7 +46,6 @@
"principe DRY, Hibernate Validator a été conçu dans ce but."
#. Tag: para
-#: Preface.xml:20
#, no-c-format
msgid ""
"Hibernate Validator works at two levels. First, it is able to check in-"
@@ -62,7 +59,6 @@
"incorporer dans le schéma de la base de données qui est générée."
#. Tag: para
-#: Preface.xml:25
#, no-c-format
msgid ""
"Each constraint annotation is associated to a validator implementation "
@@ -86,7 +82,6 @@
"Persistence (listener d'entités fourni)."
#. Tag: para
-#: Preface.xml:35
#, no-c-format
msgid ""
"When checking instances at runtime, Hibernate Validator returns information "
Modified: projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/fr-FR/Revision_History.po
===================================================================
--- projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/fr-FR/Revision_History.po 2009-12-03 01:31:33 UTC (rev 97335)
+++ projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/fr-FR/Revision_History.po 2009-12-03 02:29:18 UTC (rev 97336)
@@ -7,7 +7,7 @@
msgstr ""
"Project-Id-Version: Revision_History\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-09-16 23:26+0000\n"
+"POT-Creation-Date: 2009-12-03T02:26:50\n"
"PO-Revision-Date: 2009-11-26 16:13+1000\n"
"Last-Translator: Corina Roe <croe at redhat.com>\n"
"Language-Team: French <i18 at redhat.com>\n"
@@ -17,14 +17,14 @@
"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: Revision_History.xml:6
#, no-c-format
msgid "Revision History"
msgstr "Historique de révision"
-#. Tag: author
-#: Revision_History.xml:12
+#. Tag: member
#, no-c-format
-msgid "<firstname></firstname> <surname></surname> <email></email>"
-msgstr "<firstname></firstname> <surname></surname> <email></email>"
+msgid "Initial draft."
+msgstr ""
+#~ msgid "<firstname></firstname> <surname></surname> <email></email>"
+#~ msgstr "<firstname></firstname> <surname></surname> <email></email>"
Modified: projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/fr-FR/checkconstraints.po
===================================================================
--- projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/fr-FR/checkconstraints.po 2009-12-03 01:31:33 UTC (rev 97335)
+++ projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/fr-FR/checkconstraints.po 2009-12-03 02:29:18 UTC (rev 97336)
@@ -7,7 +7,7 @@
msgstr ""
"Project-Id-Version: checkconstraints\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-09-16 23:26+0000\n"
+"POT-Creation-Date: 2009-12-03T02:26:50\n"
"PO-Revision-Date: 2009-11-26 16:11+1000\n"
"Last-Translator: Corina Roe <croe at redhat.com>\n"
"Language-Team: French <i18 at redhat.com>\n"
@@ -17,13 +17,11 @@
"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: checkconstraints.xml:3
#, no-c-format
msgid "Using the Validator framework"
msgstr "Utilisation du programme de validation Hibernate Validator"
#. Tag: para
-#: checkconstraints.xml:5
#, no-c-format
msgid ""
"Hibernate Validator is intended to be used to implement multi-layered data "
@@ -36,7 +34,6 @@
"sont vérifiées à plusieurs niveaux de l'application. "
#. Tag: para
-#: checkconstraints.xml:10
#, no-c-format
msgid "This chapter will cover Hibernate Validator usage for different layers"
msgstr ""
@@ -44,13 +41,11 @@
"niveaux"
#. Tag: title
-#: checkconstraints.xml:14
#, no-c-format
msgid "Database schema-level validation"
msgstr "Validation niveau-schéma de la base de données"
#. Tag: para
-#: checkconstraints.xml:16
#, no-c-format
msgid ""
"Out of the box, Hibernate Annotations will translate the constraints you "
@@ -66,7 +61,6 @@
"dans le schéma DDL généré par Hibernate."
#. Tag: para
-#: checkconstraints.xml:22
#, no-c-format
msgid ""
"Using hbm2ddl, domain model constraints will be expressed into the database "
@@ -76,7 +70,6 @@
"schéma de la base de données."
#. Tag: para
-#: checkconstraints.xml:25
#, no-c-format
msgid ""
"If, for some reason, the feature needs to be disabled, set "
@@ -88,13 +81,11 @@
"<literal>false</literal>."
#. Tag: title
-#: checkconstraints.xml:31
#, no-c-format
msgid "ORM integration"
msgstr "Intégration ORM"
#. Tag: para
-#: checkconstraints.xml:33
#, no-c-format
msgid ""
"Hibernate Validator integrates with both Hibernate and all pure Java "
@@ -104,13 +95,11 @@
"Java Persistence purs."
#. Tag: title
-#: checkconstraints.xml:37
#, no-c-format
msgid "Hibernate event-based validation"
msgstr "Validation basée-événement Hibernate"
#. Tag: para
-#: checkconstraints.xml:39
#, no-c-format
msgid ""
"Hibernate Validator has two built-in Hibernate event listeners. Whenever a "
@@ -136,7 +125,6 @@
"<literal>InvalidValue</literal> pour décrire chaque défaillance. "
#. Tag: para
-#: checkconstraints.xml:51
#, no-c-format
msgid ""
"If Hibernate Validator is present in the classpath, Hibernate Annotations "
@@ -151,7 +139,6 @@
"faux. "
#. Tag: para
-#: checkconstraints.xml:58
#, no-c-format
msgid ""
"If the beans are not annotated with validation annotations, there is no "
@@ -161,7 +148,6 @@
"aura pas de coût de performance d'exécution."
#. Tag: para
-#: checkconstraints.xml:62
#, no-c-format
msgid ""
"In case you need to manually set the event listeners for Hibernate Core, use "
@@ -171,46 +157,12 @@
"manuellement pour Hibernate Core, utiliser la configuration suivante dans "
"<literal>hibernate.cfg.xml</literal> :"
-#. Tag: programlisting
-#: checkconstraints.xml:66
-#, no-c-format
-msgid ""
-"<hibernate-configuration>\n"
-" ...\n"
-" <event type=\"pre-update\">\n"
-" <listener \n"
-" class=\"org.hibernate.validator.event.ValidateEventListener\"/"
-">\n"
-" </event>\n"
-" <event type=\"pre-insert\">\n"
-" <listener \n"
-" class=\"org.hibernate.validator.event.ValidateEventListener\"/"
-">\n"
-" </event>\n"
-"</hibernate-configuration>"
-msgstr ""
-"<hibernate-configuration>\n"
-" ...\n"
-" <event type=\"pre-update\">\n"
-" <listener \n"
-" class=\"org.hibernate.validator.event.ValidateEventListener\"/"
-">\n"
-" </event>\n"
-" <event type=\"pre-insert\">\n"
-" <listener \n"
-" class=\"org.hibernate.validator.event.ValidateEventListener\"/"
-">\n"
-" </event>\n"
-"</hibernate-configuration>"
-
#. Tag: title
-#: checkconstraints.xml:70
#, no-c-format
msgid "Java Persistence event-based validation"
msgstr "Validation basée-événement de Java Persistence"
#. Tag: para
-#: checkconstraints.xml:72
#, no-c-format
msgid ""
"Hibernate Validator is not tied to Hibernate for event based validation: a "
@@ -236,29 +188,11 @@
"décrivant chaque défaillance."
#. Tag: para
-#: checkconstraints.xml:83
#, no-c-format
msgid "Here is how to make a class validatable:"
msgstr "Voici comment rendre une classe validable : "
-#. Tag: programlisting
-#: checkconstraints.xml:85
-#, no-c-format
-msgid ""
-"@Entity\n"
-"@EntityListeners( JPAValidateListener.class )\n"
-"public class Submarine {\n"
-" ...\n"
-"}"
-msgstr ""
-"@Entity\n"
-"@EntityListeners( JPAValidateListener.class )\n"
-"public class Submarine {\n"
-" ...\n"
-"}"
-
#. Tag: para
-#: checkconstraints.xml:88
#, no-c-format
msgid ""
"Compared to the Hibernate event, the Java Persistence listener has two "
@@ -271,55 +205,34 @@
"pas les contraintes."
#. Tag: title
-#: checkconstraints.xml:97
#, no-c-format
msgid "Application-level validation"
msgstr "Validation au niveau-application"
#. Tag: para
-#: checkconstraints.xml:99
#, no-c-format
msgid "Hibernate Validator can be applied anywhere in your application code."
msgstr ""
"Hibernate Validator peut s'appliquer n'importe où dans votre code "
"d'application."
-#. Tag: programlisting
-#: checkconstraints.xml:102
-#, no-c-format
-msgid ""
-"ClassValidator personValidator = new ClassValidator( Person.class );\n"
-"ClassValidator addressValidator = new ClassValidator( Address.class, "
-"ResourceBundle.getBundle(\"messages\", Locale.ENGLISH) );\n"
-"\n"
-"InvalidValue[] validationMessages = addressValidator.getInvalidValues"
-"(address);"
-msgstr ""
-"ClassValidator personValidator = new ClassValidator( Person.class );\n"
-"ClassValidator addressValidator = new ClassValidator( Address.class, "
-"ResourceBundle.getBundle(\"messages\", Locale.ENGLISH) );\n"
-"\n"
-"InvalidValue[] validationMessages = addressValidator.getInvalidValues"
-"(address);"
-
#. Tag: para
-#: checkconstraints.xml:104
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"The first two lines prepare the Hibernate Validator for class checking. The "
"first one relies upon the error messages embedded in Hibernate Validator "
-"(see <xref linkend=\"validator-defineconstraints-error\"/>), the second one "
+"(see <xref linkend=\"validator-defineconstraints-error\" />), the second one "
"uses a resource bundle for these messages. It is considered a good practice "
"to execute these lines once and cache the validator instances."
msgstr ""
"Les deux premières lignes préparent Hibernate Validator pour la vérification "
"des classes. Le premier se base sur les messages d'erreur contenus dans "
-"Hibernate Validator (voir <xref linkend=\"validator-defineconstraints-error\"/>), le deuxième utilise un ensemble de ressources "
-"pour ces messages. Il est de bonne pratique d'exécuter ces lignes une fois, "
-"puis de cacher les instances du programme de validation."
+"Hibernate Validator (voir <xref linkend=\"validator-defineconstraints-error"
+"\"/>), le deuxième utilise un ensemble de ressources pour ces messages. Il "
+"est de bonne pratique d'exécuter ces lignes une fois, puis de cacher les "
+"instances du programme de validation."
#. Tag: para
-#: checkconstraints.xml:111
#, no-c-format
msgid ""
"The third line actually validates the <literal>Address</literal> instance "
@@ -331,49 +244,21 @@
"application sera alors en mesure de réagir par rapport à cette défaillance."
#. Tag: para
-#: checkconstraints.xml:115
#, no-c-format
msgid ""
"You can also check a particular property instead of the whole bean. This "
"might be useful for property per property user interaction"
msgstr ""
-"Vous pourrez également vérifier une propriété plus particulièrement, si vou sne souhaitez pas vérifier le bean dans son ensemble. Cela pourrait être utile pour l'interaction "
-"d'utilisateur d'une propriété à l'autre."
+"Vous pourrez également vérifier une propriété plus particulièrement, si vou "
+"sne souhaitez pas vérifier le bean dans son ensemble. Cela pourrait être "
+"utile pour l'interaction d'utilisateur d'une propriété à l'autre."
-#. Tag: programlisting
-#: checkconstraints.xml:118
-#, no-c-format
-msgid ""
-"ClassValidator addressValidator = new ClassValidator( Address.class, "
-"ResourceBundle.getBundle(\"messages\", Locale.ENGLISH) );\n"
-"\n"
-"//only get city property invalid values\n"
-"InvalidValue[] validationMessages = addressValidator.getInvalidValues"
-"(address, \"city\");\n"
-"\n"
-"//only get potential city property invalid values\n"
-"InvalidValue[] validationMessages = addressValidator."
-"getPotentialInvalidValues(\"city\", \"Paris\")"
-msgstr ""
-"ClassValidator addressValidator = new ClassValidator( Address.class, "
-"ResourceBundle.getBundle(\"messages\", Locale.ENGLISH) );\n"
-"\n"
-"//only get city property invalid values\n"
-"InvalidValue[] validationMessages = addressValidator.getInvalidValues"
-"(address, \"city\");\n"
-"\n"
-"//only get potential city property invalid values\n"
-"InvalidValue[] validationMessages = addressValidator."
-"getPotentialInvalidValues(\"city\", \"Paris\")"
-
#. Tag: title
-#: checkconstraints.xml:122
#, no-c-format
msgid "Presentation layer validation"
msgstr "Validation au niveau présentation"
#. Tag: para
-#: checkconstraints.xml:124
#, no-c-format
msgid ""
"When working with JSF and <productname>JBoss Seam</productname>, one can "
@@ -389,54 +274,7 @@
"d'être exprimées sur le modèle, et aux violations d'être présentées sur "
"l'écran. "
-#. Tag: programlisting
-#: checkconstraints.xml:130
-#, no-c-format
-msgid ""
-"<h:form>\n"
-" <div>\n"
-" <h:messages/>\n"
-" </div>\n"
-" <emphasis role=\"bold\"><s:validateAll></emphasis>\n"
-" <div>\n"
-" Country:\n"
-" <h:inputText value=\"#{location.country}\" required=\"true\"/"
-">\n"
-" </div>\n"
-" <div>\n"
-" Zip code:\n"
-" <h:inputText value=\"#{location.zip}\" required=\"true\"/"
-">\n"
-" </div>\n"
-" <div>\n"
-" <h:commandButton/>\n"
-" </div>\n"
-" <emphasis role=\"bold\"></s:validateAll></emphasis>\n"
-"</h:form>"
-msgstr ""
-"<h:form>\n"
-" <div>\n"
-" <h:messages/>\n"
-" </div>\n"
-" <emphasis role=\"bold\"><s:validateAll></emphasis>\n"
-" <div>\n"
-" Country:\n"
-" <h:inputText value=\"#{location.country}\" required=\"true\"/"
-">\n"
-" </div>\n"
-" <div>\n"
-" Zip code:\n"
-" <h:inputText value=\"#{location.zip}\" required=\"true\"/"
-">\n"
-" </div>\n"
-" <div>\n"
-" <h:commandButton/>\n"
-" </div>\n"
-" <emphasis role=\"bold\"></s:validateAll></emphasis>\n"
-"</h:form>"
-
#. Tag: para
-#: checkconstraints.xml:132
#, no-c-format
msgid ""
"Going even further, and adding <productname>Ajax4JSF</productname> to the "
@@ -449,7 +287,6 @@
"validation."
#. Tag: para
-#: checkconstraints.xml:137
#, no-c-format
msgid ""
"Check the <ulink url=\"http://www.jboss.com/products/seam\">JBoss Seam</"
@@ -459,13 +296,11 @@
"\">Jboss Seam</ulink> pour davantage d'informations."
#. Tag: title
-#: checkconstraints.xml:142
#, no-c-format
msgid "Validation informations"
msgstr "Information de validation "
#. Tag: para
-#: checkconstraints.xml:144
#, no-c-format
msgid ""
"As a validation information carrier, hibernate provide an array of "
@@ -478,7 +313,6 @@
"décrire les problèmes particuliers. "
#. Tag: para
-#: checkconstraints.xml:148
#, no-c-format
msgid "<methodname>getBeanClass()</methodname> retrieves the failing bean type"
msgstr ""
@@ -486,7 +320,6 @@
"défaillant"
#. Tag: para
-#: checkconstraints.xml:151
#, no-c-format
msgid ""
"<methodname>getBean()</methodname>retrieves the failing instance (if any ie "
@@ -497,13 +330,11 @@
"</methodname>) "
#. Tag: para
-#: checkconstraints.xml:155
#, no-c-format
msgid "<methodname>getValue()</methodname> retrieves the failing value"
msgstr "<methodname>getValue()</methodname> récupère la valeur défaillante"
#. Tag: para
-#: checkconstraints.xml:158
#, no-c-format
msgid ""
"<methodname>getMessage()</methodname> retrieves the proper internationalized "
@@ -513,7 +344,6 @@
"internationalisé qui convient"
#. Tag: para
-#: checkconstraints.xml:161
#, no-c-format
msgid ""
"<methodname>getRootBean()</methodname> retrieves the root bean instance "
@@ -525,7 +355,6 @@
"null quand getPotentianInvalidValues() est utilisé."
#. Tag: para
-#: checkconstraints.xml:166
#, no-c-format
msgid ""
"<literal>getPropertyPath()</literal> retrieves the dotted path of the "
@@ -534,3 +363,125 @@
"<literal>getPropertyPath()</literal> récupère le chemin en pointillés de la "
"propriété défaillante à partir du root bean"
+#~ msgid ""
+#~ "<hibernate-configuration>\n"
+#~ " ...\n"
+#~ " <event type=\"pre-update\">\n"
+#~ " <listener \n"
+#~ " class=\"org.hibernate.validator.event.ValidateEventListener\"/"
+#~ ">\n"
+#~ " </event>\n"
+#~ " <event type=\"pre-insert\">\n"
+#~ " <listener \n"
+#~ " class=\"org.hibernate.validator.event.ValidateEventListener\"/"
+#~ ">\n"
+#~ " </event>\n"
+#~ "</hibernate-configuration>"
+#~ msgstr ""
+#~ "<hibernate-configuration>\n"
+#~ " ...\n"
+#~ " <event type=\"pre-update\">\n"
+#~ " <listener \n"
+#~ " class=\"org.hibernate.validator.event.ValidateEventListener\"/"
+#~ ">\n"
+#~ " </event>\n"
+#~ " <event type=\"pre-insert\">\n"
+#~ " <listener \n"
+#~ " class=\"org.hibernate.validator.event.ValidateEventListener\"/"
+#~ ">\n"
+#~ " </event>\n"
+#~ "</hibernate-configuration>"
+
+#~ msgid ""
+#~ "@Entity\n"
+#~ "@EntityListeners( JPAValidateListener.class )\n"
+#~ "public class Submarine {\n"
+#~ " ...\n"
+#~ "}"
+#~ msgstr ""
+#~ "@Entity\n"
+#~ "@EntityListeners( JPAValidateListener.class )\n"
+#~ "public class Submarine {\n"
+#~ " ...\n"
+#~ "}"
+
+#~ msgid ""
+#~ "ClassValidator personValidator = new ClassValidator( Person.class );\n"
+#~ "ClassValidator addressValidator = new ClassValidator( Address.class, "
+#~ "ResourceBundle.getBundle(\"messages\", Locale.ENGLISH) );\n"
+#~ "\n"
+#~ "InvalidValue[] validationMessages = addressValidator.getInvalidValues"
+#~ "(address);"
+#~ msgstr ""
+#~ "ClassValidator personValidator = new ClassValidator( Person.class );\n"
+#~ "ClassValidator addressValidator = new ClassValidator( Address.class, "
+#~ "ResourceBundle.getBundle(\"messages\", Locale.ENGLISH) );\n"
+#~ "\n"
+#~ "InvalidValue[] validationMessages = addressValidator.getInvalidValues"
+#~ "(address);"
+
+#~ msgid ""
+#~ "ClassValidator addressValidator = new ClassValidator( Address.class, "
+#~ "ResourceBundle.getBundle(\"messages\", Locale.ENGLISH) );\n"
+#~ "\n"
+#~ "//only get city property invalid values\n"
+#~ "InvalidValue[] validationMessages = addressValidator.getInvalidValues"
+#~ "(address, \"city\");\n"
+#~ "\n"
+#~ "//only get potential city property invalid values\n"
+#~ "InvalidValue[] validationMessages = addressValidator."
+#~ "getPotentialInvalidValues(\"city\", \"Paris\")"
+#~ msgstr ""
+#~ "ClassValidator addressValidator = new ClassValidator( Address.class, "
+#~ "ResourceBundle.getBundle(\"messages\", Locale.ENGLISH) );\n"
+#~ "\n"
+#~ "//only get city property invalid values\n"
+#~ "InvalidValue[] validationMessages = addressValidator.getInvalidValues"
+#~ "(address, \"city\");\n"
+#~ "\n"
+#~ "//only get potential city property invalid values\n"
+#~ "InvalidValue[] validationMessages = addressValidator."
+#~ "getPotentialInvalidValues(\"city\", \"Paris\")"
+
+#~ msgid ""
+#~ "<h:form>\n"
+#~ " <div>\n"
+#~ " <h:messages/>\n"
+#~ " </div>\n"
+#~ " <emphasis role=\"bold\"><s:validateAll></emphasis>\n"
+#~ " <div>\n"
+#~ " Country:\n"
+#~ " <h:inputText value=\"#{location.country}\" required=\"true"
+#~ "\"/>\n"
+#~ " </div>\n"
+#~ " <div>\n"
+#~ " Zip code:\n"
+#~ " <h:inputText value=\"#{location.zip}\" required=\"true\"/"
+#~ ">\n"
+#~ " </div>\n"
+#~ " <div>\n"
+#~ " <h:commandButton/>\n"
+#~ " </div>\n"
+#~ " <emphasis role=\"bold\"></s:validateAll></emphasis>\n"
+#~ "</h:form>"
+#~ msgstr ""
+#~ "<h:form>\n"
+#~ " <div>\n"
+#~ " <h:messages/>\n"
+#~ " </div>\n"
+#~ " <emphasis role=\"bold\"><s:validateAll></emphasis>\n"
+#~ " <div>\n"
+#~ " Country:\n"
+#~ " <h:inputText value=\"#{location.country}\" required=\"true"
+#~ "\"/>\n"
+#~ " </div>\n"
+#~ " <div>\n"
+#~ " Zip code:\n"
+#~ " <h:inputText value=\"#{location.zip}\" required=\"true\"/"
+#~ ">\n"
+#~ " </div>\n"
+#~ " <div>\n"
+#~ " <h:commandButton/>\n"
+#~ " </div>\n"
+#~ " <emphasis role=\"bold\"></s:validateAll></emphasis>\n"
+#~ "</h:form>"
Modified: projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/fr-FR/defineconstraints.po
===================================================================
--- projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/fr-FR/defineconstraints.po 2009-12-03 01:31:33 UTC (rev 97335)
+++ projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/fr-FR/defineconstraints.po 2009-12-03 02:29:18 UTC (rev 97336)
@@ -7,7 +7,7 @@
msgstr ""
"Project-Id-Version: defineconstraints\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-09-16 23:26+0000\n"
+"POT-Creation-Date: 2009-12-03T02:26:50\n"
"PO-Revision-Date: 2009-11-26 16:13+1000\n"
"Last-Translator: Corina Roe <croe at redhat.com>\n"
"Language-Team: French <i18 at redhat.com>\n"
@@ -17,19 +17,16 @@
"X-Generator: KBabel 1.11.4\n"
#. Tag: title
-#: defineconstraints.xml:3
#, no-c-format
msgid "Defining constraints"
msgstr "Déterminer les contraintes"
#. Tag: title
-#: defineconstraints.xml:6
#, no-c-format
msgid "What is a constraint?"
msgstr "Qu'est-ce qu'une contrainte ?"
#. Tag: para
-#: defineconstraints.xml:8
#, no-c-format
msgid ""
"A constraint is a rule that a given element (field, property or bean) has to "
@@ -44,13 +41,11 @@
"contrainte s'applique à l'élément qui est annoté."
#. Tag: title
-#: defineconstraints.xml:16
#, no-c-format
msgid "Built in constraints"
msgstr "Contraintes intégrées"
#. Tag: para
-#: defineconstraints.xml:18
#, no-c-format
msgid ""
"Hibernate Validator comes with some built-in constraints, which covers most "
@@ -63,131 +58,106 @@
"propres contraintes en quelques minutes."
#. Tag: title
-#: defineconstraints.xml:23
#, no-c-format
msgid "Built-in constraints"
msgstr "Contraintes intégrées"
#. Tag: entry
-#: defineconstraints.xml:30
#, no-c-format
msgid "Annotation"
msgstr "Annotation"
#. Tag: entry
-#: defineconstraints.xml:32
#, no-c-format
msgid "Apply on"
msgstr "A appliquer"
#. Tag: entry
-#: defineconstraints.xml:34
#, no-c-format
msgid "Runtime checking"
msgstr "Vérification du runtime"
#. Tag: entry
-#: defineconstraints.xml:36
#, no-c-format
msgid "Hibernate Metadata impact"
msgstr "Impact d'Hibernate Metadata"
#. Tag: entry
-#: defineconstraints.xml:42
#, no-c-format
msgid "@Length(min=, max=)"
msgstr "@Length(min=, max=)"
#. Tag: entry
-#: defineconstraints.xml:44 defineconstraints.xml:188
-#: defineconstraints.xml:199
#, no-c-format
msgid "property (String)"
msgstr "propriété (String)"
#. Tag: entry
-#: defineconstraints.xml:46
#, no-c-format
msgid "check if the string length match the range"
msgstr "vérifier si la longueur du string est dans la limite de sa portée"
#. Tag: entry
-#: defineconstraints.xml:48
#, no-c-format
msgid "Column length will be set to max"
msgstr "La longueur de la colonne sera fixée au maximum"
#. Tag: entry
-#: defineconstraints.xml:52
#, no-c-format
msgid "@Max(value=)"
msgstr "@Max(value=)"
#. Tag: entry
-#: defineconstraints.xml:54 defineconstraints.xml:65 defineconstraints.xml:130
-#: defineconstraints.xml:210
#, no-c-format
msgid "property (numeric or string representation of a numeric)"
msgstr "propriété (numérique ou représentation par string d'un numérique)"
#. Tag: entry
-#: defineconstraints.xml:57
#, no-c-format
msgid "check if the value is less than or equals to max"
msgstr "vérifier si la valeur est inférieure ou égale au max"
#. Tag: entry
-#: defineconstraints.xml:59 defineconstraints.xml:70 defineconstraints.xml:101
-#: defineconstraints.xml:136
#, no-c-format
msgid "Add a check constraint on the column"
msgstr "Ajouter une contrainte de vérification sur la colonne"
#. Tag: entry
-#: defineconstraints.xml:63
#, no-c-format
msgid "@Min(value=)"
msgstr "@Min(value=)"
#. Tag: entry
-#: defineconstraints.xml:68
#, no-c-format
msgid "check if the value is more than or equals to min"
msgstr "vérifier si la valeur est supérieure ou égale au min"
#. Tag: entry
-#: defineconstraints.xml:74
#, no-c-format
msgid "@NotNull"
msgstr "@NotNull"
#. Tag: entry
-#: defineconstraints.xml:76 defineconstraints.xml:86 defineconstraints.xml:153
-#: defineconstraints.xml:164
#, no-c-format
msgid "property"
msgstr "propriété"
#. Tag: entry
-#: defineconstraints.xml:78
#, no-c-format
msgid "check if the value is not null"
msgstr "vérifier si la valeur n'est pas nulle"
#. Tag: entry
-#: defineconstraints.xml:80
#, no-c-format
msgid "Column(s) are not null"
msgstr "Colonne(s) non nulles"
#. Tag: entry
-#: defineconstraints.xml:84
#, no-c-format
msgid "@NotEmpty"
msgstr "@NotEmpty"
#. Tag: entry
-#: defineconstraints.xml:88
#, no-c-format
msgid ""
"check if the string is not null nor empty. Check if the connection is not "
@@ -197,65 +167,51 @@
"ni nulle, ni vide"
#. Tag: entry
-#: defineconstraints.xml:91
#, no-c-format
msgid "Column(s) are not null (for String)"
msgstr "Colonne(s) non nulles (pour le String)"
#. Tag: entry
-#: defineconstraints.xml:95
#, no-c-format
msgid "@Past"
msgstr "@Past"
#. Tag: entry
-#: defineconstraints.xml:97 defineconstraints.xml:107
#, no-c-format
msgid "property (date or calendar)"
msgstr "propriété (date ou calendrier)"
#. Tag: entry
-#: defineconstraints.xml:99
#, no-c-format
msgid "check if the date is in the past"
msgstr "vérifier si la date est dans le passé"
#. Tag: entry
-#: defineconstraints.xml:105
#, no-c-format
msgid "@Future"
msgstr "@Future"
#. Tag: entry
-#: defineconstraints.xml:109
#, no-c-format
msgid "check if the date is in the future"
msgstr "vérifier si la date est dans le futur"
#. Tag: entry
-#: defineconstraints.xml:111 defineconstraints.xml:124
-#: defineconstraints.xml:147 defineconstraints.xml:158
-#: defineconstraints.xml:169 defineconstraints.xml:182
-#: defineconstraints.xml:193 defineconstraints.xml:204
-#: defineconstraints.xml:228
#, no-c-format
msgid "none"
msgstr "aucun(e)"
#. Tag: entry
-#: defineconstraints.xml:115
#, no-c-format
msgid "@Pattern(regex=\"regexp\", flag=) or @Patterns( {@Pattern(...)} )"
msgstr "@Pattern(regex=\"regexp\", flag=) or @Patterns( {@Pattern(...)} )"
#. Tag: entry
-#: defineconstraints.xml:118 defineconstraints.xml:223
#, no-c-format
msgid "property (string)"
msgstr "propriété (string)"
#. Tag: entry
-#: defineconstraints.xml:120
#, no-c-format
msgid ""
"check if the property match the regular expression given a match flag (see "
@@ -266,31 +222,27 @@
"classname> )"
#. Tag: entry
-#: defineconstraints.xml:128
#, no-c-format
msgid "@Range(min=, max=)"
msgstr "@Range(min=, max=)"
#. Tag: entry
-#: defineconstraints.xml:133
#, no-c-format
msgid "check if the value is between min and max (included)"
-msgstr "vérifier si la valeur est bien comprise entre le min et le max (compris)"
+msgstr ""
+"vérifier si la valeur est bien comprise entre le min et le max (compris)"
#. Tag: entry
-#: defineconstraints.xml:140
#, no-c-format
msgid "@Size(min=, max=)"
msgstr "@Size(min=, max=)"
#. Tag: entry
-#: defineconstraints.xml:142
#, no-c-format
msgid "property (array, collection, map)"
msgstr "propriété (array, collection, map)"
#. Tag: entry
-#: defineconstraints.xml:144
#, no-c-format
msgid "check if the element size is between min and max (included)"
msgstr ""
@@ -298,13 +250,11 @@
"(compris)"
#. Tag: entry
-#: defineconstraints.xml:151
#, no-c-format
msgid "@AssertFalse"
msgstr "@AssertFalse"
#. Tag: entry
-#: defineconstraints.xml:155
#, no-c-format
msgid ""
"check that the method evaluates to false (useful for constraints expressed "
@@ -314,13 +264,11 @@
"contraintes exprimées en code, et non pas en annotations)"
#. Tag: entry
-#: defineconstraints.xml:162
#, no-c-format
msgid "@AssertTrue"
msgstr "@AssertTrue"
#. Tag: entry
-#: defineconstraints.xml:166
#, no-c-format
msgid ""
"check that the method evaluates to true (useful for constraints expressed in "
@@ -330,19 +278,16 @@
"contraintes exprimées en code, et non pas en annotations)"
#. Tag: entry
-#: defineconstraints.xml:173
#, no-c-format
msgid "@Valid"
msgstr "@Valid"
#. Tag: entry
-#: defineconstraints.xml:175
#, no-c-format
msgid "property (object)"
msgstr "propriété (objet)"
#. Tag: entry
-#: defineconstraints.xml:177
#, no-c-format
msgid ""
"perform validation recursively on the associated object. If the object is a "
@@ -355,25 +300,21 @@
"récursivement."
#. Tag: entry
-#: defineconstraints.xml:186
#, no-c-format
msgid "@Email"
msgstr "@Email"
#. Tag: entry
-#: defineconstraints.xml:190
#, no-c-format
msgid "check whether the string is conform to the email address specification"
msgstr "vérifier si le string est conforme aux spécifications d'adresse email."
#. Tag: entry
-#: defineconstraints.xml:197
#, no-c-format
msgid "@CreditCardNumber"
msgstr "@CreditCardNumber"
#. Tag: entry
-#: defineconstraints.xml:201
#, no-c-format
msgid ""
"check whether the string is a well formated credit card number (derivative "
@@ -383,13 +324,11 @@
"convenablement formaté (dérivé d'un algorithme Luhn)"
#. Tag: entry
-#: defineconstraints.xml:208
#, no-c-format
-msgid "@Digits"
-msgstr "@Digits"
+msgid "@Digits(integerDigits=1)"
+msgstr ""
#. Tag: entry
-#: defineconstraints.xml:213
#, no-c-format
msgid ""
"check whether the property is a number having up to <literal>integerDigits</"
@@ -401,19 +340,16 @@
"literal>"
#. Tag: entry
-#: defineconstraints.xml:217
#, no-c-format
msgid "define column precision and scale"
msgstr "déterminer l'échelle et la précision de la colonne"
#. Tag: entry
-#: defineconstraints.xml:221
#, no-c-format
msgid "@EAN"
msgstr "@EAN"
#. Tag: entry
-#: defineconstraints.xml:225
#, no-c-format
msgid "check whether the string is a properly formated EAN or UPC-A code"
msgstr ""
@@ -421,13 +357,11 @@
"code EAN ou UPC-A"
#. Tag: title
-#: defineconstraints.xml:236
#, no-c-format
msgid "Error messages"
msgstr "Message d'erreur"
#. Tag: para
-#: defineconstraints.xml:238
#, no-c-format
msgid ""
"Hibernate Validator comes with a default set of error messages translated in "
@@ -451,7 +385,6 @@
"défaut."
#. Tag: para
-#: defineconstraints.xml:248
#, no-c-format
msgid ""
"Alternatively you can provide a <classname>ResourceBundle</classname> while "
@@ -468,13 +401,11 @@
"davantage d'informations)."
#. Tag: title
-#: defineconstraints.xml:257
#, no-c-format
msgid "Writing your own constraints"
msgstr "Rédiger ses propres contraintes"
#. Tag: para
-#: defineconstraints.xml:259
#, no-c-format
msgid ""
"Extending the set of built-in constraints is extremely easy. Any constraint "
@@ -488,30 +419,7 @@
"<emphasis>validator</emphasis> (la classe d'implémentation). Voici un "
"descripteur simple défini par l'utilisateur :"
-#. Tag: programlisting
-#: defineconstraints.xml:265
-#, no-c-format
-msgid ""
-"@ValidatorClass(CapitalizedValidator.class)\n"
-"@Target(METHOD)\n"
-"@Retention(RUNTIME)\n"
-"@Documented\n"
-"public @interface Capitalized {\n"
-" CapitalizeType type() default Capitalize.FIRST;\n"
-" String message() default \"has incorrect capitalization\"\n"
-"}"
-msgstr ""
-"@ValidatorClass(CapitalizedValidator.class)\n"
-"@Target(METHOD)\n"
-"@Retention(RUNTIME)\n"
-"@Documented\n"
-"public @interface Capitalized {\n"
-" CapitalizeType type() default Capitalize.FIRST;\n"
-" String message() default \"has incorrect capitalization\"\n"
-"}"
-
#. Tag: para
-#: defineconstraints.xml:267
#, no-c-format
msgid ""
"<literal>type</literal> is a parameter describing how the property should to "
@@ -523,8 +431,7 @@
"entièrement du système d'annotations."
#. Tag: para
-#: defineconstraints.xml:271
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"<literal>message</literal> is the default string used to describe the "
"constraint violation and is mandatory. You can hard code the string or you "
@@ -534,7 +441,7 @@
"<literal>Capitalization is not {type}</literal> would generate "
"<literal>Capitalization is not FIRST</literal> ), externalizing the whole "
"string in <filename>ValidatorMessages.properties</filename> is considered "
-"good practice. See <xref linkend=\"validator-defineconstraints-error\"/> ."
+"good practice. See <xref linkend=\"validator-defineconstraints-error\" /> ."
msgstr ""
"<literal>message</literal> est le string par défaut qui est utilisé pour "
"décrire la violation de contrainte et qui est obligatoire. Vous pouvez créer "
@@ -545,46 +452,15 @@
"<literal>Capitalization is not {type}</literal> générerait "
"<literal>Capitalization is not FIRST</literal> ), externalisant ainsi tout "
"le string dans <filename>ValidatorMessages.properties</filename>, ce qui est "
-"considéré une bonne pratique. Voir <xref linkend=\"validator-defineconstraints-error\"/>."
+"considéré une bonne pratique. Voir <xref linkend=\"validator-"
+"defineconstraints-error\"/>."
-#. Tag: programlisting
-#: defineconstraints.xml:282
-#, no-c-format
-msgid ""
-"@ValidatorClass(CapitalizedValidator.class)\n"
-"@Target(METHOD)\n"
-"@Retention(RUNTIME)\n"
-"@Documented\n"
-"public @interface Capitalized {\n"
-" CapitalizeType type() default Capitalize.FIRST;\n"
-" String message() default \"{validator.capitalized}\";\n"
-"}\n"
-"\n"
-"\n"
-"#in ValidatorMessages.properties\n"
-"validator.capitalized = <literal>Capitalization is not {type}</literal>"
-msgstr ""
-"@ValidatorClass(CapitalizedValidator.class)\n"
-"@Target(METHOD)\n"
-"@Retention(RUNTIME)\n"
-"@Documented\n"
-"public @interface Capitalized {\n"
-" CapitalizeType type() default Capitalize.FIRST;\n"
-" String message() default \"{validator.capitalized}\";\n"
-"}\n"
-"\n"
-"\n"
-"#in ValidatorMessages.properties\n"
-"validator.capitalized = <literal>Capitalization is not {type}</literal>"
-
#. Tag: para
-#: defineconstraints.xml:284
#, no-c-format
msgid "As you can see the {} notation is recursive."
msgstr "Comme vous pouvez l'observer, la notation {} est récursive."
#. Tag: para
-#: defineconstraints.xml:286
#, no-c-format
msgid ""
"To link a descriptor to its validator implementation, we use the "
@@ -598,7 +474,6 @@
"<literal>Validator<ConstraintAnnotation></literal> ."
#. Tag: para
-#: defineconstraints.xml:291
#, no-c-format
msgid ""
"We now have to implement the validator (ie. the rule checking "
@@ -616,62 +491,7 @@
"niveau de la base de données (en implémentant "
"<literal>PersistentClassConstraint</literal> )"
-#. Tag: programlisting
-#: defineconstraints.xml:298
-#, no-c-format
-msgid ""
-"public class CapitalizedValidator\n"
-" implements Validator<Capitalized>, PropertyConstraint {\n"
-" private CapitalizeType type;\n"
-"\n"
-" //part of the Validator<Annotation> contract,\n"
-" //allows to get and use the annotation values\n"
-" public void initialize(Capitalized parameters) {\n"
-" type = parameters.type();\n"
-" }\n"
-"\n"
-" //part of the property constraint contract\n"
-" public boolean isValid(Object value) {\n"
-" if (value==null) return true;\n"
-" if ( !(value instanceof String) ) return false;\n"
-" String string = (String) value;\n"
-" if (type == CapitalizeType.ALL) {\n"
-" return string.equals( string.toUpperCase() );\n"
-" }\n"
-" else {\n"
-" String first = string.substring(0,1);\n"
-" return first.equals( first.toUpperCase();\n"
-" }\n"
-" }\n"
-"}"
-msgstr ""
-"public class CapitalizedValidator\n"
-" implements Validator<Capitalized>, PropertyConstraint {\n"
-" private CapitalizeType type;\n"
-"\n"
-" //part of the Validator<Annotation> contract,\n"
-" //allows to get and use the annotation values\n"
-" public void initialize(Capitalized parameters) {\n"
-" type = parameters.type();\n"
-" }\n"
-"\n"
-" //part of the property constraint contract\n"
-" public boolean isValid(Object value) {\n"
-" if (value==null) return true;\n"
-" if ( !(value instanceof String) ) return false;\n"
-" String string = (String) value;\n"
-" if (type == CapitalizeType.ALL) {\n"
-" return string.equals( string.toUpperCase() );\n"
-" }\n"
-" else {\n"
-" String first = string.substring(0,1);\n"
-" return first.equals( first.toUpperCase();\n"
-" }\n"
-" }\n"
-"}"
-
#. Tag: para
-#: defineconstraints.xml:300
#, no-c-format
msgid ""
"The <literal>isValid()</literal> method should return false if the "
@@ -683,7 +503,6 @@
"aux implémentations du validateur intégré."
#. Tag: para
-#: defineconstraints.xml:304
#, no-c-format
msgid ""
"We only have seen property level validation, but you can write a Bean level "
@@ -700,7 +519,6 @@
"dans la unit test suite."
#. Tag: para
-#: defineconstraints.xml:310
#, no-c-format
msgid ""
"If your constraint can be applied multiple times (with different parameters) "
@@ -710,42 +528,7 @@
"paramètres) sur la même propriété ou sur le même type, vous pouvez utiliser "
"la forme d'annotation suivante :"
-#. Tag: programlisting
-#: defineconstraints.xml:314
-#, no-c-format
-msgid ""
-"@Target(METHOD)\n"
-"@Retention(RUNTIME)\n"
-"@Documented\n"
-"<emphasis role=\"bold\">public @interface Patterns {</emphasis>\n"
-" Pattern[] value();\n"
-"}\n"
-"\n"
-"@Target(METHOD)\n"
-"@Retention(RUNTIME)\n"
-"@Documented\n"
-"@ValidatorClass(PatternValidator.class)\n"
-"public @interface Pattern {\n"
-" String regexp();\n"
-"}"
-msgstr ""
-"@Target(METHOD)\n"
-"@Retention(RUNTIME)\n"
-"@Documented\n"
-"<emphasis role=\"bold\">public @interface Patterns {</emphasis>\n"
-" Pattern[] value();\n"
-"}\n"
-"\n"
-"@Target(METHOD)\n"
-"@Retention(RUNTIME)\n"
-"@Documented\n"
-"@ValidatorClass(PatternValidator.class)\n"
-"public @interface Pattern {\n"
-" String regexp();\n"
-"}"
-
#. Tag: para
-#: defineconstraints.xml:316
#, no-c-format
msgid ""
"Basically an annotation containing the value attribute as an array of "
@@ -755,13 +538,11 @@
"la forme d'un ensemble d'annnotations de validateur."
#. Tag: title
-#: defineconstraints.xml:321
#, no-c-format
msgid "Annotating your domain model"
msgstr "Annoter votre modèle de domaine"
#. Tag: para
-#: defineconstraints.xml:323
#, no-c-format
msgid ""
"Since you are already familiar with annotations now, the syntax should be "
@@ -770,124 +551,7 @@
"Comme vous êtes maintenant familiarisés avec les annotations, la syntaxe va "
"vous paraître facile"
-#. Tag: programlisting
-#: defineconstraints.xml:326
-#, no-c-format
-msgid ""
-"public class Address {\n"
-" private String line1;\n"
-" private String line2;\n"
-" private String zip;\n"
-" private String state;\n"
-" private String country;\n"
-" private long id;\n"
-"\n"
-" // a not null string of 20 characters maximum\n"
-" @Length(max=20)\n"
-" @NotNull\n"
-" public String getCountry() {\n"
-" return country;\n"
-" }\n"
-"\n"
-" // a non null string\n"
-" @NotNull\n"
-" public String getLine1() {\n"
-" return line1;\n"
-" }\n"
-"\n"
-" //no constraint\n"
-" public String getLine2() {\n"
-" return line2;\n"
-" }\n"
-"\n"
-" // a not null string of 3 characters maximum\n"
-" @Length(max=3) @NotNull\n"
-" public String getState() {\n"
-" return state;\n"
-" }\n"
-"\n"
-" // a not null numeric string of 5 characters maximum\n"
-" // if the string is longer, the message will\n"
-" //be searched in the resource bundle at key 'long'\n"
-" @Length(max=5, message=\"{long}\")\n"
-" @Pattern(regex=\"[0-9]+\")\n"
-" @NotNull\n"
-" public String getZip() {\n"
-" return zip;\n"
-" }\n"
-"\n"
-" // should always be true\n"
-" @AssertTrue\n"
-" public boolean isValid() {\n"
-" return true;\n"
-" }\n"
-"\n"
-" // a numeric between 1 and 2000\n"
-" @Id @Min(1)\n"
-" @Range(max=2000)\n"
-" public long getId() {\n"
-" return id;\n"
-" }\n"
-"}"
-msgstr ""
-"public class Address {\n"
-" private String line1;\n"
-" private String line2;\n"
-" private String zip;\n"
-" private String state;\n"
-" private String country;\n"
-" private long id;\n"
-"\n"
-" // a not null string of 20 characters maximum\n"
-" @Length(max=20)\n"
-" @NotNull\n"
-" public String getCountry() {\n"
-" return country;\n"
-" }\n"
-"\n"
-" // a non null string\n"
-" @NotNull\n"
-" public String getLine1() {\n"
-" return line1;\n"
-" }\n"
-"\n"
-" //no constraint\n"
-" public String getLine2() {\n"
-" return line2;\n"
-" }\n"
-"\n"
-" // a not null string of 3 characters maximum\n"
-" @Length(max=3) @NotNull\n"
-" public String getState() {\n"
-" return state;\n"
-" }\n"
-"\n"
-" // a not null numeric string of 5 characters maximum\n"
-" // if the string is longer, the message will\n"
-" //be searched in the resource bundle at key 'long'\n"
-" @Length(max=5, message=\"{long}\")\n"
-" @Pattern(regex=\"[0-9]+\")\n"
-" @NotNull\n"
-" public String getZip() {\n"
-" return zip;\n"
-" }\n"
-"\n"
-" // should always be true\n"
-" @AssertTrue\n"
-" public boolean isValid() {\n"
-" return true;\n"
-" }\n"
-"\n"
-" // a numeric between 1 and 2000\n"
-" @Id @Min(1)\n"
-" @Range(max=2000)\n"
-" public long getId() {\n"
-" return id;\n"
-" }\n"
-"}"
-
#. Tag: para
-#: defineconstraints.xml:328
#, no-c-format
msgid ""
"While the example only shows public property validation, you can also "
@@ -896,26 +560,7 @@
"Malgré que l'exemple ne montre que la validation publique, vous pouvez "
"également annoter des champs par toute sorte de visibilité"
-#. Tag: programlisting
-#: defineconstraints.xml:331
-#, no-c-format
-msgid ""
-"@MyBeanConstraint(max=45\n"
-"public class Dog {\n"
-" @AssertTrue private boolean isMale;\n"
-" @NotNull protected String getName() { ... };\n"
-" ...\n"
-"}"
-msgstr ""
-"@MyBeanConstraint(max=45\n"
-"public class Dog {\n"
-" @AssertTrue private boolean isMale;\n"
-" @NotNull protected String getName() { ... };\n"
-" ...\n"
-"}"
-
#. Tag: para
-#: defineconstraints.xml:333
#, no-c-format
msgid ""
"You can also annotate interfaces. Hibernate Validator will check all "
@@ -927,41 +572,296 @@
"étendues ou implémentées par un bean donné pour pouvoir lire les annotations "
"du validateur comme il convient."
-#. Tag: programlisting
-#: defineconstraints.xml:337
+#. Tag: para
#, no-c-format
msgid ""
-"public interface Named {\n"
-" @NotNull String getName();\n"
-" ...\n"
-"}\n"
-"\n"
-"public class Dog implements Named {\n"
-"\n"
-" @AssertTrue private boolean isMale;\n"
-"\n"
-" public String getName() { ... };\n"
-"\n"
-"}"
+"The name property will be checked for nullity when the Dog bean is validated."
msgstr ""
-"public interface Named {\n"
-" @NotNull String getName();\n"
-" ...\n"
-"}\n"
-"\n"
-"public class Dog implements Named {\n"
-"\n"
-" @AssertTrue private boolean isMale;\n"
-"\n"
-" public String getName() { ... };\n"
-"\n"
-"}"
-
-#. Tag: para
-#: defineconstraints.xml:339
-#, no-c-format
-msgid "The name property will be checked for nullity when the Dog bean is validated."
-msgstr ""
"Le nom de la propriété sera vérifié au niveau de sa nullité quand le bean "
"Dog sera validé."
+#~ msgid "@Digits"
+#~ msgstr "@Digits"
+
+#~ msgid ""
+#~ "@ValidatorClass(CapitalizedValidator.class)\n"
+#~ "@Target(METHOD)\n"
+#~ "@Retention(RUNTIME)\n"
+#~ "@Documented\n"
+#~ "public @interface Capitalized {\n"
+#~ " CapitalizeType type() default Capitalize.FIRST;\n"
+#~ " String message() default \"has incorrect capitalization\"\n"
+#~ "}"
+#~ msgstr ""
+#~ "@ValidatorClass(CapitalizedValidator.class)\n"
+#~ "@Target(METHOD)\n"
+#~ "@Retention(RUNTIME)\n"
+#~ "@Documented\n"
+#~ "public @interface Capitalized {\n"
+#~ " CapitalizeType type() default Capitalize.FIRST;\n"
+#~ " String message() default \"has incorrect capitalization\"\n"
+#~ "}"
+
+#~ msgid ""
+#~ "@ValidatorClass(CapitalizedValidator.class)\n"
+#~ "@Target(METHOD)\n"
+#~ "@Retention(RUNTIME)\n"
+#~ "@Documented\n"
+#~ "public @interface Capitalized {\n"
+#~ " CapitalizeType type() default Capitalize.FIRST;\n"
+#~ " String message() default \"{validator.capitalized}\";\n"
+#~ "}\n"
+#~ "\n"
+#~ "\n"
+#~ "#in ValidatorMessages.properties\n"
+#~ "validator.capitalized = <literal>Capitalization is not {type}</literal>"
+#~ msgstr ""
+#~ "@ValidatorClass(CapitalizedValidator.class)\n"
+#~ "@Target(METHOD)\n"
+#~ "@Retention(RUNTIME)\n"
+#~ "@Documented\n"
+#~ "public @interface Capitalized {\n"
+#~ " CapitalizeType type() default Capitalize.FIRST;\n"
+#~ " String message() default \"{validator.capitalized}\";\n"
+#~ "}\n"
+#~ "\n"
+#~ "\n"
+#~ "#in ValidatorMessages.properties\n"
+#~ "validator.capitalized = <literal>Capitalization is not {type}</literal>"
+
+#~ msgid ""
+#~ "public class CapitalizedValidator\n"
+#~ " implements Validator<Capitalized>, PropertyConstraint {\n"
+#~ " private CapitalizeType type;\n"
+#~ "\n"
+#~ " //part of the Validator<Annotation> contract,\n"
+#~ " //allows to get and use the annotation values\n"
+#~ " public void initialize(Capitalized parameters) {\n"
+#~ " type = parameters.type();\n"
+#~ " }\n"
+#~ "\n"
+#~ " //part of the property constraint contract\n"
+#~ " public boolean isValid(Object value) {\n"
+#~ " if (value==null) return true;\n"
+#~ " if ( !(value instanceof String) ) return false;\n"
+#~ " String string = (String) value;\n"
+#~ " if (type == CapitalizeType.ALL) {\n"
+#~ " return string.equals( string.toUpperCase() );\n"
+#~ " }\n"
+#~ " else {\n"
+#~ " String first = string.substring(0,1);\n"
+#~ " return first.equals( first.toUpperCase();\n"
+#~ " }\n"
+#~ " }\n"
+#~ "}"
+#~ msgstr ""
+#~ "public class CapitalizedValidator\n"
+#~ " implements Validator<Capitalized>, PropertyConstraint {\n"
+#~ " private CapitalizeType type;\n"
+#~ "\n"
+#~ " //part of the Validator<Annotation> contract,\n"
+#~ " //allows to get and use the annotation values\n"
+#~ " public void initialize(Capitalized parameters) {\n"
+#~ " type = parameters.type();\n"
+#~ " }\n"
+#~ "\n"
+#~ " //part of the property constraint contract\n"
+#~ " public boolean isValid(Object value) {\n"
+#~ " if (value==null) return true;\n"
+#~ " if ( !(value instanceof String) ) return false;\n"
+#~ " String string = (String) value;\n"
+#~ " if (type == CapitalizeType.ALL) {\n"
+#~ " return string.equals( string.toUpperCase() );\n"
+#~ " }\n"
+#~ " else {\n"
+#~ " String first = string.substring(0,1);\n"
+#~ " return first.equals( first.toUpperCase();\n"
+#~ " }\n"
+#~ " }\n"
+#~ "}"
+
+#~ msgid ""
+#~ "@Target(METHOD)\n"
+#~ "@Retention(RUNTIME)\n"
+#~ "@Documented\n"
+#~ "<emphasis role=\"bold\">public @interface Patterns {</emphasis>\n"
+#~ " Pattern[] value();\n"
+#~ "}\n"
+#~ "\n"
+#~ "@Target(METHOD)\n"
+#~ "@Retention(RUNTIME)\n"
+#~ "@Documented\n"
+#~ "@ValidatorClass(PatternValidator.class)\n"
+#~ "public @interface Pattern {\n"
+#~ " String regexp();\n"
+#~ "}"
+#~ msgstr ""
+#~ "@Target(METHOD)\n"
+#~ "@Retention(RUNTIME)\n"
+#~ "@Documented\n"
+#~ "<emphasis role=\"bold\">public @interface Patterns {</emphasis>\n"
+#~ " Pattern[] value();\n"
+#~ "}\n"
+#~ "\n"
+#~ "@Target(METHOD)\n"
+#~ "@Retention(RUNTIME)\n"
+#~ "@Documented\n"
+#~ "@ValidatorClass(PatternValidator.class)\n"
+#~ "public @interface Pattern {\n"
+#~ " String regexp();\n"
+#~ "}"
+
+#~ msgid ""
+#~ "public class Address {\n"
+#~ " private String line1;\n"
+#~ " private String line2;\n"
+#~ " private String zip;\n"
+#~ " private String state;\n"
+#~ " private String country;\n"
+#~ " private long id;\n"
+#~ "\n"
+#~ " // a not null string of 20 characters maximum\n"
+#~ " @Length(max=20)\n"
+#~ " @NotNull\n"
+#~ " public String getCountry() {\n"
+#~ " return country;\n"
+#~ " }\n"
+#~ "\n"
+#~ " // a non null string\n"
+#~ " @NotNull\n"
+#~ " public String getLine1() {\n"
+#~ " return line1;\n"
+#~ " }\n"
+#~ "\n"
+#~ " //no constraint\n"
+#~ " public String getLine2() {\n"
+#~ " return line2;\n"
+#~ " }\n"
+#~ "\n"
+#~ " // a not null string of 3 characters maximum\n"
+#~ " @Length(max=3) @NotNull\n"
+#~ " public String getState() {\n"
+#~ " return state;\n"
+#~ " }\n"
+#~ "\n"
+#~ " // a not null numeric string of 5 characters maximum\n"
+#~ " // if the string is longer, the message will\n"
+#~ " //be searched in the resource bundle at key 'long'\n"
+#~ " @Length(max=5, message=\"{long}\")\n"
+#~ " @Pattern(regex=\"[0-9]+\")\n"
+#~ " @NotNull\n"
+#~ " public String getZip() {\n"
+#~ " return zip;\n"
+#~ " }\n"
+#~ "\n"
+#~ " // should always be true\n"
+#~ " @AssertTrue\n"
+#~ " public boolean isValid() {\n"
+#~ " return true;\n"
+#~ " }\n"
+#~ "\n"
+#~ " // a numeric between 1 and 2000\n"
+#~ " @Id @Min(1)\n"
+#~ " @Range(max=2000)\n"
+#~ " public long getId() {\n"
+#~ " return id;\n"
+#~ " }\n"
+#~ "}"
+#~ msgstr ""
+#~ "public class Address {\n"
+#~ " private String line1;\n"
+#~ " private String line2;\n"
+#~ " private String zip;\n"
+#~ " private String state;\n"
+#~ " private String country;\n"
+#~ " private long id;\n"
+#~ "\n"
+#~ " // a not null string of 20 characters maximum\n"
+#~ " @Length(max=20)\n"
+#~ " @NotNull\n"
+#~ " public String getCountry() {\n"
+#~ " return country;\n"
+#~ " }\n"
+#~ "\n"
+#~ " // a non null string\n"
+#~ " @NotNull\n"
+#~ " public String getLine1() {\n"
+#~ " return line1;\n"
+#~ " }\n"
+#~ "\n"
+#~ " //no constraint\n"
+#~ " public String getLine2() {\n"
+#~ " return line2;\n"
+#~ " }\n"
+#~ "\n"
+#~ " // a not null string of 3 characters maximum\n"
+#~ " @Length(max=3) @NotNull\n"
+#~ " public String getState() {\n"
+#~ " return state;\n"
+#~ " }\n"
+#~ "\n"
+#~ " // a not null numeric string of 5 characters maximum\n"
+#~ " // if the string is longer, the message will\n"
+#~ " //be searched in the resource bundle at key 'long'\n"
+#~ " @Length(max=5, message=\"{long}\")\n"
+#~ " @Pattern(regex=\"[0-9]+\")\n"
+#~ " @NotNull\n"
+#~ " public String getZip() {\n"
+#~ " return zip;\n"
+#~ " }\n"
+#~ "\n"
+#~ " // should always be true\n"
+#~ " @AssertTrue\n"
+#~ " public boolean isValid() {\n"
+#~ " return true;\n"
+#~ " }\n"
+#~ "\n"
+#~ " // a numeric between 1 and 2000\n"
+#~ " @Id @Min(1)\n"
+#~ " @Range(max=2000)\n"
+#~ " public long getId() {\n"
+#~ " return id;\n"
+#~ " }\n"
+#~ "}"
+
+#~ msgid ""
+#~ "@MyBeanConstraint(max=45\n"
+#~ "public class Dog {\n"
+#~ " @AssertTrue private boolean isMale;\n"
+#~ " @NotNull protected String getName() { ... };\n"
+#~ " ...\n"
+#~ "}"
+#~ msgstr ""
+#~ "@MyBeanConstraint(max=45\n"
+#~ "public class Dog {\n"
+#~ " @AssertTrue private boolean isMale;\n"
+#~ " @NotNull protected String getName() { ... };\n"
+#~ " ...\n"
+#~ "}"
+
+#~ msgid ""
+#~ "public interface Named {\n"
+#~ " @NotNull String getName();\n"
+#~ " ...\n"
+#~ "}\n"
+#~ "\n"
+#~ "public class Dog implements Named {\n"
+#~ "\n"
+#~ " @AssertTrue private boolean isMale;\n"
+#~ "\n"
+#~ " public String getName() { ... };\n"
+#~ "\n"
+#~ "}"
+#~ msgstr ""
+#~ "public interface Named {\n"
+#~ " @NotNull String getName();\n"
+#~ " ...\n"
+#~ "}\n"
+#~ "\n"
+#~ "public class Dog implements Named {\n"
+#~ "\n"
+#~ " @AssertTrue private boolean isMale;\n"
+#~ "\n"
+#~ " public String getName() { ... };\n"
+#~ "\n"
+#~ "}"
Modified: projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/ja-JP/Author_Group.po
===================================================================
--- projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/ja-JP/Author_Group.po 2009-12-03 01:31:33 UTC (rev 97335)
+++ projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/ja-JP/Author_Group.po 2009-12-03 02:29:18 UTC (rev 97336)
@@ -1,5 +0,0 @@
-#. Tag: author
-#: Author_Group.xml:6
-#, no-c-format
-msgid "<firstname>Red Hat Documentation Group</firstname> <surname></surname>"
-msgstr ""
Modified: projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/ja-JP/Book_Info.po
===================================================================
--- projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/ja-JP/Book_Info.po 2009-12-03 01:31:33 UTC (rev 97335)
+++ projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/ja-JP/Book_Info.po 2009-12-03 02:29:18 UTC (rev 97336)
@@ -1,25 +1,16 @@
#. Tag: title
-#: Book_Info.xml:6
#, no-c-format
msgid "Hibernate Validator Reference Guide"
msgstr ""
#. Tag: subtitle
-#: Book_Info.xml:7
#, no-c-format
msgid "for Use with JBoss Enterprise Application Platform 5.0"
msgstr ""
#. Tag: para
-#: Book_Info.xml:14
#, no-c-format
msgid ""
"The JBoss Enterprise Application Platform Edition of the Hibernate Validator "
"Reference Guide"
msgstr ""
-
-#. Tag: holder
-#: Book_Info.xml:25
-#, no-c-format
-msgid "&HOLDER;"
-msgstr ""
Modified: projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/ja-JP/Preface.po
===================================================================
--- projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/ja-JP/Preface.po 2009-12-03 01:31:33 UTC (rev 97335)
+++ projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/ja-JP/Preface.po 2009-12-03 02:29:18 UTC (rev 97336)
@@ -1,11 +1,9 @@
#. Tag: title
-#: Preface.xml:7
#, no-c-format
msgid "Preface"
msgstr ""
#. Tag: para
-#: Preface.xml:9
#, no-c-format
msgid ""
"Annotations are a very convenient and elegant way to specify invariant "
@@ -20,7 +18,6 @@
msgstr ""
#. Tag: para
-#: Preface.xml:20
#, no-c-format
msgid ""
"Hibernate Validator works at two levels. First, it is able to check in-"
@@ -30,7 +27,6 @@
msgstr ""
#. Tag: para
-#: Preface.xml:25
#, no-c-format
msgid ""
"Each constraint annotation is associated to a validator implementation "
@@ -44,7 +40,6 @@
msgstr ""
#. Tag: para
-#: Preface.xml:35
#, no-c-format
msgid ""
"When checking instances at runtime, Hibernate Validator returns information "
Modified: projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/ja-JP/Revision_History.po
===================================================================
--- projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/ja-JP/Revision_History.po 2009-12-03 01:31:33 UTC (rev 97335)
+++ projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/ja-JP/Revision_History.po 2009-12-03 02:29:18 UTC (rev 97336)
@@ -1,11 +1,9 @@
#. Tag: title
-#: Revision_History.xml:6
#, no-c-format
msgid "Revision History"
msgstr ""
-#. Tag: author
-#: Revision_History.xml:12
+#. Tag: member
#, no-c-format
-msgid "<firstname></firstname> <surname></surname> <email></email>"
+msgid "Initial draft."
msgstr ""
Modified: projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/ja-JP/checkconstraints.po
===================================================================
--- projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/ja-JP/checkconstraints.po 2009-12-03 01:31:33 UTC (rev 97335)
+++ projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/ja-JP/checkconstraints.po 2009-12-03 02:29:18 UTC (rev 97336)
@@ -1,11 +1,9 @@
#. Tag: title
-#: checkconstraints.xml:3
#, no-c-format
msgid "Using the Validator framework"
msgstr ""
#. Tag: para
-#: checkconstraints.xml:5
#, no-c-format
msgid ""
"Hibernate Validator is intended to be used to implement multi-layered data "
@@ -14,19 +12,16 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:10
#, no-c-format
msgid "This chapter will cover Hibernate Validator usage for different layers"
msgstr ""
#. Tag: title
-#: checkconstraints.xml:14
#, no-c-format
msgid "Database schema-level validation"
msgstr ""
#. Tag: para
-#: checkconstraints.xml:16
#, no-c-format
msgid ""
"Out of the box, Hibernate Annotations will translate the constraints you "
@@ -37,7 +32,6 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:22
#, no-c-format
msgid ""
"Using hbm2ddl, domain model constraints will be expressed into the database "
@@ -45,7 +39,6 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:25
#, no-c-format
msgid ""
"If, for some reason, the feature needs to be disabled, set "
@@ -54,13 +47,11 @@
msgstr ""
#. Tag: title
-#: checkconstraints.xml:31
#, no-c-format
msgid "ORM integration"
msgstr ""
#. Tag: para
-#: checkconstraints.xml:33
#, no-c-format
msgid ""
"Hibernate Validator integrates with both Hibernate and all pure Java "
@@ -68,13 +59,11 @@
msgstr ""
#. Tag: title
-#: checkconstraints.xml:37
#, no-c-format
msgid "Hibernate event-based validation"
msgstr ""
#. Tag: para
-#: checkconstraints.xml:39
#, no-c-format
msgid ""
"Hibernate Validator has two built-in Hibernate event listeners. Whenever a "
@@ -90,7 +79,6 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:51
#, no-c-format
msgid ""
"If Hibernate Validator is present in the classpath, Hibernate Annotations "
@@ -100,7 +88,6 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:58
#, no-c-format
msgid ""
"If the beans are not annotated with validation annotations, there is no "
@@ -108,40 +95,18 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:62
#, no-c-format
msgid ""
"In case you need to manually set the event listeners for Hibernate Core, use "
"the following configuration in <literal>hibernate.cfg.xml</literal>:"
msgstr ""
-#. Tag: programlisting
-#: checkconstraints.xml:66
-#, no-c-format
-msgid ""
-"<hibernate-configuration>\n"
-" ...\n"
-" <event type=\"pre-update\">\n"
-" <listener \n"
-" class=\"org.hibernate.validator.event.ValidateEventListener\"/"
-">\n"
-" </event>\n"
-" <event type=\"pre-insert\">\n"
-" <listener \n"
-" class=\"org.hibernate.validator.event.ValidateEventListener\"/"
-">\n"
-" </event>\n"
-"</hibernate-configuration>"
-msgstr ""
-
#. Tag: title
-#: checkconstraints.xml:70
#, no-c-format
msgid "Java Persistence event-based validation"
msgstr ""
#. Tag: para
-#: checkconstraints.xml:72
#, no-c-format
msgid ""
"Hibernate Validator is not tied to Hibernate for event based validation: a "
@@ -156,24 +121,11 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:83
#, no-c-format
msgid "Here is how to make a class validatable:"
msgstr ""
-#. Tag: programlisting
-#: checkconstraints.xml:85
-#, no-c-format
-msgid ""
-"@Entity\n"
-"@EntityListeners( JPAValidateListener.class )\n"
-"public class Submarine {\n"
-" ...\n"
-"}"
-msgstr ""
-
#. Tag: para
-#: checkconstraints.xml:88
#, no-c-format
msgid ""
"Compared to the Hibernate event, the Java Persistence listener has two "
@@ -182,42 +134,26 @@
msgstr ""
#. Tag: title
-#: checkconstraints.xml:97
#, no-c-format
msgid "Application-level validation"
msgstr ""
#. Tag: para
-#: checkconstraints.xml:99
#, no-c-format
msgid "Hibernate Validator can be applied anywhere in your application code."
msgstr ""
-#. Tag: programlisting
-#: checkconstraints.xml:102
-#, no-c-format
-msgid ""
-"ClassValidator personValidator = new ClassValidator( Person.class );\n"
-"ClassValidator addressValidator = new ClassValidator( Address.class, "
-"ResourceBundle.getBundle(\"messages\", Locale.ENGLISH) );\n"
-"\n"
-"InvalidValue[] validationMessages = addressValidator.getInvalidValues"
-"(address);"
-msgstr ""
-
#. Tag: para
-#: checkconstraints.xml:104
#, no-c-format
msgid ""
"The first two lines prepare the Hibernate Validator for class checking. The "
"first one relies upon the error messages embedded in Hibernate Validator "
-"(see <xref linkend=\"validator-defineconstraints-error\"/>), the second one "
+"(see <xref linkend=\"validator-defineconstraints-error\" />), the second one "
"uses a resource bundle for these messages. It is considered a good practice "
"to execute these lines once and cache the validator instances."
msgstr ""
#. Tag: para
-#: checkconstraints.xml:111
#, no-c-format
msgid ""
"The third line actually validates the <literal>Address</literal> instance "
@@ -226,37 +162,18 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:115
#, no-c-format
msgid ""
"You can also check a particular property instead of the whole bean. This "
"might be useful for property per property user interaction"
msgstr ""
-#. Tag: programlisting
-#: checkconstraints.xml:118
-#, no-c-format
-msgid ""
-"ClassValidator addressValidator = new ClassValidator( Address.class, "
-"ResourceBundle.getBundle(\"messages\", Locale.ENGLISH) );\n"
-"\n"
-"//only get city property invalid values\n"
-"InvalidValue[] validationMessages = addressValidator.getInvalidValues"
-"(address, \"city\");\n"
-"\n"
-"//only get potential city property invalid values\n"
-"InvalidValue[] validationMessages = addressValidator."
-"getPotentialInvalidValues(\"city\", \"Paris\")"
-msgstr ""
-
#. Tag: title
-#: checkconstraints.xml:122
#, no-c-format
msgid "Presentation layer validation"
msgstr ""
#. Tag: para
-#: checkconstraints.xml:124
#, no-c-format
msgid ""
"When working with JSF and <productname>JBoss Seam</productname>, one can "
@@ -266,34 +183,7 @@
"violations presented in the view"
msgstr ""
-#. Tag: programlisting
-#: checkconstraints.xml:130
-#, no-c-format
-msgid ""
-"<h:form>\n"
-" <div>\n"
-" <h:messages/>\n"
-" </div>\n"
-" <emphasis role=\"bold\"><s:validateAll></emphasis>\n"
-" <div>\n"
-" Country:\n"
-" <h:inputText value=\"#{location.country}\" required=\"true\"/"
-">\n"
-" </div>\n"
-" <div>\n"
-" Zip code:\n"
-" <h:inputText value=\"#{location.zip}\" required=\"true\"/"
-">\n"
-" </div>\n"
-" <div>\n"
-" <h:commandButton/>\n"
-" </div>\n"
-" <emphasis role=\"bold\"></s:validateAll></emphasis>\n"
-"</h:form>"
-msgstr ""
-
#. Tag: para
-#: checkconstraints.xml:132
#, no-c-format
msgid ""
"Going even further, and adding <productname>Ajax4JSF</productname> to the "
@@ -302,7 +192,6 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:137
#, no-c-format
msgid ""
"Check the <ulink url=\"http://www.jboss.com/products/seam\">JBoss Seam</"
@@ -310,13 +199,11 @@
msgstr ""
#. Tag: title
-#: checkconstraints.xml:142
#, no-c-format
msgid "Validation informations"
msgstr ""
#. Tag: para
-#: checkconstraints.xml:144
#, no-c-format
msgid ""
"As a validation information carrier, hibernate provide an array of "
@@ -325,13 +212,11 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:148
#, no-c-format
msgid "<methodname>getBeanClass()</methodname> retrieves the failing bean type"
msgstr ""
#. Tag: para
-#: checkconstraints.xml:151
#, no-c-format
msgid ""
"<methodname>getBean()</methodname>retrieves the failing instance (if any ie "
@@ -339,13 +224,11 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:155
#, no-c-format
msgid "<methodname>getValue()</methodname> retrieves the failing value"
msgstr ""
#. Tag: para
-#: checkconstraints.xml:158
#, no-c-format
msgid ""
"<methodname>getMessage()</methodname> retrieves the proper internationalized "
@@ -353,7 +236,6 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:161
#, no-c-format
msgid ""
"<methodname>getRootBean()</methodname> retrieves the root bean instance "
@@ -362,7 +244,6 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:166
#, no-c-format
msgid ""
"<literal>getPropertyPath()</literal> retrieves the dotted path of the "
Modified: projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/ja-JP/defineconstraints.po
===================================================================
--- projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/ja-JP/defineconstraints.po 2009-12-03 01:31:33 UTC (rev 97335)
+++ projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/ja-JP/defineconstraints.po 2009-12-03 02:29:18 UTC (rev 97336)
@@ -1,17 +1,14 @@
#. Tag: title
-#: defineconstraints.xml:3
#, no-c-format
msgid "Defining constraints"
msgstr ""
#. Tag: title
-#: defineconstraints.xml:6
#, no-c-format
msgid "What is a constraint?"
msgstr ""
#. Tag: para
-#: defineconstraints.xml:8
#, no-c-format
msgid ""
"A constraint is a rule that a given element (field, property or bean) has to "
@@ -21,13 +18,11 @@
msgstr ""
#. Tag: title
-#: defineconstraints.xml:16
#, no-c-format
msgid "Built in constraints"
msgstr ""
#. Tag: para
-#: defineconstraints.xml:18
#, no-c-format
msgid ""
"Hibernate Validator comes with some built-in constraints, which covers most "
@@ -36,131 +31,106 @@
msgstr ""
#. Tag: title
-#: defineconstraints.xml:23
#, no-c-format
msgid "Built-in constraints"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:30
#, no-c-format
msgid "Annotation"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:32
#, no-c-format
msgid "Apply on"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:34
#, no-c-format
msgid "Runtime checking"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:36
#, no-c-format
msgid "Hibernate Metadata impact"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:42
#, no-c-format
msgid "@Length(min=, max=)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:44 defineconstraints.xml:188
-#: defineconstraints.xml:199
#, no-c-format
msgid "property (String)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:46
#, no-c-format
msgid "check if the string length match the range"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:48
#, no-c-format
msgid "Column length will be set to max"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:52
#, no-c-format
msgid "@Max(value=)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:54 defineconstraints.xml:65 defineconstraints.xml:130
-#: defineconstraints.xml:210
#, no-c-format
msgid "property (numeric or string representation of a numeric)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:57
#, no-c-format
msgid "check if the value is less than or equals to max"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:59 defineconstraints.xml:70 defineconstraints.xml:101
-#: defineconstraints.xml:136
#, no-c-format
msgid "Add a check constraint on the column"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:63
#, no-c-format
msgid "@Min(value=)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:68
#, no-c-format
msgid "check if the value is more than or equals to min"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:74
#, no-c-format
msgid "@NotNull"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:76 defineconstraints.xml:86 defineconstraints.xml:153
-#: defineconstraints.xml:164
#, no-c-format
msgid "property"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:78
#, no-c-format
msgid "check if the value is not null"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:80
#, no-c-format
msgid "Column(s) are not null"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:84
#, no-c-format
msgid "@NotEmpty"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:88
#, no-c-format
msgid ""
"check if the string is not null nor empty. Check if the connection is not "
@@ -168,65 +138,51 @@
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:91
#, no-c-format
msgid "Column(s) are not null (for String)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:95
#, no-c-format
msgid "@Past"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:97 defineconstraints.xml:107
#, no-c-format
msgid "property (date or calendar)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:99
#, no-c-format
msgid "check if the date is in the past"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:105
#, no-c-format
msgid "@Future"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:109
#, no-c-format
msgid "check if the date is in the future"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:111 defineconstraints.xml:124
-#: defineconstraints.xml:147 defineconstraints.xml:158
-#: defineconstraints.xml:169 defineconstraints.xml:182
-#: defineconstraints.xml:193 defineconstraints.xml:204
-#: defineconstraints.xml:228
#, no-c-format
msgid "none"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:115
#, no-c-format
msgid "@Pattern(regex=\"regexp\", flag=) or @Patterns( {@Pattern(...)} )"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:118 defineconstraints.xml:223
#, no-c-format
msgid "property (string)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:120
#, no-c-format
msgid ""
"check if the property match the regular expression given a match flag (see "
@@ -234,43 +190,36 @@
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:128
#, no-c-format
msgid "@Range(min=, max=)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:133
#, no-c-format
msgid "check if the value is between min and max (included)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:140
#, no-c-format
msgid "@Size(min=, max=)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:142
#, no-c-format
msgid "property (array, collection, map)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:144
#, no-c-format
msgid "check if the element size is between min and max (included)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:151
#, no-c-format
msgid "@AssertFalse"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:155
#, no-c-format
msgid ""
"check that the method evaluates to false (useful for constraints expressed "
@@ -278,13 +227,11 @@
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:162
#, no-c-format
msgid "@AssertTrue"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:166
#, no-c-format
msgid ""
"check that the method evaluates to true (useful for constraints expressed in "
@@ -292,19 +239,16 @@
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:173
#, no-c-format
msgid "@Valid"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:175
#, no-c-format
msgid "property (object)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:177
#, no-c-format
msgid ""
"perform validation recursively on the associated object. If the object is a "
@@ -313,25 +257,21 @@
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:186
#, no-c-format
msgid "@Email"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:190
#, no-c-format
msgid "check whether the string is conform to the email address specification"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:197
#, no-c-format
msgid "@CreditCardNumber"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:201
#, no-c-format
msgid ""
"check whether the string is a well formated credit card number (derivative "
@@ -339,13 +279,11 @@
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:208
#, no-c-format
-msgid "@Digits"
+msgid "@Digits(integerDigits=1)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:213
#, no-c-format
msgid ""
"check whether the property is a number having up to <literal>integerDigits</"
@@ -354,31 +292,26 @@
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:217
#, no-c-format
msgid "define column precision and scale"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:221
#, no-c-format
msgid "@EAN"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:225
#, no-c-format
msgid "check whether the string is a properly formated EAN or UPC-A code"
msgstr ""
#. Tag: title
-#: defineconstraints.xml:236
#, no-c-format
msgid "Error messages"
msgstr ""
#. Tag: para
-#: defineconstraints.xml:238
#, no-c-format
msgid ""
"Hibernate Validator comes with a default set of error messages translated in "
@@ -392,7 +325,6 @@
msgstr ""
#. Tag: para
-#: defineconstraints.xml:248
#, no-c-format
msgid ""
"Alternatively you can provide a <classname>ResourceBundle</classname> while "
@@ -403,13 +335,11 @@
msgstr ""
#. Tag: title
-#: defineconstraints.xml:257
#, no-c-format
msgid "Writing your own constraints"
msgstr ""
#. Tag: para
-#: defineconstraints.xml:259
#, no-c-format
msgid ""
"Extending the set of built-in constraints is extremely easy. Any constraint "
@@ -418,22 +348,7 @@
"implementation class). Here is a simple user-defined descriptor:"
msgstr ""
-#. Tag: programlisting
-#: defineconstraints.xml:265
-#, no-c-format
-msgid ""
-"@ValidatorClass(CapitalizedValidator.class)\n"
-"@Target(METHOD)\n"
-"@Retention(RUNTIME)\n"
-"@Documented\n"
-"public @interface Capitalized {\n"
-" CapitalizeType type() default Capitalize.FIRST;\n"
-" String message() default \"has incorrect capitalization\"\n"
-"}"
-msgstr ""
-
#. Tag: para
-#: defineconstraints.xml:267
#, no-c-format
msgid ""
"<literal>type</literal> is a parameter describing how the property should to "
@@ -442,7 +357,6 @@
msgstr ""
#. Tag: para
-#: defineconstraints.xml:271
#, no-c-format
msgid ""
"<literal>message</literal> is the default string used to describe the "
@@ -453,35 +367,15 @@
"<literal>Capitalization is not {type}</literal> would generate "
"<literal>Capitalization is not FIRST</literal> ), externalizing the whole "
"string in <filename>ValidatorMessages.properties</filename> is considered "
-"good practice. See <xref linkend=\"validator-defineconstraints-error\"/> ."
+"good practice. See <xref linkend=\"validator-defineconstraints-error\" /> ."
msgstr ""
-#. Tag: programlisting
-#: defineconstraints.xml:282
-#, no-c-format
-msgid ""
-"@ValidatorClass(CapitalizedValidator.class)\n"
-"@Target(METHOD)\n"
-"@Retention(RUNTIME)\n"
-"@Documented\n"
-"public @interface Capitalized {\n"
-" CapitalizeType type() default Capitalize.FIRST;\n"
-" String message() default \"{validator.capitalized}\";\n"
-"}\n"
-"\n"
-"\n"
-"#in ValidatorMessages.properties\n"
-"validator.capitalized = <literal>Capitalization is not {type}</literal>"
-msgstr ""
-
#. Tag: para
-#: defineconstraints.xml:284
#, no-c-format
msgid "As you can see the {} notation is recursive."
msgstr ""
#. Tag: para
-#: defineconstraints.xml:286
#, no-c-format
msgid ""
"To link a descriptor to its validator implementation, we use the "
@@ -491,7 +385,6 @@
msgstr ""
#. Tag: para
-#: defineconstraints.xml:291
#, no-c-format
msgid ""
"We now have to implement the validator (ie. the rule checking "
@@ -502,38 +395,7 @@
"literal> )"
msgstr ""
-#. Tag: programlisting
-#: defineconstraints.xml:298
-#, no-c-format
-msgid ""
-"public class CapitalizedValidator\n"
-" implements Validator<Capitalized>, PropertyConstraint {\n"
-" private CapitalizeType type;\n"
-"\n"
-" //part of the Validator<Annotation> contract,\n"
-" //allows to get and use the annotation values\n"
-" public void initialize(Capitalized parameters) {\n"
-" type = parameters.type();\n"
-" }\n"
-"\n"
-" //part of the property constraint contract\n"
-" public boolean isValid(Object value) {\n"
-" if (value==null) return true;\n"
-" if ( !(value instanceof String) ) return false;\n"
-" String string = (String) value;\n"
-" if (type == CapitalizeType.ALL) {\n"
-" return string.equals( string.toUpperCase() );\n"
-" }\n"
-" else {\n"
-" String first = string.substring(0,1);\n"
-" return first.equals( first.toUpperCase();\n"
-" }\n"
-" }\n"
-"}"
-msgstr ""
-
#. Tag: para
-#: defineconstraints.xml:300
#, no-c-format
msgid ""
"The <literal>isValid()</literal> method should return false if the "
@@ -542,7 +404,6 @@
msgstr ""
#. Tag: para
-#: defineconstraints.xml:304
#, no-c-format
msgid ""
"We only have seen property level validation, but you can write a Bean level "
@@ -553,35 +414,13 @@
msgstr ""
#. Tag: para
-#: defineconstraints.xml:310
#, no-c-format
msgid ""
"If your constraint can be applied multiple times (with different parameters) "
"on the same property or type, you can use the following annotation form:"
msgstr ""
-#. Tag: programlisting
-#: defineconstraints.xml:314
-#, no-c-format
-msgid ""
-"@Target(METHOD)\n"
-"@Retention(RUNTIME)\n"
-"@Documented\n"
-"<emphasis role=\"bold\">public @interface Patterns {</emphasis>\n"
-" Pattern[] value();\n"
-"}\n"
-"\n"
-"@Target(METHOD)\n"
-"@Retention(RUNTIME)\n"
-"@Documented\n"
-"@ValidatorClass(PatternValidator.class)\n"
-"public @interface Pattern {\n"
-" String regexp();\n"
-"}"
-msgstr ""
-
#. Tag: para
-#: defineconstraints.xml:316
#, no-c-format
msgid ""
"Basically an annotation containing the value attribute as an array of "
@@ -589,102 +428,25 @@
msgstr ""
#. Tag: title
-#: defineconstraints.xml:321
#, no-c-format
msgid "Annotating your domain model"
msgstr ""
#. Tag: para
-#: defineconstraints.xml:323
#, no-c-format
msgid ""
"Since you are already familiar with annotations now, the syntax should be "
"very familiar"
msgstr ""
-#. Tag: programlisting
-#: defineconstraints.xml:326
-#, no-c-format
-msgid ""
-"public class Address {\n"
-" private String line1;\n"
-" private String line2;\n"
-" private String zip;\n"
-" private String state;\n"
-" private String country;\n"
-" private long id;\n"
-"\n"
-" // a not null string of 20 characters maximum\n"
-" @Length(max=20)\n"
-" @NotNull\n"
-" public String getCountry() {\n"
-" return country;\n"
-" }\n"
-"\n"
-" // a non null string\n"
-" @NotNull\n"
-" public String getLine1() {\n"
-" return line1;\n"
-" }\n"
-"\n"
-" //no constraint\n"
-" public String getLine2() {\n"
-" return line2;\n"
-" }\n"
-"\n"
-" // a not null string of 3 characters maximum\n"
-" @Length(max=3) @NotNull\n"
-" public String getState() {\n"
-" return state;\n"
-" }\n"
-"\n"
-" // a not null numeric string of 5 characters maximum\n"
-" // if the string is longer, the message will\n"
-" //be searched in the resource bundle at key 'long'\n"
-" @Length(max=5, message=\"{long}\")\n"
-" @Pattern(regex=\"[0-9]+\")\n"
-" @NotNull\n"
-" public String getZip() {\n"
-" return zip;\n"
-" }\n"
-"\n"
-" // should always be true\n"
-" @AssertTrue\n"
-" public boolean isValid() {\n"
-" return true;\n"
-" }\n"
-"\n"
-" // a numeric between 1 and 2000\n"
-" @Id @Min(1)\n"
-" @Range(max=2000)\n"
-" public long getId() {\n"
-" return id;\n"
-" }\n"
-"}"
-msgstr ""
-
#. Tag: para
-#: defineconstraints.xml:328
#, no-c-format
msgid ""
"While the example only shows public property validation, you can also "
"annotate fields of any kind of visibility"
msgstr ""
-#. Tag: programlisting
-#: defineconstraints.xml:331
-#, no-c-format
-msgid ""
-"@MyBeanConstraint(max=45\n"
-"public class Dog {\n"
-" @AssertTrue private boolean isMale;\n"
-" @NotNull protected String getName() { ... };\n"
-" ...\n"
-"}"
-msgstr ""
-
#. Tag: para
-#: defineconstraints.xml:333
#, no-c-format
msgid ""
"You can also annotate interfaces. Hibernate Validator will check all "
@@ -692,26 +454,7 @@
"the appropriate validator annotations."
msgstr ""
-#. Tag: programlisting
-#: defineconstraints.xml:337
-#, no-c-format
-msgid ""
-"public interface Named {\n"
-" @NotNull String getName();\n"
-" ...\n"
-"}\n"
-"\n"
-"public class Dog implements Named {\n"
-"\n"
-" @AssertTrue private boolean isMale;\n"
-"\n"
-" public String getName() { ... };\n"
-"\n"
-"}"
-msgstr ""
-
#. Tag: para
-#: defineconstraints.xml:339
#, no-c-format
msgid ""
"The name property will be checked for nullity when the Dog bean is validated."
Modified: projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/pt-BR/Author_Group.po
===================================================================
--- projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/pt-BR/Author_Group.po 2009-12-03 01:31:33 UTC (rev 97335)
+++ projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/pt-BR/Author_Group.po 2009-12-03 02:29:18 UTC (rev 97336)
@@ -1,5 +0,0 @@
-#. Tag: author
-#: Author_Group.xml:6
-#, no-c-format
-msgid "<firstname>Red Hat Documentation Group</firstname> <surname></surname>"
-msgstr ""
Modified: projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/pt-BR/Book_Info.po
===================================================================
--- projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/pt-BR/Book_Info.po 2009-12-03 01:31:33 UTC (rev 97335)
+++ projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/pt-BR/Book_Info.po 2009-12-03 02:29:18 UTC (rev 97336)
@@ -1,25 +1,16 @@
#. Tag: title
-#: Book_Info.xml:6
#, no-c-format
msgid "Hibernate Validator Reference Guide"
msgstr ""
#. Tag: subtitle
-#: Book_Info.xml:7
#, no-c-format
msgid "for Use with JBoss Enterprise Application Platform 5.0"
msgstr ""
#. Tag: para
-#: Book_Info.xml:14
#, no-c-format
msgid ""
"The JBoss Enterprise Application Platform Edition of the Hibernate Validator "
"Reference Guide"
msgstr ""
-
-#. Tag: holder
-#: Book_Info.xml:25
-#, no-c-format
-msgid "&HOLDER;"
-msgstr ""
Modified: projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/pt-BR/Preface.po
===================================================================
--- projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/pt-BR/Preface.po 2009-12-03 01:31:33 UTC (rev 97335)
+++ projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/pt-BR/Preface.po 2009-12-03 02:29:18 UTC (rev 97336)
@@ -1,11 +1,9 @@
#. Tag: title
-#: Preface.xml:7
#, no-c-format
msgid "Preface"
msgstr ""
#. Tag: para
-#: Preface.xml:9
#, no-c-format
msgid ""
"Annotations are a very convenient and elegant way to specify invariant "
@@ -20,7 +18,6 @@
msgstr ""
#. Tag: para
-#: Preface.xml:20
#, no-c-format
msgid ""
"Hibernate Validator works at two levels. First, it is able to check in-"
@@ -30,7 +27,6 @@
msgstr ""
#. Tag: para
-#: Preface.xml:25
#, no-c-format
msgid ""
"Each constraint annotation is associated to a validator implementation "
@@ -44,7 +40,6 @@
msgstr ""
#. Tag: para
-#: Preface.xml:35
#, no-c-format
msgid ""
"When checking instances at runtime, Hibernate Validator returns information "
Modified: projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/pt-BR/Revision_History.po
===================================================================
--- projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/pt-BR/Revision_History.po 2009-12-03 01:31:33 UTC (rev 97335)
+++ projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/pt-BR/Revision_History.po 2009-12-03 02:29:18 UTC (rev 97336)
@@ -1,11 +1,9 @@
#. Tag: title
-#: Revision_History.xml:6
#, no-c-format
msgid "Revision History"
msgstr ""
-#. Tag: author
-#: Revision_History.xml:12
+#. Tag: member
#, no-c-format
-msgid "<firstname></firstname> <surname></surname> <email></email>"
+msgid "Initial draft."
msgstr ""
Modified: projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/pt-BR/checkconstraints.po
===================================================================
--- projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/pt-BR/checkconstraints.po 2009-12-03 01:31:33 UTC (rev 97335)
+++ projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/pt-BR/checkconstraints.po 2009-12-03 02:29:18 UTC (rev 97336)
@@ -1,11 +1,9 @@
#. Tag: title
-#: checkconstraints.xml:3
#, no-c-format
msgid "Using the Validator framework"
msgstr ""
#. Tag: para
-#: checkconstraints.xml:5
#, no-c-format
msgid ""
"Hibernate Validator is intended to be used to implement multi-layered data "
@@ -14,19 +12,16 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:10
#, no-c-format
msgid "This chapter will cover Hibernate Validator usage for different layers"
msgstr ""
#. Tag: title
-#: checkconstraints.xml:14
#, no-c-format
msgid "Database schema-level validation"
msgstr ""
#. Tag: para
-#: checkconstraints.xml:16
#, no-c-format
msgid ""
"Out of the box, Hibernate Annotations will translate the constraints you "
@@ -37,7 +32,6 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:22
#, no-c-format
msgid ""
"Using hbm2ddl, domain model constraints will be expressed into the database "
@@ -45,7 +39,6 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:25
#, no-c-format
msgid ""
"If, for some reason, the feature needs to be disabled, set "
@@ -54,13 +47,11 @@
msgstr ""
#. Tag: title
-#: checkconstraints.xml:31
#, no-c-format
msgid "ORM integration"
msgstr ""
#. Tag: para
-#: checkconstraints.xml:33
#, no-c-format
msgid ""
"Hibernate Validator integrates with both Hibernate and all pure Java "
@@ -68,13 +59,11 @@
msgstr ""
#. Tag: title
-#: checkconstraints.xml:37
#, no-c-format
msgid "Hibernate event-based validation"
msgstr ""
#. Tag: para
-#: checkconstraints.xml:39
#, no-c-format
msgid ""
"Hibernate Validator has two built-in Hibernate event listeners. Whenever a "
@@ -90,7 +79,6 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:51
#, no-c-format
msgid ""
"If Hibernate Validator is present in the classpath, Hibernate Annotations "
@@ -100,7 +88,6 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:58
#, no-c-format
msgid ""
"If the beans are not annotated with validation annotations, there is no "
@@ -108,40 +95,18 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:62
#, no-c-format
msgid ""
"In case you need to manually set the event listeners for Hibernate Core, use "
"the following configuration in <literal>hibernate.cfg.xml</literal>:"
msgstr ""
-#. Tag: programlisting
-#: checkconstraints.xml:66
-#, no-c-format
-msgid ""
-"<hibernate-configuration>\n"
-" ...\n"
-" <event type=\"pre-update\">\n"
-" <listener \n"
-" class=\"org.hibernate.validator.event.ValidateEventListener\"/"
-">\n"
-" </event>\n"
-" <event type=\"pre-insert\">\n"
-" <listener \n"
-" class=\"org.hibernate.validator.event.ValidateEventListener\"/"
-">\n"
-" </event>\n"
-"</hibernate-configuration>"
-msgstr ""
-
#. Tag: title
-#: checkconstraints.xml:70
#, no-c-format
msgid "Java Persistence event-based validation"
msgstr ""
#. Tag: para
-#: checkconstraints.xml:72
#, no-c-format
msgid ""
"Hibernate Validator is not tied to Hibernate for event based validation: a "
@@ -156,24 +121,11 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:83
#, no-c-format
msgid "Here is how to make a class validatable:"
msgstr ""
-#. Tag: programlisting
-#: checkconstraints.xml:85
-#, no-c-format
-msgid ""
-"@Entity\n"
-"@EntityListeners( JPAValidateListener.class )\n"
-"public class Submarine {\n"
-" ...\n"
-"}"
-msgstr ""
-
#. Tag: para
-#: checkconstraints.xml:88
#, no-c-format
msgid ""
"Compared to the Hibernate event, the Java Persistence listener has two "
@@ -182,42 +134,26 @@
msgstr ""
#. Tag: title
-#: checkconstraints.xml:97
#, no-c-format
msgid "Application-level validation"
msgstr ""
#. Tag: para
-#: checkconstraints.xml:99
#, no-c-format
msgid "Hibernate Validator can be applied anywhere in your application code."
msgstr ""
-#. Tag: programlisting
-#: checkconstraints.xml:102
-#, no-c-format
-msgid ""
-"ClassValidator personValidator = new ClassValidator( Person.class );\n"
-"ClassValidator addressValidator = new ClassValidator( Address.class, "
-"ResourceBundle.getBundle(\"messages\", Locale.ENGLISH) );\n"
-"\n"
-"InvalidValue[] validationMessages = addressValidator.getInvalidValues"
-"(address);"
-msgstr ""
-
#. Tag: para
-#: checkconstraints.xml:104
#, no-c-format
msgid ""
"The first two lines prepare the Hibernate Validator for class checking. The "
"first one relies upon the error messages embedded in Hibernate Validator "
-"(see <xref linkend=\"validator-defineconstraints-error\"/>), the second one "
+"(see <xref linkend=\"validator-defineconstraints-error\" />), the second one "
"uses a resource bundle for these messages. It is considered a good practice "
"to execute these lines once and cache the validator instances."
msgstr ""
#. Tag: para
-#: checkconstraints.xml:111
#, no-c-format
msgid ""
"The third line actually validates the <literal>Address</literal> instance "
@@ -226,37 +162,18 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:115
#, no-c-format
msgid ""
"You can also check a particular property instead of the whole bean. This "
"might be useful for property per property user interaction"
msgstr ""
-#. Tag: programlisting
-#: checkconstraints.xml:118
-#, no-c-format
-msgid ""
-"ClassValidator addressValidator = new ClassValidator( Address.class, "
-"ResourceBundle.getBundle(\"messages\", Locale.ENGLISH) );\n"
-"\n"
-"//only get city property invalid values\n"
-"InvalidValue[] validationMessages = addressValidator.getInvalidValues"
-"(address, \"city\");\n"
-"\n"
-"//only get potential city property invalid values\n"
-"InvalidValue[] validationMessages = addressValidator."
-"getPotentialInvalidValues(\"city\", \"Paris\")"
-msgstr ""
-
#. Tag: title
-#: checkconstraints.xml:122
#, no-c-format
msgid "Presentation layer validation"
msgstr ""
#. Tag: para
-#: checkconstraints.xml:124
#, no-c-format
msgid ""
"When working with JSF and <productname>JBoss Seam</productname>, one can "
@@ -266,34 +183,7 @@
"violations presented in the view"
msgstr ""
-#. Tag: programlisting
-#: checkconstraints.xml:130
-#, no-c-format
-msgid ""
-"<h:form>\n"
-" <div>\n"
-" <h:messages/>\n"
-" </div>\n"
-" <emphasis role=\"bold\"><s:validateAll></emphasis>\n"
-" <div>\n"
-" Country:\n"
-" <h:inputText value=\"#{location.country}\" required=\"true\"/"
-">\n"
-" </div>\n"
-" <div>\n"
-" Zip code:\n"
-" <h:inputText value=\"#{location.zip}\" required=\"true\"/"
-">\n"
-" </div>\n"
-" <div>\n"
-" <h:commandButton/>\n"
-" </div>\n"
-" <emphasis role=\"bold\"></s:validateAll></emphasis>\n"
-"</h:form>"
-msgstr ""
-
#. Tag: para
-#: checkconstraints.xml:132
#, no-c-format
msgid ""
"Going even further, and adding <productname>Ajax4JSF</productname> to the "
@@ -302,7 +192,6 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:137
#, no-c-format
msgid ""
"Check the <ulink url=\"http://www.jboss.com/products/seam\">JBoss Seam</"
@@ -310,13 +199,11 @@
msgstr ""
#. Tag: title
-#: checkconstraints.xml:142
#, no-c-format
msgid "Validation informations"
msgstr ""
#. Tag: para
-#: checkconstraints.xml:144
#, no-c-format
msgid ""
"As a validation information carrier, hibernate provide an array of "
@@ -325,13 +212,11 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:148
#, no-c-format
msgid "<methodname>getBeanClass()</methodname> retrieves the failing bean type"
msgstr ""
#. Tag: para
-#: checkconstraints.xml:151
#, no-c-format
msgid ""
"<methodname>getBean()</methodname>retrieves the failing instance (if any ie "
@@ -339,13 +224,11 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:155
#, no-c-format
msgid "<methodname>getValue()</methodname> retrieves the failing value"
msgstr ""
#. Tag: para
-#: checkconstraints.xml:158
#, no-c-format
msgid ""
"<methodname>getMessage()</methodname> retrieves the proper internationalized "
@@ -353,7 +236,6 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:161
#, no-c-format
msgid ""
"<methodname>getRootBean()</methodname> retrieves the root bean instance "
@@ -362,7 +244,6 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:166
#, no-c-format
msgid ""
"<literal>getPropertyPath()</literal> retrieves the dotted path of the "
Modified: projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/pt-BR/defineconstraints.po
===================================================================
--- projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/pt-BR/defineconstraints.po 2009-12-03 01:31:33 UTC (rev 97335)
+++ projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/pt-BR/defineconstraints.po 2009-12-03 02:29:18 UTC (rev 97336)
@@ -1,17 +1,14 @@
#. Tag: title
-#: defineconstraints.xml:3
#, no-c-format
msgid "Defining constraints"
msgstr ""
#. Tag: title
-#: defineconstraints.xml:6
#, no-c-format
msgid "What is a constraint?"
msgstr ""
#. Tag: para
-#: defineconstraints.xml:8
#, no-c-format
msgid ""
"A constraint is a rule that a given element (field, property or bean) has to "
@@ -21,13 +18,11 @@
msgstr ""
#. Tag: title
-#: defineconstraints.xml:16
#, no-c-format
msgid "Built in constraints"
msgstr ""
#. Tag: para
-#: defineconstraints.xml:18
#, no-c-format
msgid ""
"Hibernate Validator comes with some built-in constraints, which covers most "
@@ -36,131 +31,106 @@
msgstr ""
#. Tag: title
-#: defineconstraints.xml:23
#, no-c-format
msgid "Built-in constraints"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:30
#, no-c-format
msgid "Annotation"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:32
#, no-c-format
msgid "Apply on"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:34
#, no-c-format
msgid "Runtime checking"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:36
#, no-c-format
msgid "Hibernate Metadata impact"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:42
#, no-c-format
msgid "@Length(min=, max=)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:44 defineconstraints.xml:188
-#: defineconstraints.xml:199
#, no-c-format
msgid "property (String)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:46
#, no-c-format
msgid "check if the string length match the range"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:48
#, no-c-format
msgid "Column length will be set to max"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:52
#, no-c-format
msgid "@Max(value=)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:54 defineconstraints.xml:65 defineconstraints.xml:130
-#: defineconstraints.xml:210
#, no-c-format
msgid "property (numeric or string representation of a numeric)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:57
#, no-c-format
msgid "check if the value is less than or equals to max"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:59 defineconstraints.xml:70 defineconstraints.xml:101
-#: defineconstraints.xml:136
#, no-c-format
msgid "Add a check constraint on the column"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:63
#, no-c-format
msgid "@Min(value=)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:68
#, no-c-format
msgid "check if the value is more than or equals to min"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:74
#, no-c-format
msgid "@NotNull"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:76 defineconstraints.xml:86 defineconstraints.xml:153
-#: defineconstraints.xml:164
#, no-c-format
msgid "property"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:78
#, no-c-format
msgid "check if the value is not null"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:80
#, no-c-format
msgid "Column(s) are not null"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:84
#, no-c-format
msgid "@NotEmpty"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:88
#, no-c-format
msgid ""
"check if the string is not null nor empty. Check if the connection is not "
@@ -168,65 +138,51 @@
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:91
#, no-c-format
msgid "Column(s) are not null (for String)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:95
#, no-c-format
msgid "@Past"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:97 defineconstraints.xml:107
#, no-c-format
msgid "property (date or calendar)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:99
#, no-c-format
msgid "check if the date is in the past"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:105
#, no-c-format
msgid "@Future"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:109
#, no-c-format
msgid "check if the date is in the future"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:111 defineconstraints.xml:124
-#: defineconstraints.xml:147 defineconstraints.xml:158
-#: defineconstraints.xml:169 defineconstraints.xml:182
-#: defineconstraints.xml:193 defineconstraints.xml:204
-#: defineconstraints.xml:228
#, no-c-format
msgid "none"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:115
#, no-c-format
msgid "@Pattern(regex=\"regexp\", flag=) or @Patterns( {@Pattern(...)} )"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:118 defineconstraints.xml:223
#, no-c-format
msgid "property (string)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:120
#, no-c-format
msgid ""
"check if the property match the regular expression given a match flag (see "
@@ -234,43 +190,36 @@
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:128
#, no-c-format
msgid "@Range(min=, max=)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:133
#, no-c-format
msgid "check if the value is between min and max (included)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:140
#, no-c-format
msgid "@Size(min=, max=)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:142
#, no-c-format
msgid "property (array, collection, map)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:144
#, no-c-format
msgid "check if the element size is between min and max (included)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:151
#, no-c-format
msgid "@AssertFalse"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:155
#, no-c-format
msgid ""
"check that the method evaluates to false (useful for constraints expressed "
@@ -278,13 +227,11 @@
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:162
#, no-c-format
msgid "@AssertTrue"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:166
#, no-c-format
msgid ""
"check that the method evaluates to true (useful for constraints expressed in "
@@ -292,19 +239,16 @@
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:173
#, no-c-format
msgid "@Valid"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:175
#, no-c-format
msgid "property (object)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:177
#, no-c-format
msgid ""
"perform validation recursively on the associated object. If the object is a "
@@ -313,25 +257,21 @@
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:186
#, no-c-format
msgid "@Email"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:190
#, no-c-format
msgid "check whether the string is conform to the email address specification"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:197
#, no-c-format
msgid "@CreditCardNumber"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:201
#, no-c-format
msgid ""
"check whether the string is a well formated credit card number (derivative "
@@ -339,13 +279,11 @@
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:208
#, no-c-format
-msgid "@Digits"
+msgid "@Digits(integerDigits=1)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:213
#, no-c-format
msgid ""
"check whether the property is a number having up to <literal>integerDigits</"
@@ -354,31 +292,26 @@
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:217
#, no-c-format
msgid "define column precision and scale"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:221
#, no-c-format
msgid "@EAN"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:225
#, no-c-format
msgid "check whether the string is a properly formated EAN or UPC-A code"
msgstr ""
#. Tag: title
-#: defineconstraints.xml:236
#, no-c-format
msgid "Error messages"
msgstr ""
#. Tag: para
-#: defineconstraints.xml:238
#, no-c-format
msgid ""
"Hibernate Validator comes with a default set of error messages translated in "
@@ -392,7 +325,6 @@
msgstr ""
#. Tag: para
-#: defineconstraints.xml:248
#, no-c-format
msgid ""
"Alternatively you can provide a <classname>ResourceBundle</classname> while "
@@ -403,13 +335,11 @@
msgstr ""
#. Tag: title
-#: defineconstraints.xml:257
#, no-c-format
msgid "Writing your own constraints"
msgstr ""
#. Tag: para
-#: defineconstraints.xml:259
#, no-c-format
msgid ""
"Extending the set of built-in constraints is extremely easy. Any constraint "
@@ -418,22 +348,7 @@
"implementation class). Here is a simple user-defined descriptor:"
msgstr ""
-#. Tag: programlisting
-#: defineconstraints.xml:265
-#, no-c-format
-msgid ""
-"@ValidatorClass(CapitalizedValidator.class)\n"
-"@Target(METHOD)\n"
-"@Retention(RUNTIME)\n"
-"@Documented\n"
-"public @interface Capitalized {\n"
-" CapitalizeType type() default Capitalize.FIRST;\n"
-" String message() default \"has incorrect capitalization\"\n"
-"}"
-msgstr ""
-
#. Tag: para
-#: defineconstraints.xml:267
#, no-c-format
msgid ""
"<literal>type</literal> is a parameter describing how the property should to "
@@ -442,7 +357,6 @@
msgstr ""
#. Tag: para
-#: defineconstraints.xml:271
#, no-c-format
msgid ""
"<literal>message</literal> is the default string used to describe the "
@@ -453,35 +367,15 @@
"<literal>Capitalization is not {type}</literal> would generate "
"<literal>Capitalization is not FIRST</literal> ), externalizing the whole "
"string in <filename>ValidatorMessages.properties</filename> is considered "
-"good practice. See <xref linkend=\"validator-defineconstraints-error\"/> ."
+"good practice. See <xref linkend=\"validator-defineconstraints-error\" /> ."
msgstr ""
-#. Tag: programlisting
-#: defineconstraints.xml:282
-#, no-c-format
-msgid ""
-"@ValidatorClass(CapitalizedValidator.class)\n"
-"@Target(METHOD)\n"
-"@Retention(RUNTIME)\n"
-"@Documented\n"
-"public @interface Capitalized {\n"
-" CapitalizeType type() default Capitalize.FIRST;\n"
-" String message() default \"{validator.capitalized}\";\n"
-"}\n"
-"\n"
-"\n"
-"#in ValidatorMessages.properties\n"
-"validator.capitalized = <literal>Capitalization is not {type}</literal>"
-msgstr ""
-
#. Tag: para
-#: defineconstraints.xml:284
#, no-c-format
msgid "As you can see the {} notation is recursive."
msgstr ""
#. Tag: para
-#: defineconstraints.xml:286
#, no-c-format
msgid ""
"To link a descriptor to its validator implementation, we use the "
@@ -491,7 +385,6 @@
msgstr ""
#. Tag: para
-#: defineconstraints.xml:291
#, no-c-format
msgid ""
"We now have to implement the validator (ie. the rule checking "
@@ -502,38 +395,7 @@
"literal> )"
msgstr ""
-#. Tag: programlisting
-#: defineconstraints.xml:298
-#, no-c-format
-msgid ""
-"public class CapitalizedValidator\n"
-" implements Validator<Capitalized>, PropertyConstraint {\n"
-" private CapitalizeType type;\n"
-"\n"
-" //part of the Validator<Annotation> contract,\n"
-" //allows to get and use the annotation values\n"
-" public void initialize(Capitalized parameters) {\n"
-" type = parameters.type();\n"
-" }\n"
-"\n"
-" //part of the property constraint contract\n"
-" public boolean isValid(Object value) {\n"
-" if (value==null) return true;\n"
-" if ( !(value instanceof String) ) return false;\n"
-" String string = (String) value;\n"
-" if (type == CapitalizeType.ALL) {\n"
-" return string.equals( string.toUpperCase() );\n"
-" }\n"
-" else {\n"
-" String first = string.substring(0,1);\n"
-" return first.equals( first.toUpperCase();\n"
-" }\n"
-" }\n"
-"}"
-msgstr ""
-
#. Tag: para
-#: defineconstraints.xml:300
#, no-c-format
msgid ""
"The <literal>isValid()</literal> method should return false if the "
@@ -542,7 +404,6 @@
msgstr ""
#. Tag: para
-#: defineconstraints.xml:304
#, no-c-format
msgid ""
"We only have seen property level validation, but you can write a Bean level "
@@ -553,35 +414,13 @@
msgstr ""
#. Tag: para
-#: defineconstraints.xml:310
#, no-c-format
msgid ""
"If your constraint can be applied multiple times (with different parameters) "
"on the same property or type, you can use the following annotation form:"
msgstr ""
-#. Tag: programlisting
-#: defineconstraints.xml:314
-#, no-c-format
-msgid ""
-"@Target(METHOD)\n"
-"@Retention(RUNTIME)\n"
-"@Documented\n"
-"<emphasis role=\"bold\">public @interface Patterns {</emphasis>\n"
-" Pattern[] value();\n"
-"}\n"
-"\n"
-"@Target(METHOD)\n"
-"@Retention(RUNTIME)\n"
-"@Documented\n"
-"@ValidatorClass(PatternValidator.class)\n"
-"public @interface Pattern {\n"
-" String regexp();\n"
-"}"
-msgstr ""
-
#. Tag: para
-#: defineconstraints.xml:316
#, no-c-format
msgid ""
"Basically an annotation containing the value attribute as an array of "
@@ -589,102 +428,25 @@
msgstr ""
#. Tag: title
-#: defineconstraints.xml:321
#, no-c-format
msgid "Annotating your domain model"
msgstr ""
#. Tag: para
-#: defineconstraints.xml:323
#, no-c-format
msgid ""
"Since you are already familiar with annotations now, the syntax should be "
"very familiar"
msgstr ""
-#. Tag: programlisting
-#: defineconstraints.xml:326
-#, no-c-format
-msgid ""
-"public class Address {\n"
-" private String line1;\n"
-" private String line2;\n"
-" private String zip;\n"
-" private String state;\n"
-" private String country;\n"
-" private long id;\n"
-"\n"
-" // a not null string of 20 characters maximum\n"
-" @Length(max=20)\n"
-" @NotNull\n"
-" public String getCountry() {\n"
-" return country;\n"
-" }\n"
-"\n"
-" // a non null string\n"
-" @NotNull\n"
-" public String getLine1() {\n"
-" return line1;\n"
-" }\n"
-"\n"
-" //no constraint\n"
-" public String getLine2() {\n"
-" return line2;\n"
-" }\n"
-"\n"
-" // a not null string of 3 characters maximum\n"
-" @Length(max=3) @NotNull\n"
-" public String getState() {\n"
-" return state;\n"
-" }\n"
-"\n"
-" // a not null numeric string of 5 characters maximum\n"
-" // if the string is longer, the message will\n"
-" //be searched in the resource bundle at key 'long'\n"
-" @Length(max=5, message=\"{long}\")\n"
-" @Pattern(regex=\"[0-9]+\")\n"
-" @NotNull\n"
-" public String getZip() {\n"
-" return zip;\n"
-" }\n"
-"\n"
-" // should always be true\n"
-" @AssertTrue\n"
-" public boolean isValid() {\n"
-" return true;\n"
-" }\n"
-"\n"
-" // a numeric between 1 and 2000\n"
-" @Id @Min(1)\n"
-" @Range(max=2000)\n"
-" public long getId() {\n"
-" return id;\n"
-" }\n"
-"}"
-msgstr ""
-
#. Tag: para
-#: defineconstraints.xml:328
#, no-c-format
msgid ""
"While the example only shows public property validation, you can also "
"annotate fields of any kind of visibility"
msgstr ""
-#. Tag: programlisting
-#: defineconstraints.xml:331
-#, no-c-format
-msgid ""
-"@MyBeanConstraint(max=45\n"
-"public class Dog {\n"
-" @AssertTrue private boolean isMale;\n"
-" @NotNull protected String getName() { ... };\n"
-" ...\n"
-"}"
-msgstr ""
-
#. Tag: para
-#: defineconstraints.xml:333
#, no-c-format
msgid ""
"You can also annotate interfaces. Hibernate Validator will check all "
@@ -692,26 +454,7 @@
"the appropriate validator annotations."
msgstr ""
-#. Tag: programlisting
-#: defineconstraints.xml:337
-#, no-c-format
-msgid ""
-"public interface Named {\n"
-" @NotNull String getName();\n"
-" ...\n"
-"}\n"
-"\n"
-"public class Dog implements Named {\n"
-"\n"
-" @AssertTrue private boolean isMale;\n"
-"\n"
-" public String getName() { ... };\n"
-"\n"
-"}"
-msgstr ""
-
#. Tag: para
-#: defineconstraints.xml:339
#, no-c-format
msgid ""
"The name property will be checked for nullity when the Dog bean is validated."
Modified: projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/zh-CN/Author_Group.po
===================================================================
--- projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/zh-CN/Author_Group.po 2009-12-03 01:31:33 UTC (rev 97335)
+++ projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/zh-CN/Author_Group.po 2009-12-03 02:29:18 UTC (rev 97336)
@@ -1,5 +0,0 @@
-#. Tag: author
-#: Author_Group.xml:6
-#, no-c-format
-msgid "<firstname>Red Hat Documentation Group</firstname> <surname></surname>"
-msgstr ""
Modified: projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/zh-CN/Book_Info.po
===================================================================
--- projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/zh-CN/Book_Info.po 2009-12-03 01:31:33 UTC (rev 97335)
+++ projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/zh-CN/Book_Info.po 2009-12-03 02:29:18 UTC (rev 97336)
@@ -1,25 +1,16 @@
#. Tag: title
-#: Book_Info.xml:6
#, no-c-format
msgid "Hibernate Validator Reference Guide"
msgstr ""
#. Tag: subtitle
-#: Book_Info.xml:7
#, no-c-format
msgid "for Use with JBoss Enterprise Application Platform 5.0"
msgstr ""
#. Tag: para
-#: Book_Info.xml:14
#, no-c-format
msgid ""
"The JBoss Enterprise Application Platform Edition of the Hibernate Validator "
"Reference Guide"
msgstr ""
-
-#. Tag: holder
-#: Book_Info.xml:25
-#, no-c-format
-msgid "&HOLDER;"
-msgstr ""
Modified: projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/zh-CN/Preface.po
===================================================================
--- projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/zh-CN/Preface.po 2009-12-03 01:31:33 UTC (rev 97335)
+++ projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/zh-CN/Preface.po 2009-12-03 02:29:18 UTC (rev 97336)
@@ -1,11 +1,9 @@
#. Tag: title
-#: Preface.xml:7
#, no-c-format
msgid "Preface"
msgstr ""
#. Tag: para
-#: Preface.xml:9
#, no-c-format
msgid ""
"Annotations are a very convenient and elegant way to specify invariant "
@@ -20,7 +18,6 @@
msgstr ""
#. Tag: para
-#: Preface.xml:20
#, no-c-format
msgid ""
"Hibernate Validator works at two levels. First, it is able to check in-"
@@ -30,7 +27,6 @@
msgstr ""
#. Tag: para
-#: Preface.xml:25
#, no-c-format
msgid ""
"Each constraint annotation is associated to a validator implementation "
@@ -44,7 +40,6 @@
msgstr ""
#. Tag: para
-#: Preface.xml:35
#, no-c-format
msgid ""
"When checking instances at runtime, Hibernate Validator returns information "
Modified: projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/zh-CN/Revision_History.po
===================================================================
--- projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/zh-CN/Revision_History.po 2009-12-03 01:31:33 UTC (rev 97335)
+++ projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/zh-CN/Revision_History.po 2009-12-03 02:29:18 UTC (rev 97336)
@@ -1,11 +1,9 @@
#. Tag: title
-#: Revision_History.xml:6
#, no-c-format
msgid "Revision History"
msgstr ""
-#. Tag: author
-#: Revision_History.xml:12
+#. Tag: member
#, no-c-format
-msgid "<firstname></firstname> <surname></surname> <email></email>"
+msgid "Initial draft."
msgstr ""
Modified: projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/zh-CN/checkconstraints.po
===================================================================
--- projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/zh-CN/checkconstraints.po 2009-12-03 01:31:33 UTC (rev 97335)
+++ projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/zh-CN/checkconstraints.po 2009-12-03 02:29:18 UTC (rev 97336)
@@ -1,11 +1,9 @@
#. Tag: title
-#: checkconstraints.xml:3
#, no-c-format
msgid "Using the Validator framework"
msgstr ""
#. Tag: para
-#: checkconstraints.xml:5
#, no-c-format
msgid ""
"Hibernate Validator is intended to be used to implement multi-layered data "
@@ -14,19 +12,16 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:10
#, no-c-format
msgid "This chapter will cover Hibernate Validator usage for different layers"
msgstr ""
#. Tag: title
-#: checkconstraints.xml:14
#, no-c-format
msgid "Database schema-level validation"
msgstr ""
#. Tag: para
-#: checkconstraints.xml:16
#, no-c-format
msgid ""
"Out of the box, Hibernate Annotations will translate the constraints you "
@@ -37,7 +32,6 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:22
#, no-c-format
msgid ""
"Using hbm2ddl, domain model constraints will be expressed into the database "
@@ -45,7 +39,6 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:25
#, no-c-format
msgid ""
"If, for some reason, the feature needs to be disabled, set "
@@ -54,13 +47,11 @@
msgstr ""
#. Tag: title
-#: checkconstraints.xml:31
#, no-c-format
msgid "ORM integration"
msgstr ""
#. Tag: para
-#: checkconstraints.xml:33
#, no-c-format
msgid ""
"Hibernate Validator integrates with both Hibernate and all pure Java "
@@ -68,13 +59,11 @@
msgstr ""
#. Tag: title
-#: checkconstraints.xml:37
#, no-c-format
msgid "Hibernate event-based validation"
msgstr ""
#. Tag: para
-#: checkconstraints.xml:39
#, no-c-format
msgid ""
"Hibernate Validator has two built-in Hibernate event listeners. Whenever a "
@@ -90,7 +79,6 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:51
#, no-c-format
msgid ""
"If Hibernate Validator is present in the classpath, Hibernate Annotations "
@@ -100,7 +88,6 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:58
#, no-c-format
msgid ""
"If the beans are not annotated with validation annotations, there is no "
@@ -108,40 +95,18 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:62
#, no-c-format
msgid ""
"In case you need to manually set the event listeners for Hibernate Core, use "
"the following configuration in <literal>hibernate.cfg.xml</literal>:"
msgstr ""
-#. Tag: programlisting
-#: checkconstraints.xml:66
-#, no-c-format
-msgid ""
-"<hibernate-configuration>\n"
-" ...\n"
-" <event type=\"pre-update\">\n"
-" <listener \n"
-" class=\"org.hibernate.validator.event.ValidateEventListener\"/"
-">\n"
-" </event>\n"
-" <event type=\"pre-insert\">\n"
-" <listener \n"
-" class=\"org.hibernate.validator.event.ValidateEventListener\"/"
-">\n"
-" </event>\n"
-"</hibernate-configuration>"
-msgstr ""
-
#. Tag: title
-#: checkconstraints.xml:70
#, no-c-format
msgid "Java Persistence event-based validation"
msgstr ""
#. Tag: para
-#: checkconstraints.xml:72
#, no-c-format
msgid ""
"Hibernate Validator is not tied to Hibernate for event based validation: a "
@@ -156,24 +121,11 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:83
#, no-c-format
msgid "Here is how to make a class validatable:"
msgstr ""
-#. Tag: programlisting
-#: checkconstraints.xml:85
-#, no-c-format
-msgid ""
-"@Entity\n"
-"@EntityListeners( JPAValidateListener.class )\n"
-"public class Submarine {\n"
-" ...\n"
-"}"
-msgstr ""
-
#. Tag: para
-#: checkconstraints.xml:88
#, no-c-format
msgid ""
"Compared to the Hibernate event, the Java Persistence listener has two "
@@ -182,42 +134,26 @@
msgstr ""
#. Tag: title
-#: checkconstraints.xml:97
#, no-c-format
msgid "Application-level validation"
msgstr ""
#. Tag: para
-#: checkconstraints.xml:99
#, no-c-format
msgid "Hibernate Validator can be applied anywhere in your application code."
msgstr ""
-#. Tag: programlisting
-#: checkconstraints.xml:102
-#, no-c-format
-msgid ""
-"ClassValidator personValidator = new ClassValidator( Person.class );\n"
-"ClassValidator addressValidator = new ClassValidator( Address.class, "
-"ResourceBundle.getBundle(\"messages\", Locale.ENGLISH) );\n"
-"\n"
-"InvalidValue[] validationMessages = addressValidator.getInvalidValues"
-"(address);"
-msgstr ""
-
#. Tag: para
-#: checkconstraints.xml:104
#, no-c-format
msgid ""
"The first two lines prepare the Hibernate Validator for class checking. The "
"first one relies upon the error messages embedded in Hibernate Validator "
-"(see <xref linkend=\"validator-defineconstraints-error\"/>), the second one "
+"(see <xref linkend=\"validator-defineconstraints-error\" />), the second one "
"uses a resource bundle for these messages. It is considered a good practice "
"to execute these lines once and cache the validator instances."
msgstr ""
#. Tag: para
-#: checkconstraints.xml:111
#, no-c-format
msgid ""
"The third line actually validates the <literal>Address</literal> instance "
@@ -226,37 +162,18 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:115
#, no-c-format
msgid ""
"You can also check a particular property instead of the whole bean. This "
"might be useful for property per property user interaction"
msgstr ""
-#. Tag: programlisting
-#: checkconstraints.xml:118
-#, no-c-format
-msgid ""
-"ClassValidator addressValidator = new ClassValidator( Address.class, "
-"ResourceBundle.getBundle(\"messages\", Locale.ENGLISH) );\n"
-"\n"
-"//only get city property invalid values\n"
-"InvalidValue[] validationMessages = addressValidator.getInvalidValues"
-"(address, \"city\");\n"
-"\n"
-"//only get potential city property invalid values\n"
-"InvalidValue[] validationMessages = addressValidator."
-"getPotentialInvalidValues(\"city\", \"Paris\")"
-msgstr ""
-
#. Tag: title
-#: checkconstraints.xml:122
#, no-c-format
msgid "Presentation layer validation"
msgstr ""
#. Tag: para
-#: checkconstraints.xml:124
#, no-c-format
msgid ""
"When working with JSF and <productname>JBoss Seam</productname>, one can "
@@ -266,34 +183,7 @@
"violations presented in the view"
msgstr ""
-#. Tag: programlisting
-#: checkconstraints.xml:130
-#, no-c-format
-msgid ""
-"<h:form>\n"
-" <div>\n"
-" <h:messages/>\n"
-" </div>\n"
-" <emphasis role=\"bold\"><s:validateAll></emphasis>\n"
-" <div>\n"
-" Country:\n"
-" <h:inputText value=\"#{location.country}\" required=\"true\"/"
-">\n"
-" </div>\n"
-" <div>\n"
-" Zip code:\n"
-" <h:inputText value=\"#{location.zip}\" required=\"true\"/"
-">\n"
-" </div>\n"
-" <div>\n"
-" <h:commandButton/>\n"
-" </div>\n"
-" <emphasis role=\"bold\"></s:validateAll></emphasis>\n"
-"</h:form>"
-msgstr ""
-
#. Tag: para
-#: checkconstraints.xml:132
#, no-c-format
msgid ""
"Going even further, and adding <productname>Ajax4JSF</productname> to the "
@@ -302,7 +192,6 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:137
#, no-c-format
msgid ""
"Check the <ulink url=\"http://www.jboss.com/products/seam\">JBoss Seam</"
@@ -310,13 +199,11 @@
msgstr ""
#. Tag: title
-#: checkconstraints.xml:142
#, no-c-format
msgid "Validation informations"
msgstr ""
#. Tag: para
-#: checkconstraints.xml:144
#, no-c-format
msgid ""
"As a validation information carrier, hibernate provide an array of "
@@ -325,13 +212,11 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:148
#, no-c-format
msgid "<methodname>getBeanClass()</methodname> retrieves the failing bean type"
msgstr ""
#. Tag: para
-#: checkconstraints.xml:151
#, no-c-format
msgid ""
"<methodname>getBean()</methodname>retrieves the failing instance (if any ie "
@@ -339,13 +224,11 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:155
#, no-c-format
msgid "<methodname>getValue()</methodname> retrieves the failing value"
msgstr ""
#. Tag: para
-#: checkconstraints.xml:158
#, no-c-format
msgid ""
"<methodname>getMessage()</methodname> retrieves the proper internationalized "
@@ -353,7 +236,6 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:161
#, no-c-format
msgid ""
"<methodname>getRootBean()</methodname> retrieves the root bean instance "
@@ -362,7 +244,6 @@
msgstr ""
#. Tag: para
-#: checkconstraints.xml:166
#, no-c-format
msgid ""
"<literal>getPropertyPath()</literal> retrieves the dotted path of the "
Modified: projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/zh-CN/defineconstraints.po
===================================================================
--- projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/zh-CN/defineconstraints.po 2009-12-03 01:31:33 UTC (rev 97335)
+++ projects/docs/enterprise/5.0/Hibernate/Hibernate_Validator/zh-CN/defineconstraints.po 2009-12-03 02:29:18 UTC (rev 97336)
@@ -1,17 +1,14 @@
#. Tag: title
-#: defineconstraints.xml:3
#, no-c-format
msgid "Defining constraints"
msgstr ""
#. Tag: title
-#: defineconstraints.xml:6
#, no-c-format
msgid "What is a constraint?"
msgstr ""
#. Tag: para
-#: defineconstraints.xml:8
#, no-c-format
msgid ""
"A constraint is a rule that a given element (field, property or bean) has to "
@@ -21,13 +18,11 @@
msgstr ""
#. Tag: title
-#: defineconstraints.xml:16
#, no-c-format
msgid "Built in constraints"
msgstr ""
#. Tag: para
-#: defineconstraints.xml:18
#, no-c-format
msgid ""
"Hibernate Validator comes with some built-in constraints, which covers most "
@@ -36,131 +31,106 @@
msgstr ""
#. Tag: title
-#: defineconstraints.xml:23
#, no-c-format
msgid "Built-in constraints"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:30
#, no-c-format
msgid "Annotation"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:32
#, no-c-format
msgid "Apply on"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:34
#, no-c-format
msgid "Runtime checking"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:36
#, no-c-format
msgid "Hibernate Metadata impact"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:42
#, no-c-format
msgid "@Length(min=, max=)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:44 defineconstraints.xml:188
-#: defineconstraints.xml:199
#, no-c-format
msgid "property (String)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:46
#, no-c-format
msgid "check if the string length match the range"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:48
#, no-c-format
msgid "Column length will be set to max"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:52
#, no-c-format
msgid "@Max(value=)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:54 defineconstraints.xml:65 defineconstraints.xml:130
-#: defineconstraints.xml:210
#, no-c-format
msgid "property (numeric or string representation of a numeric)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:57
#, no-c-format
msgid "check if the value is less than or equals to max"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:59 defineconstraints.xml:70 defineconstraints.xml:101
-#: defineconstraints.xml:136
#, no-c-format
msgid "Add a check constraint on the column"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:63
#, no-c-format
msgid "@Min(value=)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:68
#, no-c-format
msgid "check if the value is more than or equals to min"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:74
#, no-c-format
msgid "@NotNull"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:76 defineconstraints.xml:86 defineconstraints.xml:153
-#: defineconstraints.xml:164
#, no-c-format
msgid "property"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:78
#, no-c-format
msgid "check if the value is not null"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:80
#, no-c-format
msgid "Column(s) are not null"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:84
#, no-c-format
msgid "@NotEmpty"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:88
#, no-c-format
msgid ""
"check if the string is not null nor empty. Check if the connection is not "
@@ -168,65 +138,51 @@
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:91
#, no-c-format
msgid "Column(s) are not null (for String)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:95
#, no-c-format
msgid "@Past"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:97 defineconstraints.xml:107
#, no-c-format
msgid "property (date or calendar)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:99
#, no-c-format
msgid "check if the date is in the past"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:105
#, no-c-format
msgid "@Future"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:109
#, no-c-format
msgid "check if the date is in the future"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:111 defineconstraints.xml:124
-#: defineconstraints.xml:147 defineconstraints.xml:158
-#: defineconstraints.xml:169 defineconstraints.xml:182
-#: defineconstraints.xml:193 defineconstraints.xml:204
-#: defineconstraints.xml:228
#, no-c-format
msgid "none"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:115
#, no-c-format
msgid "@Pattern(regex=\"regexp\", flag=) or @Patterns( {@Pattern(...)} )"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:118 defineconstraints.xml:223
#, no-c-format
msgid "property (string)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:120
#, no-c-format
msgid ""
"check if the property match the regular expression given a match flag (see "
@@ -234,43 +190,36 @@
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:128
#, no-c-format
msgid "@Range(min=, max=)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:133
#, no-c-format
msgid "check if the value is between min and max (included)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:140
#, no-c-format
msgid "@Size(min=, max=)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:142
#, no-c-format
msgid "property (array, collection, map)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:144
#, no-c-format
msgid "check if the element size is between min and max (included)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:151
#, no-c-format
msgid "@AssertFalse"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:155
#, no-c-format
msgid ""
"check that the method evaluates to false (useful for constraints expressed "
@@ -278,13 +227,11 @@
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:162
#, no-c-format
msgid "@AssertTrue"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:166
#, no-c-format
msgid ""
"check that the method evaluates to true (useful for constraints expressed in "
@@ -292,19 +239,16 @@
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:173
#, no-c-format
msgid "@Valid"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:175
#, no-c-format
msgid "property (object)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:177
#, no-c-format
msgid ""
"perform validation recursively on the associated object. If the object is a "
@@ -313,25 +257,21 @@
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:186
#, no-c-format
msgid "@Email"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:190
#, no-c-format
msgid "check whether the string is conform to the email address specification"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:197
#, no-c-format
msgid "@CreditCardNumber"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:201
#, no-c-format
msgid ""
"check whether the string is a well formated credit card number (derivative "
@@ -339,13 +279,11 @@
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:208
#, no-c-format
-msgid "@Digits"
+msgid "@Digits(integerDigits=1)"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:213
#, no-c-format
msgid ""
"check whether the property is a number having up to <literal>integerDigits</"
@@ -354,31 +292,26 @@
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:217
#, no-c-format
msgid "define column precision and scale"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:221
#, no-c-format
msgid "@EAN"
msgstr ""
#. Tag: entry
-#: defineconstraints.xml:225
#, no-c-format
msgid "check whether the string is a properly formated EAN or UPC-A code"
msgstr ""
#. Tag: title
-#: defineconstraints.xml:236
#, no-c-format
msgid "Error messages"
msgstr ""
#. Tag: para
-#: defineconstraints.xml:238
#, no-c-format
msgid ""
"Hibernate Validator comes with a default set of error messages translated in "
@@ -392,7 +325,6 @@
msgstr ""
#. Tag: para
-#: defineconstraints.xml:248
#, no-c-format
msgid ""
"Alternatively you can provide a <classname>ResourceBundle</classname> while "
@@ -403,13 +335,11 @@
msgstr ""
#. Tag: title
-#: defineconstraints.xml:257
#, no-c-format
msgid "Writing your own constraints"
msgstr ""
#. Tag: para
-#: defineconstraints.xml:259
#, no-c-format
msgid ""
"Extending the set of built-in constraints is extremely easy. Any constraint "
@@ -418,22 +348,7 @@
"implementation class). Here is a simple user-defined descriptor:"
msgstr ""
-#. Tag: programlisting
-#: defineconstraints.xml:265
-#, no-c-format
-msgid ""
-"@ValidatorClass(CapitalizedValidator.class)\n"
-"@Target(METHOD)\n"
-"@Retention(RUNTIME)\n"
-"@Documented\n"
-"public @interface Capitalized {\n"
-" CapitalizeType type() default Capitalize.FIRST;\n"
-" String message() default \"has incorrect capitalization\"\n"
-"}"
-msgstr ""
-
#. Tag: para
-#: defineconstraints.xml:267
#, no-c-format
msgid ""
"<literal>type</literal> is a parameter describing how the property should to "
@@ -442,7 +357,6 @@
msgstr ""
#. Tag: para
-#: defineconstraints.xml:271
#, no-c-format
msgid ""
"<literal>message</literal> is the default string used to describe the "
@@ -453,35 +367,15 @@
"<literal>Capitalization is not {type}</literal> would generate "
"<literal>Capitalization is not FIRST</literal> ), externalizing the whole "
"string in <filename>ValidatorMessages.properties</filename> is considered "
-"good practice. See <xref linkend=\"validator-defineconstraints-error\"/> ."
+"good practice. See <xref linkend=\"validator-defineconstraints-error\" /> ."
msgstr ""
-#. Tag: programlisting
-#: defineconstraints.xml:282
-#, no-c-format
-msgid ""
-"@ValidatorClass(CapitalizedValidator.class)\n"
-"@Target(METHOD)\n"
-"@Retention(RUNTIME)\n"
-"@Documented\n"
-"public @interface Capitalized {\n"
-" CapitalizeType type() default Capitalize.FIRST;\n"
-" String message() default \"{validator.capitalized}\";\n"
-"}\n"
-"\n"
-"\n"
-"#in ValidatorMessages.properties\n"
-"validator.capitalized = <literal>Capitalization is not {type}</literal>"
-msgstr ""
-
#. Tag: para
-#: defineconstraints.xml:284
#, no-c-format
msgid "As you can see the {} notation is recursive."
msgstr ""
#. Tag: para
-#: defineconstraints.xml:286
#, no-c-format
msgid ""
"To link a descriptor to its validator implementation, we use the "
@@ -491,7 +385,6 @@
msgstr ""
#. Tag: para
-#: defineconstraints.xml:291
#, no-c-format
msgid ""
"We now have to implement the validator (ie. the rule checking "
@@ -502,38 +395,7 @@
"literal> )"
msgstr ""
-#. Tag: programlisting
-#: defineconstraints.xml:298
-#, no-c-format
-msgid ""
-"public class CapitalizedValidator\n"
-" implements Validator<Capitalized>, PropertyConstraint {\n"
-" private CapitalizeType type;\n"
-"\n"
-" //part of the Validator<Annotation> contract,\n"
-" //allows to get and use the annotation values\n"
-" public void initialize(Capitalized parameters) {\n"
-" type = parameters.type();\n"
-" }\n"
-"\n"
-" //part of the property constraint contract\n"
-" public boolean isValid(Object value) {\n"
-" if (value==null) return true;\n"
-" if ( !(value instanceof String) ) return false;\n"
-" String string = (String) value;\n"
-" if (type == CapitalizeType.ALL) {\n"
-" return string.equals( string.toUpperCase() );\n"
-" }\n"
-" else {\n"
-" String first = string.substring(0,1);\n"
-" return first.equals( first.toUpperCase();\n"
-" }\n"
-" }\n"
-"}"
-msgstr ""
-
#. Tag: para
-#: defineconstraints.xml:300
#, no-c-format
msgid ""
"The <literal>isValid()</literal> method should return false if the "
@@ -542,7 +404,6 @@
msgstr ""
#. Tag: para
-#: defineconstraints.xml:304
#, no-c-format
msgid ""
"We only have seen property level validation, but you can write a Bean level "
@@ -553,35 +414,13 @@
msgstr ""
#. Tag: para
-#: defineconstraints.xml:310
#, no-c-format
msgid ""
"If your constraint can be applied multiple times (with different parameters) "
"on the same property or type, you can use the following annotation form:"
msgstr ""
-#. Tag: programlisting
-#: defineconstraints.xml:314
-#, no-c-format
-msgid ""
-"@Target(METHOD)\n"
-"@Retention(RUNTIME)\n"
-"@Documented\n"
-"<emphasis role=\"bold\">public @interface Patterns {</emphasis>\n"
-" Pattern[] value();\n"
-"}\n"
-"\n"
-"@Target(METHOD)\n"
-"@Retention(RUNTIME)\n"
-"@Documented\n"
-"@ValidatorClass(PatternValidator.class)\n"
-"public @interface Pattern {\n"
-" String regexp();\n"
-"}"
-msgstr ""
-
#. Tag: para
-#: defineconstraints.xml:316
#, no-c-format
msgid ""
"Basically an annotation containing the value attribute as an array of "
@@ -589,102 +428,25 @@
msgstr ""
#. Tag: title
-#: defineconstraints.xml:321
#, no-c-format
msgid "Annotating your domain model"
msgstr ""
#. Tag: para
-#: defineconstraints.xml:323
#, no-c-format
msgid ""
"Since you are already familiar with annotations now, the syntax should be "
"very familiar"
msgstr ""
-#. Tag: programlisting
-#: defineconstraints.xml:326
-#, no-c-format
-msgid ""
-"public class Address {\n"
-" private String line1;\n"
-" private String line2;\n"
-" private String zip;\n"
-" private String state;\n"
-" private String country;\n"
-" private long id;\n"
-"\n"
-" // a not null string of 20 characters maximum\n"
-" @Length(max=20)\n"
-" @NotNull\n"
-" public String getCountry() {\n"
-" return country;\n"
-" }\n"
-"\n"
-" // a non null string\n"
-" @NotNull\n"
-" public String getLine1() {\n"
-" return line1;\n"
-" }\n"
-"\n"
-" //no constraint\n"
-" public String getLine2() {\n"
-" return line2;\n"
-" }\n"
-"\n"
-" // a not null string of 3 characters maximum\n"
-" @Length(max=3) @NotNull\n"
-" public String getState() {\n"
-" return state;\n"
-" }\n"
-"\n"
-" // a not null numeric string of 5 characters maximum\n"
-" // if the string is longer, the message will\n"
-" //be searched in the resource bundle at key 'long'\n"
-" @Length(max=5, message=\"{long}\")\n"
-" @Pattern(regex=\"[0-9]+\")\n"
-" @NotNull\n"
-" public String getZip() {\n"
-" return zip;\n"
-" }\n"
-"\n"
-" // should always be true\n"
-" @AssertTrue\n"
-" public boolean isValid() {\n"
-" return true;\n"
-" }\n"
-"\n"
-" // a numeric between 1 and 2000\n"
-" @Id @Min(1)\n"
-" @Range(max=2000)\n"
-" public long getId() {\n"
-" return id;\n"
-" }\n"
-"}"
-msgstr ""
-
#. Tag: para
-#: defineconstraints.xml:328
#, no-c-format
msgid ""
"While the example only shows public property validation, you can also "
"annotate fields of any kind of visibility"
msgstr ""
-#. Tag: programlisting
-#: defineconstraints.xml:331
-#, no-c-format
-msgid ""
-"@MyBeanConstraint(max=45\n"
-"public class Dog {\n"
-" @AssertTrue private boolean isMale;\n"
-" @NotNull protected String getName() { ... };\n"
-" ...\n"
-"}"
-msgstr ""
-
#. Tag: para
-#: defineconstraints.xml:333
#, no-c-format
msgid ""
"You can also annotate interfaces. Hibernate Validator will check all "
@@ -692,26 +454,7 @@
"the appropriate validator annotations."
msgstr ""
-#. Tag: programlisting
-#: defineconstraints.xml:337
-#, no-c-format
-msgid ""
-"public interface Named {\n"
-" @NotNull String getName();\n"
-" ...\n"
-"}\n"
-"\n"
-"public class Dog implements Named {\n"
-"\n"
-" @AssertTrue private boolean isMale;\n"
-"\n"
-" public String getName() { ... };\n"
-"\n"
-"}"
-msgstr ""
-
#. Tag: para
-#: defineconstraints.xml:339
#, no-c-format
msgid ""
"The name property will be checked for nullity when the Dog bean is validated."
More information about the jboss-cvs-commits
mailing list