|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.uhn.hl7v2.validation.impl.ConformanceProfileRule
public class ConformanceProfileRule
A MessageRule that checks conformance to message profiles. Messges can either be tested
agaist the profiles they declare, or against a pre-defined profile. If you want both,
use two ConformanceProfileRule
s.
Constructor Summary | |
---|---|
ConformanceProfileRule()
Creates an instance that tests messages against whatever profiles they declare in MSH-21. |
|
ConformanceProfileRule(java.lang.String theProfileID)
|
Method Summary | |
---|---|
java.lang.String |
getDescription()
Returns a text description of the rule. |
java.lang.String |
getSectionReference()
A string indicating the section of the HL7 standard from which this rule is derived (if applicable). |
ValidationException[] |
test(Message msg)
Tests the given (fully populated) message against the criteria defined by this rule class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConformanceProfileRule()
public ConformanceProfileRule(java.lang.String theProfileID)
theProfileID
- the ID of a constant profile against which to test all messages
(instead of the profiles they declare in MSH-21)Method Detail |
---|
public ValidationException[] test(Message msg)
MessageRule
test
in interface MessageRule
MessageRule.test(ca.uhn.hl7v2.model.Message)
public java.lang.String getDescription()
Rule
getDescription
in interface Rule
Rule.getDescription()
public java.lang.String getSectionReference()
Rule
getSectionReference
in interface Rule
Rule.getSectionReference()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |