Extending abstract validation rules

You can extend an abstract rule by adding the extends attribute in the Rule element.

The value of the extends attribute should contain the identifier of the abstract rule that you want to extend. For example:

<ValidationRules>
   <Rule id="impl1" extends="abstract1" inputType="HTTPParameterValue"
         inputName="Test" uri="/console/home.do" maxLength="100">
   </Rule>
   <Rule id="impl2" extends="abstract2" inputType="HTTPParameterValue"
         inputName="Test1" uri="/console/home.do">
   </Rule>
</ValidationRules>

In this case, the maxLength defined for rule impl1 will override the maxLength defined for rule abstract1.