Class WrongVersionRule
java.lang.Object
ca.uhn.hl7v2.validation.impl.RuleSupport<Message>
ca.uhn.hl7v2.validation.impl.AbstractMessageRule
ca.uhn.hl7v2.validation.builder.support.WrongVersionRule
- All Implemented Interfaces:
MessageRule,Rule<Message>,Serializable
Validation rule for blaming a wring HL7 version
- Author:
- Christian Ohr
- 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
-
WRONG_VERSION
-
-
Constructor Details
-
WrongVersionRule
public WrongVersionRule()
-
-
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
-