PrimitiveRuleBuilder.leftTrim()
insteadpublic class TrimTrailingWhitespace extends AbstractPrimitiveTypeRule
Constructor and Description |
---|
TrimTrailingWhitespace()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
ValidationException[] |
apply(String value)
Deprecated.
Applies to rule to an object to be checked
|
String |
correct(String value)
Deprecated.
Removes leading whitespace.
|
String |
getDescription()
Deprecated.
Returns a text description of the rule.
|
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 TrimTrailingWhitespace()
public String correct(String value)
correct
in interface PrimitiveTypeRule
correct
in class AbstractPrimitiveTypeRule
value
- an original value to be correctedPrimitiveTypeRule.correct(java.lang.String)
public ValidationException[] apply(String value)
Rule
value
- object to be checkedpublic String getDescription()
Rule
getDescription
in interface Rule<String>
getDescription
in class RuleSupport<String>
Rule.getDescription()
Copyright © 2001–2017 University Health Network. All rights reserved.