|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.uhn.hl7v2.util.ParseTester
public class ParseTester
Tests correctness of message parsing by testing equivalence of re-encoded form with original.
| Nested Class Summary | |
|---|---|
static class |
ParseTester.CommentFilterReader
Deprecated. Removes C and C++ style comments from a reader stream. |
| Constructor Summary | |
|---|---|
ParseTester()
Deprecated. Creates a new instance of ParseTester |
|
| Method Summary | |
|---|---|
String |
getNextMessage()
Deprecated. Retrieves the next message (setSource() must be called first). |
static void |
main(String[] args)
Deprecated. Command line tool for testing messages in files. |
static HL7Exception |
parsesCorrectly(String context,
String message)
Deprecated. Checks whether the given message parses correctly with a GenericParser. |
void |
setContext(String description)
Deprecated. Sets a description of the context of the messages (e.g. |
void |
setSource(Reader source)
Deprecated. Sets the source of message data (messages must be delimited by blank lines) |
HL7Exception[] |
testAll()
Deprecated. Tests all remaining messages available from the currrent source. |
HL7Exception[] |
testAll(File source)
Deprecated. Sets the source reader to point to the given file, and tests all the messages therein (if a directory, processes all contained files recursively). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ParseTester()
| Method Detail |
|---|
public static HL7Exception parsesCorrectly(String context,
String message)
message - an XML or ER7 encoded message string
public void setSource(Reader source)
public void setContext(String description)
public HL7Exception[] testAll(File source)
throws IOException
IOException
public HL7Exception[] testAll()
throws IOException
IOException
public String getNextMessage()
throws IOException
IOExceptionpublic static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||