public class ProfileTestApplication extends TestApplication
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 and Description |
|---|
ProfileTestApplication()
Deprecated.
Creates a new instance of ProfileTestApplication that tests using profiles
declared in each message (if any)
|
ProfileTestApplication(String profileID)
Deprecated.
Creates a new instance of ProfileTestApplication.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canProcess(Message in)
Deprecated.
Returns true if this Application wishes to accept the message.
|
String |
getProfileID()
Deprecated.
|
HL7Exception[] |
test(Message in)
Deprecated.
Tests the message against a profile or profiles.
|
processMessagepublic ProfileTestApplication()
public ProfileTestApplication(String profileID)
profileID - the ID of the profile against which to test messages;
null means use profiles declared in the message (if any)public boolean canProcess(Message in)
canProcess in interface ApplicationcanProcess in class TestApplicationpublic HL7Exception[] test(Message in) throws HL7Exception
test in class TestApplicationHL7Exception - if the message can't be tested (not for errors disovered
during testing)public String getProfileID()
Copyright © 2001-2012 University Health Network. All Rights Reserved.