Class OnlyAllowableSegmentsInSuperstructureRule
java.lang.Object
ca.uhn.hl7v2.validation.impl.RuleSupport<Message>
ca.uhn.hl7v2.validation.impl.AbstractMessageRule
ca.uhn.hl7v2.validation.builder.support.OnlyAllowableSegmentsInSuperstructureRule
- All Implemented Interfaces:
MessageRule,Rule<Message>,Serializable
Validation rule for detecting populated elements in a
SuperStructure
which do not belong to the given message type- Author:
- James Agnew
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
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
-
Field Details
-
ONLY_ALLOWABLE_SEGMENTS
-
-
Constructor Details
-
OnlyAllowableSegmentsInSuperstructureRule
-
-
Method Details
-
apply
Description copied from interface:RuleApplies to rule to an object to be checked- Parameters:
msg- object to be checked- Returns:
- an (potentially empty) array of ValidationExceptions
-