Class VisitorMessageRule
java.lang.Object
ca.uhn.hl7v2.validation.impl.RuleSupport<Message>
ca.uhn.hl7v2.validation.impl.AbstractMessageRule
ca.uhn.hl7v2.validation.builder.support.VisitorMessageRule
- All Implemented Interfaces:
MessageRule,Rule<Message>,Serializable
A message rule that runs a
ValidatingMessageVisitor over the message,
collecting exceptions while traversing- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionVisitorMessageRule(MessageVisitorFactory<? extends ValidatingMessageVisitor> visitorFactory) -
Method Summary
Modifier and TypeMethodDescriptionApplies to rule to an object to be checkedMethods inherited from class ca.uhn.hl7v2.validation.impl.AbstractMessageRule
testMethods 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
getDescription, getSectionReference
-
Constructor Details
-
VisitorMessageRule
-
-
Method Details
-
apply
Description copied from interface:RuleApplies to rule to an object to be checked- Parameters:
message- object to be checked- Returns:
- an (potentially empty) array of ValidationExceptions
-