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, test
failed, failed, failed, failed, failedWithValue, getErrorCode, getSectionReference, getSeverity, passed, result, result, setDescription, setErrorCode, setSectionReference, setSeverity
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSectionReference
public SizeRule(int theMaxChars)
theMaxChars
- the maximum number of characters this rule allows in a primitive valuepublic ValidationException[] apply(String value)
Rule
value
- object to be checkedRule.apply(java.lang.Object)
public String getDescription()
Rule
getDescription
in interface Rule<String>
getDescription
in class RuleSupport<String>
Rule.getDescription()
Copyright © 2001–2017 University Health Network. All rights reserved.