| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you 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 HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- **************************************************************** --> |
| <!-- * PLEASE KEEP COMPLICATED EXPRESSIONS OUT OF THESE TEMPLATES, * --> |
| <!-- * i.e. only iterate & print data where possible. Thanks, Jez. * --> |
| <!-- **************************************************************** --> |
| |
| <html> |
| <head> |
| <!-- Matomo --> |
| <script> |
| var _paq = window._paq = window._paq || []; |
| /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ |
| _paq.push(["setDoNotTrack", true]); |
| _paq.push(["disableCookies"]); |
| _paq.push(['trackPageView']); |
| _paq.push(['enableLinkTracking']); |
| (function() { |
| var u="https://analytics.apache.org/"; |
| _paq.push(['setTrackerUrl', u+'matomo.php']); |
| _paq.push(['setSiteId', '79']); |
| var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; |
| g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); |
| })(); |
| </script> |
| <!-- End Matomo Code --> |
| <!-- Generated by groovydoc (2.4.6) on Tue May 31 14:33:35 UTC 2016 --> |
| <title>ConstrainedProperty (Grails 3.1.8)</title> |
| <meta name="date" content="2016-05-31"> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <link href="../../groovy.ico" type="image/x-icon" rel="shortcut icon"> |
| <link href="../../groovy.ico" type="image/x-icon" rel="icon"> |
| <link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style"> |
| |
| <body class="center"> |
| <script type="text/javascript"><!-- |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="ConstrainedProperty (Grails 3.1.8)"; |
| } |
| //--> |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar_top"> |
| <!-- --> |
| </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../index-all.html">Index</a></li> |
| <li><a href="../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| |
| <div class="subNav"> |
| <div> |
| <ul class="navList"> |
| <li><a href="../../index.html?grails/validation/ConstrainedProperty" target="_top">Frames</a></li> |
| <li><a href="ConstrainedProperty.html" target="_top">No Frames</a></li> |
| </ul> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| Nested <li><a href="#field_summary">Field</a></li> <li><a href="#constructor_summary">Constructor</a></li> <li><a href="#method_summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li> | Detail: </li> |
| <li><a href="#field_detail">Field</a></li> <li><a href="#constructor_detail">Constructor</a></li> <li><a href="#method_detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip-navbar_top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| |
| <div class="subTitle">Package: <strong>grails.validation</strong></div> |
| |
| <h2 title="[Java] Class ConstrainedProperty" class="title">[Java] Class ConstrainedProperty</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li><ul class="inheritance"></ul></li><li>grails.validation.ConstrainedProperty |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| |
| <dl> |
| <dt>All Implemented Interfaces and Traits:</dt> |
| <dd><a href='../../grails/validation/Constrained.html'>Constrained</a></dd> |
| </dl> |
| <!-- todo: direct known subclasses --> |
| <hr> |
| <br> |
| <pre>@java.lang.SuppressWarnings("serial") |
| public class ConstrainedProperty |
| extends java.lang.Object |
| |
| </pre> |
| |
| |
| |
| <p> Provides the ability to set contraints against a properties of a class. Constraints can either be |
| set via the property setters or via the <pre>applyConstraint(String constraintName, Object constrainingValue)</pre> |
| in combination with a constraint constant. Example: |
| |
| <code> |
| ... |
| |
| ConstrainedProperty cp = new ConstrainedProperty(owningClass, propertyName, propertyType); |
| if (cp.supportsConstraint(ConstrainedProperty.EMAIL_CONSTRAINT)) { |
| cp.applyConstraint(ConstrainedProperty.EMAIL_CONSTRAINT, new Boolean(true)); |
| } |
| </code> |
| |
| Alternatively constraints can be applied directly using the java bean getters/setters if a static (as oposed to dynamic) |
| approach to constraint creation is possible: |
| |
| <code> |
| cp.setEmail(true) |
| </code> |
| <DL><DT><B>Authors:</B></DT><DD>Graeme Rocher</DD></DL><DL><DT><B>Since:</B></DT><DD>07-Nov-2005</DD></DL></p> |
| |
| </li> |
| </ul> |
| </div> |
| |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- =========== NESTED CLASS SUMMARY =========== --> |
| |
| |
| <!-- =========== ENUM CONSTANT SUMMARY =========== --> |
| |
| <!-- =========== FIELD SUMMARY =========== --> |
| |
| <ul class="blockList"> |
| <li class="blockList"><a name="field_summary"><!-- --></a> |
| <h3>Field Summary</h3> |
| <ul class="blockList"> |
| <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Enum constants summary table"> |
| <caption><span>Fields</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifiers</th> |
| <th class="colLast" scope="col">Name</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code><strong>static java.lang.String</strong></code> </td> |
| <td class="colLast"><code><a href="#BLANK_CONSTRAINT">BLANK_CONSTRAINT</a></code></td> |
| <td class="colLast"></code></td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code><strong>static java.lang.String</strong></code> </td> |
| <td class="colLast"><code><a href="#CREDIT_CARD_CONSTRAINT">CREDIT_CARD_CONSTRAINT</a></code></td> |
| <td class="colLast"></code></td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code><strong>static java.lang.String</strong></code> </td> |
| <td class="colLast"><code><a href="#DEFAULT_BLANK_MESSAGE_CODE">DEFAULT_BLANK_MESSAGE_CODE</a></code></td> |
| <td class="colLast"></code></td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code><strong>static java.lang.String</strong></code> </td> |
| <td class="colLast"><code><a href="#DEFAULT_DOESNT_MATCH_MESSAGE_CODE">DEFAULT_DOESNT_MATCH_MESSAGE_CODE</a></code></td> |
| <td class="colLast"></code></td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code><strong>static java.lang.String</strong></code> </td> |
| <td class="colLast"><code><a href="#DEFAULT_INVALID_CREDIT_CARD_MESSAGE_CODE">DEFAULT_INVALID_CREDIT_CARD_MESSAGE_CODE</a></code></td> |
| <td class="colLast"></code></td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code><strong>static java.lang.String</strong></code> </td> |
| <td class="colLast"><code><a href="#DEFAULT_INVALID_EMAIL_MESSAGE_CODE">DEFAULT_INVALID_EMAIL_MESSAGE_CODE</a></code></td> |
| <td class="colLast"></code></td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code><strong>static java.lang.String</strong></code> </td> |
| <td class="colLast"><code><a href="#DEFAULT_INVALID_MAX_MESSAGE_CODE">DEFAULT_INVALID_MAX_MESSAGE_CODE</a></code></td> |
| <td class="colLast"></code></td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code><strong>static java.lang.String</strong></code> </td> |
| <td class="colLast"><code><a href="#DEFAULT_INVALID_MAX_SIZE_MESSAGE_CODE">DEFAULT_INVALID_MAX_SIZE_MESSAGE_CODE</a></code></td> |
| <td class="colLast"></code></td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code><strong>static java.lang.String</strong></code> </td> |
| <td class="colLast"><code><a href="#DEFAULT_INVALID_MIN_MESSAGE_CODE">DEFAULT_INVALID_MIN_MESSAGE_CODE</a></code></td> |
| <td class="colLast"></code></td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code><strong>static java.lang.String</strong></code> </td> |
| <td class="colLast"><code><a href="#DEFAULT_INVALID_MIN_SIZE_MESSAGE_CODE">DEFAULT_INVALID_MIN_SIZE_MESSAGE_CODE</a></code></td> |
| <td class="colLast"></code></td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code><strong>static java.lang.String</strong></code> </td> |
| <td class="colLast"><code><a href="#DEFAULT_INVALID_RANGE_MESSAGE_CODE">DEFAULT_INVALID_RANGE_MESSAGE_CODE</a></code></td> |
| <td class="colLast"></code></td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code><strong>static java.lang.String</strong></code> </td> |
| <td class="colLast"><code><a href="#DEFAULT_INVALID_SIZE_MESSAGE_CODE">DEFAULT_INVALID_SIZE_MESSAGE_CODE</a></code></td> |
| <td class="colLast"></code></td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code><strong>static java.lang.String</strong></code> </td> |
| <td class="colLast"><code><a href="#DEFAULT_INVALID_URL_MESSAGE_CODE">DEFAULT_INVALID_URL_MESSAGE_CODE</a></code></td> |
| <td class="colLast"></code></td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code><strong>static java.lang.String</strong></code> </td> |
| <td class="colLast"><code><a href="#DEFAULT_INVALID_VALIDATOR_MESSAGE_CODE">DEFAULT_INVALID_VALIDATOR_MESSAGE_CODE</a></code></td> |
| <td class="colLast"></code></td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code><strong>protected static java.util.Map<java.lang.String, java.lang.String></strong></code> </td> |
| <td class="colLast"><code><a href="#DEFAULT_MESSAGES">DEFAULT_MESSAGES</a></code></td> |
| <td class="colLast"></code></td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code><strong>static java.lang.String</strong></code> </td> |
| <td class="colLast"><code><a href="#DEFAULT_NOT_EQUAL_MESSAGE_CODE">DEFAULT_NOT_EQUAL_MESSAGE_CODE</a></code></td> |
| <td class="colLast"></code></td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code><strong>static java.lang.String</strong></code> </td> |
| <td class="colLast"><code><a href="#DEFAULT_NOT_INLIST_MESSAGE_CODE">DEFAULT_NOT_INLIST_MESSAGE_CODE</a></code></td> |
| <td class="colLast"></code></td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code><strong>static java.lang.String</strong></code> </td> |
| <td class="colLast"><code><a href="#DEFAULT_NULL_MESSAGE_CODE">DEFAULT_NULL_MESSAGE_CODE</a></code></td> |
| <td class="colLast"></code></td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code><strong>static java.lang.String</strong></code> </td> |
| <td class="colLast"><code><a href="#EMAIL_CONSTRAINT">EMAIL_CONSTRAINT</a></code></td> |
| <td class="colLast"></code></td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code><strong>static java.lang.String</strong></code> </td> |
| <td class="colLast"><code><a href="#EXCEEDED_SUFFIX">EXCEEDED_SUFFIX</a></code></td> |
| <td class="colLast"></code></td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code><strong>static java.lang.String</strong></code> </td> |
| <td class="colLast"><code><a href="#INVALID_SUFFIX">INVALID_SUFFIX</a></code></td> |
| <td class="colLast"></code></td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code><strong>static java.lang.String</strong></code> </td> |
| <td class="colLast"><code><a href="#IN_LIST_CONSTRAINT">IN_LIST_CONSTRAINT</a></code></td> |
| <td class="colLast"></code></td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code><strong>protected static org.apache.commons.logging.Log</strong></code> </td> |
| <td class="colLast"><code><a href="#LOG">LOG</a></code></td> |
| <td class="colLast"></code></td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code><strong>static java.lang.String</strong></code> </td> |
| <td class="colLast"><code><a href="#MATCHES_CONSTRAINT">MATCHES_CONSTRAINT</a></code></td> |
| <td class="colLast"></code></td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code><strong>static java.lang.String</strong></code> </td> |
| <td class="colLast"><code><a href="#MAX_CONSTRAINT">MAX_CONSTRAINT</a></code></td> |
| <td class="colLast"></code></td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code><strong>static java.lang.String</strong></code> </td> |
| <td class="colLast"><code><a href="#MAX_SIZE_CONSTRAINT">MAX_SIZE_CONSTRAINT</a></code></td> |
| <td class="colLast"></code></td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code><strong>static java.lang.String</strong></code> </td> |
| <td class="colLast"><code><a href="#MIN_CONSTRAINT">MIN_CONSTRAINT</a></code></td> |
| <td class="colLast"></code></td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code><strong>static java.lang.String</strong></code> </td> |
| <td class="colLast"><code><a href="#MIN_SIZE_CONSTRAINT">MIN_SIZE_CONSTRAINT</a></code></td> |
| <td class="colLast"></code></td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code><strong>static java.lang.String</strong></code> </td> |
| <td class="colLast"><code><a href="#NOTMET_SUFFIX">NOTMET_SUFFIX</a></code></td> |
| <td class="colLast"></code></td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code><strong>static java.lang.String</strong></code> </td> |
| <td class="colLast"><code><a href="#NOT_EQUAL_CONSTRAINT">NOT_EQUAL_CONSTRAINT</a></code></td> |
| <td class="colLast"></code></td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code><strong>static java.lang.String</strong></code> </td> |
| <td class="colLast"><code><a href="#NOT_PREFIX">NOT_PREFIX</a></code></td> |
| <td class="colLast"></code></td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code><strong>static java.lang.String</strong></code> </td> |
| <td class="colLast"><code><a href="#NULLABLE_CONSTRAINT">NULLABLE_CONSTRAINT</a></code></td> |
| <td class="colLast"></code></td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code><strong>static java.lang.String</strong></code> </td> |
| <td class="colLast"><code><a href="#RANGE_CONSTRAINT">RANGE_CONSTRAINT</a></code></td> |
| <td class="colLast"></code></td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code><strong>static java.lang.String</strong></code> </td> |
| <td class="colLast"><code><a href="#SCALE_CONSTRAINT">SCALE_CONSTRAINT</a></code></td> |
| <td class="colLast"></code></td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code><strong>static java.lang.String</strong></code> </td> |
| <td class="colLast"><code><a href="#SIZE_CONSTRAINT">SIZE_CONSTRAINT</a></code></td> |
| <td class="colLast"></code></td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code><strong>static java.lang.String</strong></code> </td> |
| <td class="colLast"><code><a href="#TOOBIG_SUFFIX">TOOBIG_SUFFIX</a></code></td> |
| <td class="colLast"></code></td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code><strong>static java.lang.String</strong></code> </td> |
| <td class="colLast"><code><a href="#TOOLONG_SUFFIX">TOOLONG_SUFFIX</a></code></td> |
| <td class="colLast"></code></td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code><strong>static java.lang.String</strong></code> </td> |
| <td class="colLast"><code><a href="#TOOSHORT_SUFFIX">TOOSHORT_SUFFIX</a></code></td> |
| <td class="colLast"></code></td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code><strong>static java.lang.String</strong></code> </td> |
| <td class="colLast"><code><a href="#TOOSMALL_SUFFIX">TOOSMALL_SUFFIX</a></code></td> |
| <td class="colLast"></code></td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code><strong>static java.lang.String</strong></code> </td> |
| <td class="colLast"><code><a href="#URL_CONSTRAINT">URL_CONSTRAINT</a></code></td> |
| <td class="colLast"></code></td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code><strong>static java.lang.String</strong></code> </td> |
| <td class="colLast"><code><a href="#VALIDATOR_CONSTRAINT">VALIDATOR_CONSTRAINT</a></code></td> |
| <td class="colLast"></code></td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code><strong>protected java.util.Map<java.lang.String, <a href='../../grails/validation/Constraint.html' title='Constraint'>Constraint</a>></strong></code> </td> |
| <td class="colLast"><code><a href="#appliedConstraints">appliedConstraints</a></code></td> |
| <td class="colLast"></code></td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code><strong>protected static java.util.ResourceBundle</strong></code> </td> |
| <td class="colLast"><code><a href="#bundle">bundle</a></code></td> |
| <td class="colLast"></code></td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code><strong>protected static java.util.Map<java.lang.String, java.util.List<java.lang.Object>></strong></code> </td> |
| <td class="colLast"><code><a href="#constraints">constraints</a></code></td> |
| <td class="colLast"></code></td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code><strong>protected org.springframework.context.MessageSource</strong></code> </td> |
| <td class="colLast"><code><a href="#messageSource">messageSource</a></code></td> |
| <td class="colLast"></code></td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code><strong>protected java.lang.Class<?></strong></code> </td> |
| <td class="colLast"><code><a href="#owningClass">owningClass</a></code></td> |
| <td class="colLast"></code></td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code><strong>protected java.lang.String</strong></code> </td> |
| <td class="colLast"><code><a href="#propertyName">propertyName</a></code></td> |
| <td class="colLast"></code></td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code><strong>protected java.lang.Class<?></strong></code> </td> |
| <td class="colLast"><code><a href="#propertyType">propertyType</a></code></td> |
| <td class="colLast"></code></td> |
| </tr> |
| |
| </table> |
| </ul> |
| </li> |
| |
| </ul> |
| |
| |
| <!-- =========== PROPERTY SUMMARY =========== --> |
| |
| |
| <!-- =========== ELEMENT SUMMARY =========== --> |
| |
| |
| |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor_summary"><!-- --></a> |
| <h3>Constructor Summary</h3> |
| <ul class="blockList"> |
| <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructors Summary table"> |
| <caption><span>Constructors</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Constructor and description</th> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"> |
| <code><a href="#ConstrainedProperty(Class<?>, java.lang.String, Class<?>)">ConstrainedProperty</a></strong> |
| (java.lang.Class<?> clazz, java.lang.String propertyName, java.lang.Class<?> propertyType)</code><br>Constructs a new ConstrainedProperty for the given arguments.</td> |
| </tr> |
| |
| </table> |
| </ul> |
| </li> |
| </ul> |
| |
| |
| |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| |
| <li class="blockList"><a name="method_summary"><!-- --></a> |
| <h3>Methods Summary</h3> |
| <ul class="blockList"> |
| <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Methods Summary table"> |
| <caption><span>Methods</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Type</th> |
| <th class="colLast" scope="col">Name and description</th> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</strong></code></td> |
| <td class="colLast"><code><strong><a href="#addMetaConstraint(java.lang.String, java.lang.Object)">addMetaConstraint</a></strong>(java.lang.String name, java.lang.Object value)</code><br>Adds a meta constraints which is a non-validating informational constraint.</td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</strong></code></td> |
| <td class="colLast"><code><strong><a href="#applyConstraint(java.lang.String, java.lang.Object)">applyConstraint</a></strong>(java.lang.String constraintName, java.lang.Object constrainingValue)</code><br>Applies a constraint for the specified name and consraint value.</td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href='../../grails/validation/Constraint.html'>Constraint</a></strong></code></td> |
| <td class="colLast"><code><strong><a href="#getAppliedConstraint(java.lang.String)">getAppliedConstraint</a></strong>(java.lang.String name)</code><br>Obtains an applied constraint by name.</td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code>java.util.Collection<<a href='../../grails/validation/Constraint.html' title='Constraint'>Constraint</a>></strong></code></td> |
| <td class="colLast"><code><strong><a href="#getAppliedConstraints()">getAppliedConstraints</a></strong>()</code><br>@return Returns the appliedConstraints.</td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code>java.util.Map</strong></code></td> |
| <td class="colLast"><code><strong><a href="#getAttributes()">getAttributes</a></strong>()</code><br></td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code>java.lang.String</strong></code></td> |
| <td class="colLast"><code><strong><a href="#getFormat()">getFormat</a></strong>()</code><br></td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code>java.util.List</strong></code></td> |
| <td class="colLast"><code><strong><a href="#getInList()">getInList</a></strong>()</code><br>@return Returns the inList.</td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code>java.lang.String</strong></code></td> |
| <td class="colLast"><code><strong><a href="#getMatches()">getMatches</a></strong>()</code><br>@return Returns the matches.</td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code>java.lang.Comparable</strong></code></td> |
| <td class="colLast"><code><strong><a href="#getMax()">getMax</a></strong>()</code><br>@return Returns the max.</td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code>java.lang.Integer</strong></code></td> |
| <td class="colLast"><code><strong><a href="#getMaxSize()">getMaxSize</a></strong>()</code><br>@return Returns the maxSize.</td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code>java.lang.Object</strong></code></td> |
| <td class="colLast"><code><strong><a href="#getMetaConstraintValue(java.lang.String)">getMetaConstraintValue</a></strong>(java.lang.String name)</code><br>Obtains the value of the named meta constraint.</td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code>java.lang.Comparable</strong></code></td> |
| <td class="colLast"><code><strong><a href="#getMin()">getMin</a></strong>()</code><br>@return Returns the min.</td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code>java.lang.Integer</strong></code></td> |
| <td class="colLast"><code><strong><a href="#getMinSize()">getMinSize</a></strong>()</code><br>@return Returns the minSize.</td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code>java.lang.Object</strong></code></td> |
| <td class="colLast"><code><strong><a href="#getNotEqual()">getNotEqual</a></strong>()</code><br>@return Returns the notEqual.</td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code>int</strong></code></td> |
| <td class="colLast"><code><strong><a href="#getOrder()">getOrder</a></strong>()</code><br>@return Returns the order.</td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code>java.lang.Class</strong></code></td> |
| <td class="colLast"><code><strong><a href="#getOwner()">getOwner</a></strong>()</code><br></td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code>java.lang.String</strong></code></td> |
| <td class="colLast"><code><strong><a href="#getPropertyName()">getPropertyName</a></strong>()</code><br>@return Returns the propertyName.</td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code>java.lang.Class<?></strong></code></td> |
| <td class="colLast"><code><strong><a href="#getPropertyType()">getPropertyType</a></strong>()</code><br>@return Returns the propertyType.</td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code>groovy.lang.Range</strong></code></td> |
| <td class="colLast"><code><strong><a href="#getRange()">getRange</a></strong>()</code><br>@return Returns the range.</td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code>java.lang.Integer</strong></code></td> |
| <td class="colLast"><code><strong><a href="#getScale()">getScale</a></strong>()</code><br>@return The scale, if defined for this property; null, otherwise</td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code>groovy.lang.Range</strong></code></td> |
| <td class="colLast"><code><strong><a href="#getSize()">getSize</a></strong>()</code><br>@return Returns the size.</td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code>java.lang.String</strong></code></td> |
| <td class="colLast"><code><strong><a href="#getWidget()">getWidget</a></strong>()</code><br></td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code>boolean</strong></code></td> |
| <td class="colLast"><code><strong><a href="#hasAppliedConstraint(java.lang.String)">hasAppliedConstraint</a></strong>(java.lang.String constraintName)</code><br>@param constraintName The name of the constraint to check</td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static boolean</strong></code></td> |
| <td class="colLast"><code><strong><a href="#hasRegisteredConstraint(java.lang.String)">hasRegisteredConstraint</a></strong>(java.lang.String constraintName)</code><br></td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code>boolean</strong></code></td> |
| <td class="colLast"><code><strong><a href="#isBlank()">isBlank</a></strong>()</code><br>@return the blank.</td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code>boolean</strong></code></td> |
| <td class="colLast"><code><strong><a href="#isCreditCard()">isCreditCard</a></strong>()</code><br>@return Returns the creditCard.</td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code>boolean</strong></code></td> |
| <td class="colLast"><code><strong><a href="#isDisplay()">isDisplay</a></strong>()</code><br>@return Returns the display.</td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code>boolean</strong></code></td> |
| <td class="colLast"><code><strong><a href="#isEditable()">isEditable</a></strong>()</code><br>@return Returns the editable.</td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code>boolean</strong></code></td> |
| <td class="colLast"><code><strong><a href="#isEmail()">isEmail</a></strong>()</code><br>@return Returns the email.</td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code>boolean</strong></code></td> |
| <td class="colLast"><code><strong><a href="#isNullable()">isNullable</a></strong>()</code><br>@return Returns the nullable.</td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code>boolean</strong></code></td> |
| <td class="colLast"><code><strong><a href="#isPassword()">isPassword</a></strong>()</code><br></td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code>boolean</strong></code></td> |
| <td class="colLast"><code><strong><a href="#isUrl()">isUrl</a></strong>()</code><br>@return Returns the url.</td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code>static void</strong></code></td> |
| <td class="colLast"><code><strong><a href="#registerNewConstraint(java.lang.String, Class<?>)">registerNewConstraint</a></strong>(java.lang.String name, java.lang.Class<?> constraintClass)</code><br></td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static void</strong></code></td> |
| <td class="colLast"><code><strong><a href="#registerNewConstraint(java.lang.String, grails.validation.ConstraintFactory)">registerNewConstraint</a></strong>(java.lang.String name, <a href='../../grails/validation/ConstraintFactory.html'>ConstraintFactory</a> factory)</code><br></td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code>static void</strong></code></td> |
| <td class="colLast"><code><strong><a href="#removeConstraint(java.lang.String, Class<?>)">removeConstraint</a></strong>(java.lang.String name, java.lang.Class<?> constraintClass)</code><br></td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static void</strong></code></td> |
| <td class="colLast"><code><strong><a href="#removeConstraint(java.lang.String)">removeConstraint</a></strong>(java.lang.String name)</code><br></td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</strong></code></td> |
| <td class="colLast"><code><strong><a href="#setAttributes(java.util.Map)">setAttributes</a></strong>(java.util.Map attributes)</code><br></td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</strong></code></td> |
| <td class="colLast"><code><strong><a href="#setBlank(boolean)">setBlank</a></strong>(boolean blank)</code><br>@param blank The blank to set.</td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</strong></code></td> |
| <td class="colLast"><code><strong><a href="#setCreditCard(boolean)">setCreditCard</a></strong>(boolean creditCard)</code><br>@param creditCard The creditCard to set.</td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</strong></code></td> |
| <td class="colLast"><code><strong><a href="#setDisplay(boolean)">setDisplay</a></strong>(boolean display)</code><br>@param display The display to set.</td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</strong></code></td> |
| <td class="colLast"><code><strong><a href="#setEditable(boolean)">setEditable</a></strong>(boolean editable)</code><br>@param editable The editable to set.</td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</strong></code></td> |
| <td class="colLast"><code><strong><a href="#setEmail(boolean)">setEmail</a></strong>(boolean email)</code><br>@param email The email to set.</td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</strong></code></td> |
| <td class="colLast"><code><strong><a href="#setFormat(java.lang.String)">setFormat</a></strong>(java.lang.String format)</code><br></td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</strong></code></td> |
| <td class="colLast"><code><strong><a href="#setInList(java.util.List)">setInList</a></strong>(java.util.List inList)</code><br>@param inList The inList to set.</td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</strong></code></td> |
| <td class="colLast"><code><strong><a href="#setMatches(java.lang.String)">setMatches</a></strong>(java.lang.String regex)</code><br>@param regex The matches to set.</td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</strong></code></td> |
| <td class="colLast"><code><strong><a href="#setMax(java.lang.Comparable)">setMax</a></strong>(java.lang.Comparable max)</code><br>@param max The max to set.</td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</strong></code></td> |
| <td class="colLast"><code><strong><a href="#setMaxSize(java.lang.Integer)">setMaxSize</a></strong>(java.lang.Integer maxSize)</code><br>@param maxSize The maxSize to set.</td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</strong></code></td> |
| <td class="colLast"><code><strong><a href="#setMessageSource(org.springframework.context.MessageSource)">setMessageSource</a></strong>(org.springframework.context.MessageSource source)</code><br>The message source used to evaluate error messages</td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</strong></code></td> |
| <td class="colLast"><code><strong><a href="#setMin(java.lang.Comparable)">setMin</a></strong>(java.lang.Comparable min)</code><br>@param min The min to set.</td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</strong></code></td> |
| <td class="colLast"><code><strong><a href="#setMinSize(java.lang.Integer)">setMinSize</a></strong>(java.lang.Integer minSize)</code><br>@param minSize The minLength to set.</td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</strong></code></td> |
| <td class="colLast"><code><strong><a href="#setNotEqual(java.lang.Object)">setNotEqual</a></strong>(java.lang.Object notEqual)</code><br>@param notEqual The notEqual to set.</td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</strong></code></td> |
| <td class="colLast"><code><strong><a href="#setNullable(boolean)">setNullable</a></strong>(boolean nullable)</code><br>@param nullable The nullable to set.</td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</strong></code></td> |
| <td class="colLast"><code><strong><a href="#setOrder(int)">setOrder</a></strong>(int order)</code><br>@param order The order to set.</td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</strong></code></td> |
| <td class="colLast"><code><strong><a href="#setPassword(boolean)">setPassword</a></strong>(boolean password)</code><br></td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</strong></code></td> |
| <td class="colLast"><code><strong><a href="#setPropertyName(java.lang.String)">setPropertyName</a></strong>(java.lang.String propertyName)</code><br>@param propertyName The propertyName to set.</td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</strong></code></td> |
| <td class="colLast"><code><strong><a href="#setRange(groovy.lang.Range)">setRange</a></strong>(groovy.lang.Range range)</code><br>@param range The range to set.</td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</strong></code></td> |
| <td class="colLast"><code><strong><a href="#setSize(groovy.lang.Range)">setSize</a></strong>(groovy.lang.Range size)</code><br>@param size The size to set.</td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</strong></code></td> |
| <td class="colLast"><code><strong><a href="#setUrl(boolean)">setUrl</a></strong>(boolean url)</code><br>@param url The url to set.</td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</strong></code></td> |
| <td class="colLast"><code><strong><a href="#setWidget(java.lang.String)">setWidget</a></strong>(java.lang.String widget)</code><br></td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code>boolean</strong></code></td> |
| <td class="colLast"><code><strong><a href="#supportsContraint(java.lang.String)">supportsContraint</a></strong>(java.lang.String constraintName)</code><br>Checks with this ConstraintedProperty instance supports applying the specified constraint.</td> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code>java.lang.String</strong></code></td> |
| <td class="colLast"><code><strong><a href="#toString()">toString</a></strong>()</code><br></td> |
| </tr> |
| |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</strong></code></td> |
| <td class="colLast"><code><strong><a href="#validate(java.lang.Object, java.lang.Object, org.springframework.validation.Errors)">validate</a></strong>(java.lang.Object target, java.lang.Object propertyValue, org.springframework.validation.Errors errors)</code><br>Validate this constrainted property against specified property value</td> |
| </tr> |
| |
| </table> |
| </ul> |
| </li> |
| |
| <li class="blockList"><a name="method_summary"><!-- --></a> |
| <h3>Inherited Methods Summary</h3> |
| <ul class="blockList"> |
| <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Inherited Methods Summary table"> |
| <caption><span>Inherited Methods</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Methods inherited from class</th> |
| <th class="colLast" scope="col">Name</th> |
| </tr> |
| |
| <tr class="altColor"> |
| <td class="colFirst"><code>class java.lang.Object</strong></code></td> |
| <td class="colLast"><code>java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()</code></td> |
| </tr> |
| </table> |
| </ul> |
| </li> |
| |
| </ul> |
| |
| </li> |
| </ul> |
| </div> |
| |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| |
| |
| |
| <!-- =========== FIELD DETAIL =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field_detail"> |
| <!-- --> |
| </a> |
| <h3>Field Detail</h3> |
| |
| <a name="BLANK_CONSTRAINT"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public static final java.lang.String <strong>BLANK_CONSTRAINT</strong></h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="CREDIT_CARD_CONSTRAINT"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public static final java.lang.String <strong>CREDIT_CARD_CONSTRAINT</strong></h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="DEFAULT_BLANK_MESSAGE_CODE"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public static final java.lang.String <strong>DEFAULT_BLANK_MESSAGE_CODE</strong></h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="DEFAULT_DOESNT_MATCH_MESSAGE_CODE"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public static final java.lang.String <strong>DEFAULT_DOESNT_MATCH_MESSAGE_CODE</strong></h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="DEFAULT_INVALID_CREDIT_CARD_MESSAGE_CODE"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public static final java.lang.String <strong>DEFAULT_INVALID_CREDIT_CARD_MESSAGE_CODE</strong></h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="DEFAULT_INVALID_EMAIL_MESSAGE_CODE"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public static final java.lang.String <strong>DEFAULT_INVALID_EMAIL_MESSAGE_CODE</strong></h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="DEFAULT_INVALID_MAX_MESSAGE_CODE"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public static final java.lang.String <strong>DEFAULT_INVALID_MAX_MESSAGE_CODE</strong></h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="DEFAULT_INVALID_MAX_SIZE_MESSAGE_CODE"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public static final java.lang.String <strong>DEFAULT_INVALID_MAX_SIZE_MESSAGE_CODE</strong></h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="DEFAULT_INVALID_MIN_MESSAGE_CODE"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public static final java.lang.String <strong>DEFAULT_INVALID_MIN_MESSAGE_CODE</strong></h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="DEFAULT_INVALID_MIN_SIZE_MESSAGE_CODE"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public static final java.lang.String <strong>DEFAULT_INVALID_MIN_SIZE_MESSAGE_CODE</strong></h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="DEFAULT_INVALID_RANGE_MESSAGE_CODE"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public static final java.lang.String <strong>DEFAULT_INVALID_RANGE_MESSAGE_CODE</strong></h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="DEFAULT_INVALID_SIZE_MESSAGE_CODE"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public static final java.lang.String <strong>DEFAULT_INVALID_SIZE_MESSAGE_CODE</strong></h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="DEFAULT_INVALID_URL_MESSAGE_CODE"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public static final java.lang.String <strong>DEFAULT_INVALID_URL_MESSAGE_CODE</strong></h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="DEFAULT_INVALID_VALIDATOR_MESSAGE_CODE"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public static final java.lang.String <strong>DEFAULT_INVALID_VALIDATOR_MESSAGE_CODE</strong></h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="DEFAULT_MESSAGES"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>protected static final java.util.Map<java.lang.String, java.lang.String> <strong>DEFAULT_MESSAGES</strong></h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="DEFAULT_NOT_EQUAL_MESSAGE_CODE"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public static final java.lang.String <strong>DEFAULT_NOT_EQUAL_MESSAGE_CODE</strong></h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="DEFAULT_NOT_INLIST_MESSAGE_CODE"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public static final java.lang.String <strong>DEFAULT_NOT_INLIST_MESSAGE_CODE</strong></h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="DEFAULT_NULL_MESSAGE_CODE"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public static final java.lang.String <strong>DEFAULT_NULL_MESSAGE_CODE</strong></h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="EMAIL_CONSTRAINT"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public static final java.lang.String <strong>EMAIL_CONSTRAINT</strong></h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="EXCEEDED_SUFFIX"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public static final java.lang.String <strong>EXCEEDED_SUFFIX</strong></h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="INVALID_SUFFIX"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public static final java.lang.String <strong>INVALID_SUFFIX</strong></h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="IN_LIST_CONSTRAINT"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public static final java.lang.String <strong>IN_LIST_CONSTRAINT</strong></h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="LOG"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>protected static final org.apache.commons.logging.Log <strong>LOG</strong></h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="MATCHES_CONSTRAINT"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public static final java.lang.String <strong>MATCHES_CONSTRAINT</strong></h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="MAX_CONSTRAINT"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public static final java.lang.String <strong>MAX_CONSTRAINT</strong></h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="MAX_SIZE_CONSTRAINT"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public static final java.lang.String <strong>MAX_SIZE_CONSTRAINT</strong></h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="MIN_CONSTRAINT"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public static final java.lang.String <strong>MIN_CONSTRAINT</strong></h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="MIN_SIZE_CONSTRAINT"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public static final java.lang.String <strong>MIN_SIZE_CONSTRAINT</strong></h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="NOTMET_SUFFIX"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public static final java.lang.String <strong>NOTMET_SUFFIX</strong></h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="NOT_EQUAL_CONSTRAINT"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public static final java.lang.String <strong>NOT_EQUAL_CONSTRAINT</strong></h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="NOT_PREFIX"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public static final java.lang.String <strong>NOT_PREFIX</strong></h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="NULLABLE_CONSTRAINT"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public static final java.lang.String <strong>NULLABLE_CONSTRAINT</strong></h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="RANGE_CONSTRAINT"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public static final java.lang.String <strong>RANGE_CONSTRAINT</strong></h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="SCALE_CONSTRAINT"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public static final java.lang.String <strong>SCALE_CONSTRAINT</strong></h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="SIZE_CONSTRAINT"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public static final java.lang.String <strong>SIZE_CONSTRAINT</strong></h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="TOOBIG_SUFFIX"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public static final java.lang.String <strong>TOOBIG_SUFFIX</strong></h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="TOOLONG_SUFFIX"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public static final java.lang.String <strong>TOOLONG_SUFFIX</strong></h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="TOOSHORT_SUFFIX"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public static final java.lang.String <strong>TOOSHORT_SUFFIX</strong></h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="TOOSMALL_SUFFIX"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public static final java.lang.String <strong>TOOSMALL_SUFFIX</strong></h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="URL_CONSTRAINT"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public static final java.lang.String <strong>URL_CONSTRAINT</strong></h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="VALIDATOR_CONSTRAINT"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public static final java.lang.String <strong>VALIDATOR_CONSTRAINT</strong></h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="appliedConstraints"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>protected java.util.Map<java.lang.String, <a href='../../grails/validation/Constraint.html' title='Constraint'>Constraint</a>> <strong>appliedConstraints</strong></h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="bundle"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>protected static final java.util.ResourceBundle <strong>bundle</strong></h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="constraints"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>protected static java.util.Map<java.lang.String, java.util.List<java.lang.Object>> <strong>constraints</strong></h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="messageSource"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>protected org.springframework.context.MessageSource <strong>messageSource</strong></h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="owningClass"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>protected java.lang.Class<?> <strong>owningClass</strong></h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="propertyName"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>protected java.lang.String <strong>propertyName</strong></h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="propertyType"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>protected java.lang.Class<?> <strong>propertyType</strong></h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| </li> |
| </ul> |
| |
| |
| |
| |
| |
| |
| |
| <!-- =========== CONSTRUCTOR DETAIL =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor_detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| |
| <a name="ConstrainedProperty(Class<?>, java.lang.String, Class<?>)"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public <strong>ConstrainedProperty</strong>(java.lang.Class<?> clazz, java.lang.String propertyName, java.lang.Class<?> propertyType)</h4> |
| <p> Constructs a new ConstrainedProperty for the given arguments. |
| <DL><DT><B>Parameters:</B></DT><DD><code>clazz</code> - The owning class</DD><DD><code>propertyName</code> - The name of the property</DD><DD><code>propertyType</code> - The property type</DD></DL></p> |
| </li> |
| </ul> |
| |
| </li> |
| </ul> |
| |
| |
| |
| |
| <!-- =========== METHOD DETAIL =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method_detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| |
| <a name="addMetaConstraint(java.lang.String, java.lang.Object)"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public void <strong>addMetaConstraint</strong>(java.lang.String name, java.lang.Object value)</h4> |
| <p> Adds a meta constraints which is a non-validating informational constraint. |
| <DL><DT><B>Parameters:</B></DT><DD><code>name</code> - The name of the constraint</DD><DD><code>value</code> - The value</DD></DL></p> |
| </li> |
| </ul> |
| |
| <a name="applyConstraint(java.lang.String, java.lang.Object)"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>@java.lang.Override |
| public void <strong>applyConstraint</strong>(java.lang.String constraintName, java.lang.Object constrainingValue)</h4> |
| <p> Applies a constraint for the specified name and consraint value.<DL><DT><B>throws:</B></DT><DD>ConstraintException Thrown when the specified constraint is not supported by this ConstrainedProperty. Use <code>supportsContraint(String constraintName)</code> to check before calling</DD></DL> |
| <DL><DT><B>Parameters:</B></DT><DD><code>constraintName</code> - The name of the constraint</DD><DD><code>constrainingValue</code> - The constraining value</DD></DL></p> |
| </li> |
| </ul> |
| |
| <a name="getAppliedConstraint(java.lang.String)"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public <a href='../../grails/validation/Constraint.html'>Constraint</a> <strong>getAppliedConstraint</strong>(java.lang.String name)</h4> |
| <p> Obtains an applied constraint by name. |
| <DL><DT><B>Parameters:</B></DT><DD><code>name</code> - The name of the constraint</DD></DL><DL><DT><B>Returns:</B></DT><DD>The applied constraint</DD></DL></p> |
| </li> |
| </ul> |
| |
| <a name="getAppliedConstraints()"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public java.util.Collection<<a href='../../grails/validation/Constraint.html' title='Constraint'>Constraint</a>> <strong>getAppliedConstraints</strong>()</h4> |
| <p> |
| <DL><DT><B>Returns:</B></DT><DD>Returns the appliedConstraints.</DD></DL></p> |
| </li> |
| </ul> |
| |
| <a name="getAttributes()"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>@java.lang.SuppressWarnings("rawtypes") |
| public java.util.Map <strong>getAttributes</strong>()</h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="getFormat()"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>@java.lang.Override |
| public java.lang.String <strong>getFormat</strong>()</h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="getInList()"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>@java.lang.Override |
| @java.lang.SuppressWarnings("rawtypes") |
| public java.util.List <strong>getInList</strong>()</h4> |
| <p> |
| <DL><DT><B>Returns:</B></DT><DD>Returns the inList.</DD></DL></p> |
| </li> |
| </ul> |
| |
| <a name="getMatches()"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>@java.lang.Override |
| public java.lang.String <strong>getMatches</strong>()</h4> |
| <p> |
| <DL><DT><B>Returns:</B></DT><DD>Returns the matches.</DD></DL></p> |
| </li> |
| </ul> |
| |
| <a name="getMax()"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>@java.lang.Override |
| @java.lang.SuppressWarnings({ "unchecked", "rawtypes" }) |
| public java.lang.Comparable <strong>getMax</strong>()</h4> |
| <p> |
| <DL><DT><B>Returns:</B></DT><DD>Returns the max.</DD></DL></p> |
| </li> |
| </ul> |
| |
| <a name="getMaxSize()"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>@java.lang.Override |
| public java.lang.Integer <strong>getMaxSize</strong>()</h4> |
| <p> |
| <DL><DT><B>Returns:</B></DT><DD>Returns the maxSize.</DD></DL></p> |
| </li> |
| </ul> |
| |
| <a name="getMetaConstraintValue(java.lang.String)"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public java.lang.Object <strong>getMetaConstraintValue</strong>(java.lang.String name)</h4> |
| <p> Obtains the value of the named meta constraint. |
| <DL><DT><B>Parameters:</B></DT><DD><code>name</code> - The name of the constraint</DD></DL><DL><DT><B>Returns:</B></DT><DD>The value</DD></DL></p> |
| </li> |
| </ul> |
| |
| <a name="getMin()"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>@java.lang.Override |
| @java.lang.SuppressWarnings({ "unchecked", "rawtypes" }) |
| public java.lang.Comparable <strong>getMin</strong>()</h4> |
| <p> |
| <DL><DT><B>Returns:</B></DT><DD>Returns the min.</DD></DL></p> |
| </li> |
| </ul> |
| |
| <a name="getMinSize()"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>@java.lang.Override |
| public java.lang.Integer <strong>getMinSize</strong>()</h4> |
| <p> |
| <DL><DT><B>Returns:</B></DT><DD>Returns the minSize.</DD></DL></p> |
| </li> |
| </ul> |
| |
| <a name="getNotEqual()"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>@java.lang.Override |
| public java.lang.Object <strong>getNotEqual</strong>()</h4> |
| <p> |
| <DL><DT><B>Returns:</B></DT><DD>Returns the notEqual.</DD></DL></p> |
| </li> |
| </ul> |
| |
| <a name="getOrder()"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>@java.lang.Override |
| public int <strong>getOrder</strong>()</h4> |
| <p> |
| <DL><DT><B>Returns:</B></DT><DD>Returns the order.</DD></DL></p> |
| </li> |
| </ul> |
| |
| <a name="getOwner()"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>@java.lang.Override |
| public java.lang.Class <strong>getOwner</strong>()</h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="getPropertyName()"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public java.lang.String <strong>getPropertyName</strong>()</h4> |
| <p> |
| <DL><DT><B>Returns:</B></DT><DD>Returns the propertyName.</DD></DL></p> |
| </li> |
| </ul> |
| |
| <a name="getPropertyType()"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>@java.lang.Override |
| public java.lang.Class<?> <strong>getPropertyType</strong>()</h4> |
| <p> |
| <DL><DT><B>Returns:</B></DT><DD>Returns the propertyType.</DD></DL></p> |
| </li> |
| </ul> |
| |
| <a name="getRange()"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>@java.lang.Override |
| @java.lang.SuppressWarnings("rawtypes") |
| public groovy.lang.Range <strong>getRange</strong>()</h4> |
| <p> |
| <DL><DT><B>Returns:</B></DT><DD>Returns the range.</DD></DL></p> |
| </li> |
| </ul> |
| |
| <a name="getScale()"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>@java.lang.Override |
| public java.lang.Integer <strong>getScale</strong>()</h4> |
| <p> |
| <DL><DT><B>Returns:</B></DT><DD>The scale, if defined for this property; null, otherwise</DD></DL></p> |
| </li> |
| </ul> |
| |
| <a name="getSize()"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>@java.lang.Override |
| @java.lang.SuppressWarnings("rawtypes") |
| public groovy.lang.Range <strong>getSize</strong>()</h4> |
| <p> |
| <DL><DT><B>Returns:</B></DT><DD>Returns the size.</DD></DL></p> |
| </li> |
| </ul> |
| |
| <a name="getWidget()"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public java.lang.String <strong>getWidget</strong>()</h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="hasAppliedConstraint(java.lang.String)"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>@java.lang.Override |
| public boolean <strong>hasAppliedConstraint</strong>(java.lang.String constraintName)</h4> |
| <p> |
| <DL><DT><B>Parameters:</B></DT><DD><code>constraintName</code> - The name of the constraint to check</DD></DL><DL><DT><B>Returns:</B></DT><DD>Returns true if the specified constraint name is being applied to this property</DD></DL></p> |
| </li> |
| </ul> |
| |
| <a name="hasRegisteredConstraint(java.lang.String)"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public static boolean <strong>hasRegisteredConstraint</strong>(java.lang.String constraintName)</h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="isBlank()"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>@java.lang.Override |
| public boolean <strong>isBlank</strong>()</h4> |
| <p> |
| <DL><DT><B>Returns:</B></DT><DD>the blank.</DD></DL></p> |
| </li> |
| </ul> |
| |
| <a name="isCreditCard()"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>@java.lang.Override |
| public boolean <strong>isCreditCard</strong>()</h4> |
| <p> |
| <DL><DT><B>Returns:</B></DT><DD>Returns the creditCard.</DD></DL></p> |
| </li> |
| </ul> |
| |
| <a name="isDisplay()"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>@java.lang.Override |
| public boolean <strong>isDisplay</strong>()</h4> |
| <p> |
| <DL><DT><B>Returns:</B></DT><DD>Returns the display.</DD></DL></p> |
| </li> |
| </ul> |
| |
| <a name="isEditable()"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>@java.lang.Override |
| public boolean <strong>isEditable</strong>()</h4> |
| <p> |
| <DL><DT><B>Returns:</B></DT><DD>Returns the editable.</DD></DL></p> |
| </li> |
| </ul> |
| |
| <a name="isEmail()"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>@java.lang.Override |
| public boolean <strong>isEmail</strong>()</h4> |
| <p> |
| <DL><DT><B>Returns:</B></DT><DD>Returns the email.</DD></DL></p> |
| </li> |
| </ul> |
| |
| <a name="isNullable()"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>@java.lang.Override |
| public boolean <strong>isNullable</strong>()</h4> |
| <p> |
| <DL><DT><B>Returns:</B></DT><DD>Returns the nullable.</DD></DL></p> |
| </li> |
| </ul> |
| |
| <a name="isPassword()"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>@java.lang.Override |
| public boolean <strong>isPassword</strong>()</h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="isUrl()"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>@java.lang.Override |
| public boolean <strong>isUrl</strong>()</h4> |
| <p> |
| <DL><DT><B>Returns:</B></DT><DD>Returns the url.</DD></DL></p> |
| </li> |
| </ul> |
| |
| <a name="registerNewConstraint(java.lang.String, Class<?>)"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public static void <strong>registerNewConstraint</strong>(java.lang.String name, java.lang.Class<?> constraintClass)</h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="registerNewConstraint(java.lang.String, grails.validation.ConstraintFactory)"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public static void <strong>registerNewConstraint</strong>(java.lang.String name, <a href='../../grails/validation/ConstraintFactory.html'>ConstraintFactory</a> factory)</h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="removeConstraint(java.lang.String, Class<?>)"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public static void <strong>removeConstraint</strong>(java.lang.String name, java.lang.Class<?> constraintClass)</h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="removeConstraint(java.lang.String)"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public static void <strong>removeConstraint</strong>(java.lang.String name)</h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="setAttributes(java.util.Map)"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>@java.lang.SuppressWarnings("rawtypes") |
| public void <strong>setAttributes</strong>(java.util.Map attributes)</h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="setBlank(boolean)"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public void <strong>setBlank</strong>(boolean blank)</h4> |
| <p> |
| <DL><DT><B>Parameters:</B></DT><DD><code>blank</code> - The blank to set.</DD></DL></p> |
| </li> |
| </ul> |
| |
| <a name="setCreditCard(boolean)"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public void <strong>setCreditCard</strong>(boolean creditCard)</h4> |
| <p> |
| <DL><DT><B>Parameters:</B></DT><DD><code>creditCard</code> - The creditCard to set.</DD></DL></p> |
| </li> |
| </ul> |
| |
| <a name="setDisplay(boolean)"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public void <strong>setDisplay</strong>(boolean display)</h4> |
| <p> |
| <DL><DT><B>Parameters:</B></DT><DD><code>display</code> - The display to set.</DD></DL></p> |
| </li> |
| </ul> |
| |
| <a name="setEditable(boolean)"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public void <strong>setEditable</strong>(boolean editable)</h4> |
| <p> |
| <DL><DT><B>Parameters:</B></DT><DD><code>editable</code> - The editable to set.</DD></DL></p> |
| </li> |
| </ul> |
| |
| <a name="setEmail(boolean)"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public void <strong>setEmail</strong>(boolean email)</h4> |
| <p> |
| <DL><DT><B>Parameters:</B></DT><DD><code>email</code> - The email to set.</DD></DL></p> |
| </li> |
| </ul> |
| |
| <a name="setFormat(java.lang.String)"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public void <strong>setFormat</strong>(java.lang.String format)</h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="setInList(java.util.List)"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>@java.lang.SuppressWarnings("rawtypes") |
| public void <strong>setInList</strong>(java.util.List inList)</h4> |
| <p> |
| <DL><DT><B>Parameters:</B></DT><DD><code>inList</code> - The inList to set.</DD></DL></p> |
| </li> |
| </ul> |
| |
| <a name="setMatches(java.lang.String)"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public void <strong>setMatches</strong>(java.lang.String regex)</h4> |
| <p> |
| <DL><DT><B>Parameters:</B></DT><DD><code>regex</code> - The matches to set.</DD></DL></p> |
| </li> |
| </ul> |
| |
| <a name="setMax(java.lang.Comparable)"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>@java.lang.SuppressWarnings("rawtypes") |
| public void <strong>setMax</strong>(java.lang.Comparable max)</h4> |
| <p> |
| <DL><DT><B>Parameters:</B></DT><DD><code>max</code> - The max to set.</DD></DL></p> |
| </li> |
| </ul> |
| |
| <a name="setMaxSize(java.lang.Integer)"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public void <strong>setMaxSize</strong>(java.lang.Integer maxSize)</h4> |
| <p> |
| <DL><DT><B>Parameters:</B></DT><DD><code>maxSize</code> - The maxSize to set.</DD></DL></p> |
| </li> |
| </ul> |
| |
| <a name="setMessageSource(org.springframework.context.MessageSource)"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public void <strong>setMessageSource</strong>(org.springframework.context.MessageSource source)</h4> |
| <p> The message source used to evaluate error messages |
| <DL><DT><B>Parameters:</B></DT><DD><code>source</code> - The MessageSource instance to use to resolve messages</DD></DL></p> |
| </li> |
| </ul> |
| |
| <a name="setMin(java.lang.Comparable)"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>@java.lang.SuppressWarnings("rawtypes") |
| public void <strong>setMin</strong>(java.lang.Comparable min)</h4> |
| <p> |
| <DL><DT><B>Parameters:</B></DT><DD><code>min</code> - The min to set.</DD></DL></p> |
| </li> |
| </ul> |
| |
| <a name="setMinSize(java.lang.Integer)"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public void <strong>setMinSize</strong>(java.lang.Integer minSize)</h4> |
| <p> |
| <DL><DT><B>Parameters:</B></DT><DD><code>minSize</code> - The minLength to set.</DD></DL></p> |
| </li> |
| </ul> |
| |
| <a name="setNotEqual(java.lang.Object)"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public void <strong>setNotEqual</strong>(java.lang.Object notEqual)</h4> |
| <p> |
| <DL><DT><B>Parameters:</B></DT><DD><code>notEqual</code> - The notEqual to set.</DD></DL></p> |
| </li> |
| </ul> |
| |
| <a name="setNullable(boolean)"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public void <strong>setNullable</strong>(boolean nullable)</h4> |
| <p> |
| <DL><DT><B>Parameters:</B></DT><DD><code>nullable</code> - The nullable to set.</DD></DL></p> |
| </li> |
| </ul> |
| |
| <a name="setOrder(int)"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public void <strong>setOrder</strong>(int order)</h4> |
| <p> |
| <DL><DT><B>Parameters:</B></DT><DD><code>order</code> - The order to set.</DD></DL></p> |
| </li> |
| </ul> |
| |
| <a name="setPassword(boolean)"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public void <strong>setPassword</strong>(boolean password)</h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="setPropertyName(java.lang.String)"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public void <strong>setPropertyName</strong>(java.lang.String propertyName)</h4> |
| <p> |
| <DL><DT><B>Parameters:</B></DT><DD><code>propertyName</code> - The propertyName to set.</DD></DL></p> |
| </li> |
| </ul> |
| |
| <a name="setRange(groovy.lang.Range)"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>@java.lang.SuppressWarnings("rawtypes") |
| public void <strong>setRange</strong>(groovy.lang.Range range)</h4> |
| <p> |
| <DL><DT><B>Parameters:</B></DT><DD><code>range</code> - The range to set.</DD></DL></p> |
| </li> |
| </ul> |
| |
| <a name="setSize(groovy.lang.Range)"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>@java.lang.SuppressWarnings("rawtypes") |
| public void <strong>setSize</strong>(groovy.lang.Range size)</h4> |
| <p> |
| <DL><DT><B>Parameters:</B></DT><DD><code>size</code> - The size to set.</DD></DL></p> |
| </li> |
| </ul> |
| |
| <a name="setUrl(boolean)"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public void <strong>setUrl</strong>(boolean url)</h4> |
| <p> |
| <DL><DT><B>Parameters:</B></DT><DD><code>url</code> - The url to set.</DD></DL></p> |
| </li> |
| </ul> |
| |
| <a name="setWidget(java.lang.String)"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public void <strong>setWidget</strong>(java.lang.String widget)</h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="supportsContraint(java.lang.String)"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>@java.lang.Override |
| public boolean <strong>supportsContraint</strong>(java.lang.String constraintName)</h4> |
| <p> Checks with this ConstraintedProperty instance supports applying the specified constraint. |
| <DL><DT><B>Parameters:</B></DT><DD><code>constraintName</code> - The name of the constraint</DD></DL><DL><DT><B>Returns:</B></DT><DD>true if the constraint is supported</DD></DL></p> |
| </li> |
| </ul> |
| |
| <a name="toString()"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>@java.lang.Override |
| public java.lang.String <strong>toString</strong>()</h4> |
| <p></p> |
| </li> |
| </ul> |
| |
| <a name="validate(java.lang.Object, java.lang.Object, org.springframework.validation.Errors)"><!-- --></a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>public void <strong>validate</strong>(java.lang.Object target, java.lang.Object propertyValue, org.springframework.validation.Errors errors)</h4> |
| <p> Validate this constrainted property against specified property value |
| <DL><DT><B>Parameters:</B></DT><DD><code>target</code> - The target object to validate</DD><DD><code>propertyValue</code> - The value of the property to validate</DD><DD><code>errors</code> - The Errors instances to report errors to</DD></DL></p> |
| </li> |
| </ul> |
| |
| </li> |
| </ul> |
| |
| </li> |
| </ul> |
| </div> |
| |
| <!-- ========= END OF CLASS DATA ========= --> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a name="navbar_bottom"> |
| <!-- --> |
| </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../index-all.html">Index</a></li> |
| <li><a href="../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| |
| <div class="subNav"> |
| <div> |
| <ul class="navList"> |
| <li><a href="../../index.html?grails/validation/ConstrainedProperty" target="_top">Frames</a></li> |
| <li><a href="ConstrainedProperty.html" target="_top">No Frames</a></li> |
| </ul> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| Nested <li><a href="#field_summary">Field</a></li> <li><a href="#constructor_summary">Constructor</a></li> <li><a href="#method_summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li> | Detail: </li> |
| <li><a href="#field_detail">Field</a></li> <li><a href="#constructor_detail">Constructor</a></li> <li><a href="#method_detail">Method</a></li> |
| </ul> |
| </div> |
| <p>Groovy Documentation</p> |
| <a name="skip-navbar_bottom"> |
| <!-- --> |
| </a> |
| </div> |
| </div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| </body> |
| </html> |