|
|||||||||
| 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 ConformanceProfileRules.
| 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 MessageRuleMessageRule.test(ca.uhn.hl7v2.model.Message)public java.lang.String getDescription()
Rule
getDescription in interface RuleRule.getDescription()public java.lang.String getSectionReference()
Rule
getSectionReference in interface RuleRule.getSectionReference()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||