Class ChoiceElementsRespectedRule
java.lang.Object
ca.uhn.hl7v2.validation.impl.RuleSupport<Message>
ca.uhn.hl7v2.validation.impl.AbstractMessageRule
ca.uhn.hl7v2.validation.builder.support.ChoiceElementsRespectedRule
- All Implemented Interfaces:
MessageRule,Rule<Message>,Serializable
Message rule which enforces that only one "choice element" within any groups
in the message must only have content within one of the possible choices.
- 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
-
CHOICE_ELEMENTS_RESPECTED
Singleton instance
-
-
Constructor Details
-
ChoiceElementsRespectedRule
public ChoiceElementsRespectedRule()
-
-
Method Details
-
apply
Description copied from interface:RuleApplies to rule to an object to be checked- Parameters:
theValue- object to be checked- Returns:
- an (potentially empty) array of ValidationExceptions
-