|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.uhn.hl7v2.validation.app.TestApplication
ca.uhn.hl7v2.validation.app.ProfileTestApplication
public class ProfileTestApplication
Tests messages against conformance profiles. A constant profile can be used, or each message can be tested against the profiles that it declares.
Note that profiles are referenced by ID, and that the ca.uhn.hl7v2.conf.store package is used to get the actual profiles.
Constructor Summary | |
---|---|
ProfileTestApplication()
Creates a new instance of ProfileTestApplication that tests using profiles declared in each message (if any) |
|
ProfileTestApplication(java.lang.String profileID)
Creates a new instance of ProfileTestApplication. |
Method Summary | |
---|---|
boolean |
canProcess(Message in)
Returns true if this Application wishes to accept the message. |
java.lang.String |
getProfileID()
|
HL7Exception[] |
test(Message in)
Tests the message against a profile or profiles. |
Methods inherited from class ca.uhn.hl7v2.validation.app.TestApplication |
---|
processMessage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProfileTestApplication()
public ProfileTestApplication(java.lang.String profileID)
profileID
- the ID of the profile against which to test messages;
null means use profiles declared in the message (if any)Method Detail |
---|
public boolean canProcess(Message in)
canProcess
in interface Application
canProcess
in class TestApplication
public HL7Exception[] test(Message in) throws HL7Exception
test
in class TestApplication
HL7Exception
- if the message can't be tested (not for errors disovered
during testing)public java.lang.String getProfileID()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |