Sophie

Sophie

distrib > Mandriva > 2010.0 > x86_64 > media > main-release > by-pkgid > 3b947bdd5e0f96306962f8c5b04dc08f > files > 132

xdoclet-manual-1.2.3-8.0.3mdv2010.0.noarch.rpm


<html>
<head>
</head>
<body bgcolor="#ffffff">

<h2>Validator</h2>

<p>Implemented in class <a href="../api/xdoclet/modules/apache/struts/StrutsValidatorTagsHandler.html">xdoclet.modules.apache.struts.StrutsValidatorTagsHandler</a>.</p>
<ul>
  <li><a href="#block">Block Tags</a>
  <li><a href="#content">Content Tags</a>
</ul>

<h3><a name="block">Block Tags:</a></h3>

<h4><a name="forAllFieldArgs">forAllFieldArgs</a> (block template)</h4>
<p>Iterates over all arguments for the current field.</p>

<h4><a name="forAllFields">forAllFields</a> (block template)</h4>
<p>Iterates the body for each field of the current form requiring validation.</p>

<h4><a name="forAllForms">forAllForms</a> (block template)</h4>
<p>Iterates over all Struts Form beans and evaluates the body of the tag for each class.</p>

<h4><a name="ifArgIsForType">ifArgIsForType</a> (block template)</h4>
<p>Evaluates the body if the current argument is a validator-specific argument.</p>

<h4><a name="ifArgIsResource">ifArgIsResource</a> (block template)</h4>
<p>Evaluates body if current argument is a resource key.</p>

<h4><a name="ifArgIsValue">ifArgIsValue</a> (block template)</h4>
<p>Evaluates the body if the current argument is an inline value rather than a resource key.</p>

<h4><a name="ifFieldIsIndexed">ifFieldIsIndexed</a> (block template)</h4>
<p>Evaluates the body if the current field has an indexed component.</p>

<h4><a name="ifFormHasFields">ifFormHasFields</a> (block template)</h4>
<p>Evaluates the body if form has fields requiring validation.</p>

<h4><a name="ifNoArg0">ifNoArg0</a> (block template)</h4>
<p>Evaluates the body if there is no arg0 specified.</p>

<h4><a name="setMatchValue">setMatchValue</a> (block template)</h4>
<p>Sets the value of match variable.</p>
<table border="1" cellpadding="2" cellspacing="0" width="100%">
  <tr>
    <td width="25%" valign="top">
      <i>
           value
      </i>
    </td>
    <td width="75%" valign="top">
       The new value for matchPattern.<br></br>
    </td>
  </tr>
</table>

<h3><a name="content">Content templates:</a></h3>

<h4><a name="argIndex">argIndex</a> (content template)</h4>
<p>Current argument index number (0 to 3).</p>

<h4><a name="argName">argName</a> (content template)</h4>
<p>Current argument name - only valid if argument is for a specific validator type.</p>

<h4><a name="argValue">argValue</a> (content template)</h4>
<p>Current argument value, which is either an inline value or resource key.</p>

<h4><a name="currentToken">currentToken</a> (content template)</h4>
<p>Returns current token inside forAllClassTagTokens.</p>

<h4><a name="fieldName">fieldName</a> (content template)</h4>
<p>Returns the current field's name, local to the indexed property if there is one.</p>

<h4><a name="formName">formName</a> (content template)</h4>
<p>Gets the "name" attribute for the &lt;form> element in the xml descriptor. This should be the "path" form attribute if this is a ValidatorActiorForm or the "name" attribute otherwise.</p>

<h4><a name="indexedListProperty">indexedListProperty</a> (content template)</h4>
<p>Returns the current field's indexedListProperty attribute, if any.</p>

<h4><a name="matchValue">matchValue</a> (content template)</h4>
<p>Returns the value of match variable. Match variable serves as a variable for templates, you set it somewhere in template and look it up somewhere else in template.</p>

<h4><a name="skipToken">skipToken</a> (content template)</h4>
<p>Skips current token. Returns empty string.</p>

<h4><a name="validatorList">validatorList</a> (content template)</h4>
<p>Returns a comma-separated list of the specified validator types.</p>

</body>
</html>