Package ca.uhn.hl7v2.validation.impl
Class AbstractMessageRule
- All Implemented Interfaces:
MessageRule,Rule<Message>,Serializable
- Direct Known Subclasses:
ChoiceElementsRespectedRule,ConformanceProfileRule,OnlyAllowableSegmentsInSuperstructureRule,OnlyKnownSegmentsRule,PredicateMessageRule,VisitorMessageRule,WrongVersionRule
Abstract base class for message rules
- Author:
- Christian Ohr
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTests the given (fully populated) message against the criteria defined by this rule class.Methods inherited from class ca.uhn.hl7v2.validation.impl.RuleSupport
failed, failed, failed, failed, failedWithValue, getDescription, getErrorCode, getSectionReference, getSeverity, passed, result, result, setDescription, setErrorCode, setSectionReference, setSeverityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ca.uhn.hl7v2.validation.Rule
apply, getDescription, getSectionReference
-
Constructor Details
-
AbstractMessageRule
public AbstractMessageRule()
-
-
Method Details
-
test
Description copied from interface:MessageRuleTests the given (fully populated) message against the criteria defined by this rule class.- Specified by:
testin interfaceMessageRule- Parameters:
msg- message to be tested- Returns:
- a list of exceptions indicating points at which the given message failed to validate (empty if validation succeeds; may not be a complete list as testing may be aborted after failure). The list should be empty if this rule is evaluated against a type of message to which it doesn't apply.
-