BuilderSupport#maxLength() insteadpublic class SizeRule extends AbstractPrimitiveTypeRule
| Constructor and Description |
|---|
SizeRule(int theMaxChars)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
ValidationException[] |
apply(String value)
Deprecated.
Applies to rule to an object to be checked
|
String |
getDescription()
Deprecated.
Returns a text description of the rule.
|
correct, testfailed, failed, failed, failed, failedWithValue, getErrorCode, getSectionReference, getSeverity, passed, result, result, setDescription, setErrorCode, setSectionReference, setSeverityclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSectionReferencepublic SizeRule(int theMaxChars)
theMaxChars - the maximum number of characters this rule allows in a primitive valuepublic ValidationException[] apply(String value)
Rulevalue - object to be checkedRule.apply(java.lang.Object)public String getDescription()
RulegetDescription in interface Rule<String>getDescription in class RuleSupport<String>Rule.getDescription()Copyright © 2001–2017 University Health Network. All rights reserved.