Package ca.uhn.hl7v2.validation.impl
Class RuleSupport<T>
java.lang.Object
ca.uhn.hl7v2.validation.impl.RuleSupport<T>
- All Implemented Interfaces:
Rule<T>,Serializable
- Direct Known Subclasses:
AbstractEncodingRule,AbstractMessageRule,AbstractPrimitiveTypeRule
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ValidationException[]protected ValidationException[]protected ValidationException[]protected ValidationException[]protected ValidationException[]failedWithValue(Object value, Location location) Returns a text description of the rule.Returns a string indicating the section of the HL7 standard from which this rule is derived (if applicable).protected ValidationException[]passed()protected ValidationException[]protected ValidationException[]voidsetDescription(String description) voidsetErrorCode(ErrorCode errorCode) voidsetSectionReference(String sectionReference) voidsetSeverity(Severity severity)
-
Constructor Details
-
RuleSupport
public RuleSupport()
-
-
Method Details
-
result
-
result
-
passed
-
failedWithValue
-
failed
-
failed
-
failed
-
failed
-
getSectionReference
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<T>- Returns:
- HL7 specification section reference
- See Also:
-
getDescription
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<T>- Returns:
- rule description
- See Also:
-
getSeverity
- Returns:
- the severity if this rule fails
-
getErrorCode
- Returns:
- the error code to be used in case the validation failed
-
setSeverity
-
setDescription
-
setSectionReference
-
setErrorCode
-