Author: hardy.ferentschik
Date: 2010-03-08 17:23:27 -0500 (Mon, 08 Mar 2010)
New Revision: 18938
Removed:
validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/introduction.xml
Modified:
validator/trunk/hibernate-validator/src/main/docbook/en-US/master.xml
validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/customconstraints.xml
validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/defineconstraints.xml
validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/gettingstarted.xml
validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/integration.xml
validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/preface.xml
validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/usingvalidator.xml
Log:
HV-290 Updated copyright and fixed some docbook syntax
Modified: validator/trunk/hibernate-validator/src/main/docbook/en-US/master.xml
===================================================================
--- validator/trunk/hibernate-validator/src/main/docbook/en-US/master.xml 2010-03-08
21:52:30 UTC (rev 18937)
+++ validator/trunk/hibernate-validator/src/main/docbook/en-US/master.xml 2010-03-08
22:23:27 UTC (rev 18938)
@@ -18,9 +18,9 @@
-->
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
-<!ENTITY versionNumber "4.0.2.GA">
+<!ENTITY version "WORKING">
<!ENTITY copyrightYear "2009">
-<!ENTITY copyrightHolder "Red Hat Middleware, LLC. & Gunnar
Morling">
+<!ENTITY copyrightHolder "Red Hat, Inc. & Gunnar Morling">
]>
<book lang="en">
<bookinfo>
@@ -30,9 +30,9 @@
<subtitle>Reference Guide</subtitle>
- <releaseinfo>&versionNumber;</releaseinfo>
+ <releaseinfo>&version;</releaseinfo>
- <productnumber>&versionNumber;</productnumber>
+ <productnumber>&version;</productnumber>
<copyright>
<year>©rightYear;</year>
Modified:
validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/customconstraints.xml
===================================================================
---
validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/customconstraints.xml 2010-03-08
21:52:30 UTC (rev 18937)
+++
validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/customconstraints.xml 2010-03-08
22:23:27 UTC (rev 18938)
@@ -27,7 +27,7 @@
custom constraints tailored to your specific validation requirements in a
simple manner.</para>
- <section id="validator-customconstraints-simple"
revision="1">
+ <section id="validator-customconstraints-simple">
<title>Creating a simple constraint</title>
<para>To create a custom constraint, the following three steps are
@@ -47,8 +47,7 @@
</listitem>
</itemizedlist>
- <section id="validator-customconstraints-constraintannotation"
- revision="1">
+ <section id="validator-customconstraints-constraintannotation">
<title>The constraint annotation</title>
<para>Let's write a constraint annotation, that can be used to express
@@ -196,9 +195,8 @@
</itemizedlist>
</section>
- <section id="validator-customconstraints-validator"
revision="1">
- <title id="section-constraint-validator">The constraint
- validator</title>
+ <section id="validator-customconstraints-validator">
+ <title id="section-constraint-validator">The constraint
validator</title>
<para>Next, we need to implement a constraint validator, that's able to
validate elements with a <classname>@CheckCase</classname> annotation.
@@ -268,7 +266,7 @@
with the default behavior, we can ignore that parameter for now.</para>
</section>
- <section id="validator-customconstraints-errormessage"
revision="1">
+ <section id="validator-customconstraints-errormessage">
<title>The error message</title>
<para>Finally we need to specify the error message, that shall be used,
@@ -290,7 +288,7 @@
message in this file.</para>
</section>
- <section id="validator-customconstraints-using"
revision="1">
+ <section id="validator-customconstraints-using">
<title>Using the constraint</title>
<para>Now that our first custom constraint is completed, we can use it
@@ -394,7 +392,7 @@
</section>
</section>
- <section id="validator-customconstraints-compound"
revision="1">
+ <section id="validator-customconstraints-compound">
<title>Constraint composition</title>
<para>Looking at the <property>licensePlate</property> field of
the
Modified:
validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/defineconstraints.xml
===================================================================
---
validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/defineconstraints.xml 2010-03-08
21:52:30 UTC (rev 18937)
+++
validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/defineconstraints.xml 2010-03-08
22:23:27 UTC (rev 18938)
@@ -21,7 +21,7 @@
<chapter id="validator-defineconstraints">
<title>Defining constraints</title>
- <section id="validator-defineconstraints-definition"
revision="1">
+ <section id="validator-defineconstraints-definition">
<title>What is a constraint?</title>
<para>A constraint is a rule that a given element (field, property or
@@ -31,7 +31,7 @@
element.</para>
</section>
- <section id="foo" revision="2">
+ <section id="foo">
<title>Built in constraints</title>
<para>Hibernate Validator comes with some built-in constraints, which
@@ -251,7 +251,7 @@
</table>
</section>
- <section id="validator-defineconstraints-error" xreflabel="Error
messages">
+ <section id="validator-defineconstraints-error">
<title>Error messages</title>
<para>Hibernate Validator comes with a default set of error messages
@@ -272,7 +272,7 @@
JavaDoc for more informations).</para>
</section>
- <section id="validator-defineconstraints-own" revision="1">
+ <section id="validator-defineconstraints-own">
<title>Writing your own constraints</title>
<para>Extending the set of built-in constraints is extremely easy. Any
Modified:
validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/gettingstarted.xml
===================================================================
---
validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/gettingstarted.xml 2010-03-08
21:52:30 UTC (rev 18937)
+++
validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/gettingstarted.xml 2010-03-08
22:23:27 UTC (rev 18938)
@@ -64,7 +64,7 @@
</listitem>
</itemizedlist>
- <section id="validator-gettingstarted-createproject"
revision="1">
+ <section id="validator-gettingstarted-createproject">
<title>Setting up a new Maven project</title>
<para>Start by creating new Maven project using the Maven archetype plugin
@@ -95,13 +95,13 @@
actual code.</para>
</section>
- <section id="validator-gettingstarted-createmodel"
revision="1">
+ <section id="validator-gettingstarted-createmodel">
<title>Applying constraints</title>
<para>Open the project in the IDE of your choice and have a look at the
class <classname>Car</classname>:</para>
- <para><example id="example-class-car" xreflabel="">
+ <para><example id="example-class-car">
<title>Class Car annotated with constraints</title>
<programlisting language="Java">package com.mycompany;
@@ -158,7 +158,7 @@
<classname>Validator</classname> instance. Let's have a look at the
<classname>CarTest</classname> class:</para>
- <example xreflabel="CarTest-example">
+ <example>
<title>Class CarTest showing validation examples</title>
<programlisting language="Java">package com.mycompany;
@@ -270,7 +270,7 @@
arise.</para>
</section>
- <section id="validator-gettingstarted-whatsnext"
revision="1">
+ <section id="validator-gettingstarted-whatsnext">
<title>Where to go next?</title>
<para>That concludes our 5 minute tour through the world of Hibernate
Modified:
validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/integration.xml
===================================================================
---
validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/integration.xml 2010-03-08
21:52:30 UTC (rev 18937)
+++
validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/integration.xml 2010-03-08
22:23:27 UTC (rev 18938)
@@ -26,7 +26,7 @@
annotated domain model) and checked in various different layers of the
application.</para>
- <section id="validator-checkconstraints-db" revision="2">
+ <section id="validator-checkconstraints-db">
<title>Database schema-level validation</title>
<para>Out of the box, Hibernate Annotations (as of Hibernate 3.5.x) will
@@ -54,7 +54,7 @@
<para>Hibernate Validator integrates with both Hibernate and all pure Java
Persistence providers.</para>
- <section id="validator-checkconstraints-orm-hibernateevent"
revision="1">
+ <section id="validator-checkconstraints-orm-hibernateevent">
<title>Hibernate event-based validation</title>
<para>Hibernate Validator has a built-in Hibernate event listener -
Deleted:
validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/introduction.xml
===================================================================
---
validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/introduction.xml 2010-03-08
21:52:30 UTC (rev 18937)
+++
validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/introduction.xml 2010-03-08
22:23:27 UTC (rev 18938)
@@ -1,58 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- $Id$ -->
-<!--
- ~ JBoss, Home of Professional Open Source
- ~ Copyright 2009, Red Hat, Inc. and/or its affiliates, and individual contributors
- ~ by the @authors tag. See the copyright.txt in the distribution for a
- ~ full listing of individual contributors.
- ~
- ~ Licensed under the Apache License, Version 2.0 (the "License");
- ~ you may not use this file except in compliance with the License.
- ~ You may obtain a copy of the License at
- ~
http://www.apache.org/licenses/LICENSE-2.0
- ~ Unless required by applicable law or agreed to in writing, software
- ~ distributed under the License is distributed on an "AS IS" BASIS,
- ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- ~ See the License for the specific language governing permissions and
- ~ limitations under the License.
--->
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
-
-<chapter id="validator-introduction">
- <title>Introduction</title>
-
- <section id="validator-introduction-whatisit" revision="1">
- <title>What is it about?</title>
-
- <para></para>
- </section>
-
- <section id="validator-introduction-installation"
revision="1">
- <title>Installation</title>
-
- <para>
-
- <section revision="1">
- <title>Prerequisites</title>
-
- <para></para>
- </section>
- <section revision="1">
- <title>Running Bean Validation RI with downloaded JARs</title>
-
- <para></para>
- </section>
- <section revision="1">
- <title>Running Bean Validation RI using Maven</title>
-
- <para></para>
- </section>
- <section revision="1">
- <title>Building Bean Validation RI from the sources</title>
-
- <para></para>
- </section>
- </para>
- </section>
-
-</chapter>
Modified: validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/preface.xml
===================================================================
---
validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/preface.xml 2010-03-08
21:52:30 UTC (rev 18937)
+++
validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/preface.xml 2010-03-08
22:23:27 UTC (rev 18938)
@@ -18,7 +18,7 @@
-->
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
- <preface id="preface" revision="2">
+ <preface id="preface">
<title>Preface</title>
<para>Validating data is a common task that occurs throughout any
Modified:
validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/usingvalidator.xml
===================================================================
---
validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/usingvalidator.xml 2010-03-08
21:52:30 UTC (rev 18937)
+++
validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/usingvalidator.xml 2010-03-08
22:23:27 UTC (rev 18938)
@@ -27,7 +27,7 @@
and which additional constraints are only provided by Hibernate Validator.
Let's start with how to add constraints to an entity.</para>
- <section id="validator-usingvalidator-annotate"
revision="1">
+ <section id="validator-usingvalidator-annotate">
<title>Defining constraints</title>
<para>Constraints in Bean Validation are expressed via Java annotations.
@@ -391,7 +391,7 @@
</section>
</section>
- <section id="validator-usingvalidator-validate"
revision="1">
+ <section id="validator-usingvalidator-validate">
<title>Validating constraints</title>
<para>The <classname>Validator</classname> interface is the main
entry
@@ -666,7 +666,7 @@
</section>
</section>
- <section id="validator-usingvalidator-validationgroups"
revision="1">
+ <section id="validator-usingvalidator-validationgroups">
<title>Validating groups</title>
<para>Groups allow you to restrict the set of constraints applied during
@@ -856,7 +856,7 @@
<para>Last but not least, we show that all constraints are passing by
validating against all defined groups.</para>
- <section revision="1">
+ <section>
<title>Group sequences</title>
<para>By default, constraints are evaluated in no particular order and
@@ -964,7 +964,7 @@
</section>
</section>
- <section id="validator-defineconstraints-builtin"
revision="2">
+ <section id="validator-defineconstraints-builtin">
<title>Built-in constraints</title>
<para>Hibernate Validator implements all of the default constraints