ca.uhn.hl7v2.protocol.impl
Class ParseChecker

java.lang.Object
  extended by ca.uhn.hl7v2.protocol.impl.ParseChecker

public class ParseChecker
extends java.lang.Object

A debugging utility that logs raw messages and parsed/encoded versions, and warnings about apparent discrepancies between them. This information is all logged to HapiLog under the name of this class, at the "info" level.

Version:
$Revision: 1.1 $ updated on $Date: 2007/02/19 02:24:26 $ by $Author: jamesagnew $
Author:
Bryan Tripp

Constructor Summary
ParseChecker()
           
 
Method Summary
static void checkParse(java.lang.String originalMessageText, Message parsedMessage, Parser parser)
          Encodes the given message and compares it to the given string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParseChecker

public ParseChecker()
Method Detail

checkParse

public static void checkParse(java.lang.String originalMessageText,
                              Message parsedMessage,
                              Parser parser)
                       throws HL7Exception,
                              java.io.IOException
Encodes the given message and compares it to the given string. Any differences are noted in the file [hapi.home]/parse_check.txt. Ignores extra field delimiters.

Throws:
HL7Exception
java.io.IOException


Copyright © 2001-2011 University Health Network. All Rights Reserved.