BuilderSupport.matches(String) insteadpublic class RegexPrimitiveRule extends AbstractPrimitiveTypeRule
PrimitiveTypeRule that validates primitive values using a regular expression.| Constructor and Description |
|---|
RegexPrimitiveRule(String theRegex,
String theSectionReference)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
ValidationException[] |
apply(String value)
Deprecated.
Empty string, null, and the HL7 explicit null (two double-quotes) are passed.
|
String |
getDescription()
Deprecated.
Returns a text description of the rule.
|
String |
getSectionReference()
Deprecated.
Returns a string indicating the section of the HL7 standard from which this rule
is derived (if applicable).
|
correct, testfailed, failed, failed, failed, failedWithValue, getErrorCode, getSeverity, passed, result, result, setDescription, setErrorCode, setSectionReference, setSeveritypublic RegexPrimitiveRule(String theRegex, String theSectionReference)
theRegex - a regular expression against which to validate primitive valuestheSectionReference - to be returned by getSectionReference()public ValidationException[] apply(String value)
value - object to be checkedpublic String getDescription()
RulegetDescription in interface Rule<String>getDescription in class RuleSupport<String>Rule.getDescription()public String getSectionReference()
RulegetSectionReference in interface Rule<String>getSectionReference in class RuleSupport<String>Rule.getSectionReference()Copyright © 2001–2017 University Health Network. All rights reserved.