Package ca.uhn.hl7v2.validation.impl
Class RegexPrimitiveRule
java.lang.Object
ca.uhn.hl7v2.validation.impl.RuleSupport<String>
ca.uhn.hl7v2.validation.impl.AbstractPrimitiveTypeRule
ca.uhn.hl7v2.validation.impl.RegexPrimitiveRule
- All Implemented Interfaces:
PrimitiveTypeRule,Rule<String>,Serializable
Deprecated.
A
PrimitiveTypeRule that validates primitive values using a regular expression.- Version:
- $Revision: 1.1 $ updated on $Date: 2007-02-19 02:24:40 $ by $Author: jamesagnew $
- Author:
- Bryan Tripp
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Empty string, null, and the HL7 explicit null (two double-quotes) are passed.Deprecated.Returns a text description of the rule.Deprecated.Returns a string indicating the section of the HL7 standard from which this rule is derived (if applicable).Methods inherited from class ca.uhn.hl7v2.validation.impl.AbstractPrimitiveTypeRule
correct, testMethods inherited from class ca.uhn.hl7v2.validation.impl.RuleSupport
failed, failed, failed, failed, failedWithValue, getErrorCode, getSeverity, passed, result, result, setDescription, setErrorCode, setSectionReference, setSeverity
-
Constructor Details
-
RegexPrimitiveRule
Deprecated.- Parameters:
theRegex- a regular expression against which to validate primitive valuestheSectionReference- to be returned bygetSectionReference()
-
-
Method Details
-
apply
Deprecated.Empty string, null, and the HL7 explicit null (two double-quotes) are passed.- Parameters:
value- object to be checked- Returns:
- an (potentially empty) array of ValidationExceptions
-
getDescription
Deprecated.Description copied from interface:RuleReturns a text description of the rule. This description may be used as a message in exceptions generated if validation against the rule fails, or in a user interface for rule configuration.- Specified by:
getDescriptionin interfaceRule<String>- Overrides:
getDescriptionin classRuleSupport<String>- Returns:
- rule description
- See Also:
-
getSectionReference
Deprecated.Description copied from interface:RuleReturns a string indicating the section of the HL7 standard from which this rule is derived (if applicable). Like the description, this may be used in an exception message or configuration UI.- Specified by:
getSectionReferencein interfaceRule<String>- Overrides:
getSectionReferencein classRuleSupport<String>- Returns:
- HL7 specification section reference
- See Also:
-
BuilderSupport.matches(String)instead