You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bu...@apache.org on 2016/03/11 12:24:26 UTC

svn commit: r982465 - in /websites/staging/sling/trunk/content: ./ documentation/bundles/validation.html

Author: buildbot
Date: Fri Mar 11 11:24:26 2016
New Revision: 982465

Log:
Staging update by buildbot for sling

Modified:
    websites/staging/sling/trunk/content/   (props changed)
    websites/staging/sling/trunk/content/documentation/bundles/validation.html

Propchange: websites/staging/sling/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Fri Mar 11 11:24:26 2016
@@ -1 +1 @@
-1734088
+1734538

Modified: websites/staging/sling/trunk/content/documentation/bundles/validation.html
==============================================================================
--- websites/staging/sling/trunk/content/documentation/bundles/validation.html (original)
+++ websites/staging/sling/trunk/content/documentation/bundles/validation.html Fri Mar 11 11:24:26 2016
@@ -122,7 +122,7 @@ This documentation is still work in prog
 <ul>
 <li><a href="#basic-usage">Basic Usage</a></li>
 <li><a href="#validation-model-resources">Validation Model Resources</a><ul>
-<li><a href="#overwriting-properties-or-children-in-super-models">Overwriting Properties or Children in Super Models</a></li>
+<li><a href="#validation-model-inheritance">Validation Model Inheritance</a></li>
 </ul>
 </li>
 <li><a href="#usage-in-sling-models">Usage in Sling Models</a><ul>
@@ -251,6 +251,13 @@ This documentation is still work in prog
 <td>no</td>
 </tr>
 <tr>
+<td><code>properties\&lt;propertyName&gt;\validators\&lt;validatorName&gt;\severity</code></td>
+<td>Property</td>
+<td><code>Integer</code></td>
+<td>The severity which should be set on all emitted validation failures by this validator.</td>
+<td>no</td>
+</tr>
+<tr>
 <td><code>children\&lt;resourceName&gt;</code></td>
 <td>Resource</td>
 <td>-</td>
@@ -280,8 +287,9 @@ This documentation is still work in prog
 </tr>
 </tbody>
 </table>
-<h2 id="overwriting-properties-or-children-in-super-models">Overwriting Properties or Children in Super Models<a class="headerlink" href="#overwriting-properties-or-children-in-super-models" title="Permanent link">&para;</a></h2>
-<p>Sling Validation optionally supports the inheritance of Sling Validation Models. To overwrite some property or child from one of the super type models, just define a property/child on the same level and with the same name in a model for a resource type which is more specific! That way the property/child on the super validation model is no longer effective.</p>
+<h2 id="validation-model-inheritance">Validation Model Inheritance<a class="headerlink" href="#validation-model-inheritance" title="Permanent link">&para;</a></h2>
+<p>Sling Validation optionally supports the inheritance of Sling Validation Models. This means not only the model for exactly the given resource type is considered, but also the models for all resource super types.
+To overwrite some property or child from one of the super type models, just define a property/child on the same level and with the same name in a model for a resource type which is more specific. That way the property/child on the super validation model is no longer effective.</p>
 <h1 id="usage-in-sling-models">Usage in <a href="/documentation/bundles/models.html">Sling Models</a><a class="headerlink" href="#usage-in-sling-models" title="Permanent link">&para;</a></h1>
 <h2 id="since-sling-models-120">Since Sling Models 1.2.0<a class="headerlink" href="#since-sling-models-120" title="Permanent link">&para;</a></h2>
 <p>See <a href="/documentation/bundles/models.html#validation">Sling Models validation</a></p>
@@ -323,7 +331,7 @@ That interface defines the method <code>
 <li><a href="http://www.slideshare.net/raducotescu/apache-sling-generic-validation-framework">Apache Sling Generic Validation Framework, adaptTo 2014</a></li>
 </ol>
       <div class="timestamp" style="margin-top: 30px; font-size: 80%; text-align: right;">
-        Rev. 1734075 by olli on Tue, 8 Mar 2016 13:15:20 +0000
+        Rev. 1734538 by kwin on Fri, 11 Mar 2016 11:24:09 +0000
       </div>
       <div class="trademarkFooter"> 
         Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project