public abstract class AbstractPrimitiveTypeRule extends RuleSupport<String> implements PrimitiveTypeRule
Constructor and Description |
---|
AbstractPrimitiveTypeRule() |
Modifier and Type | Method and Description |
---|---|
String |
correct(String value)
Optionally performs an automatic correction on given data to make it
conform (eg trims leading whitespace).
|
boolean |
test(String value)
Tests the given string against the criteria defined by this
rule -- returns true if it passes the test, false otherwise.
|
failed, failed, failed, failed, failedWithValue, getDescription, getErrorCode, getSectionReference, getSeverity, passed, result, result, setDescription, setErrorCode, setSectionReference, setSeverity
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply, getDescription, getSectionReference
public AbstractPrimitiveTypeRule()
public boolean test(String value)
PrimitiveTypeRule
test
in interface PrimitiveTypeRule
public String correct(String value)
PrimitiveTypeRule
correct
in interface PrimitiveTypeRule
value
- an original value to be correctedCopyright © 2001–2017 University Health Network. All rights reserved.