public class ParseTester extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ParseTester.CommentFilterReader
Deprecated.
Removes C and C++ style comments from a reader stream.
|
| Constructor and Description |
|---|
ParseTester()
Deprecated.
Creates a new instance of ParseTester
|
| Modifier and Type | Method and Description |
|---|---|
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).
|
public ParseTester()
public static HL7Exception parsesCorrectly(String context, String message)
message - an XML or ER7 encoded message stringpublic void setSource(Reader source)
public void setContext(String description)
public HL7Exception[] testAll(File source) throws IOException
IOExceptionpublic HL7Exception[] testAll() throws IOException
IOExceptionpublic String getNextMessage() throws IOException
IOExceptionCopyright © 2001-2013 University Health Network. All Rights Reserved.