protected static class XML.HL7MessageHandler extends DefaultHandler
| Modifier and Type | Field and Description | 
|---|---|
| Collection<DatumPath> | m_msgMaskSpecifies what parts of a message should be dumped to m_props. | 
| Properties | m_propsThe data that is found while parsing, and which passes m_msgMask, 
                will be dumped to m_props, as (DatumPath.toString() / text) key/value
                pairs | 
| protected boolean | m_startedDocument | 
| Constructor and Description | 
|---|
| HL7MessageHandler() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | characters(char[] chars,
          int start,
          int length) | 
| void | endDocument() | 
| void | endElement(String uri,
          String localName,
          String qName) | 
| void | error(SAXParseException e) | 
| void | fatalError(SAXParseException e) | 
| void | ignoreableWhitespace(char[] chars,
                    int start,
                    int length) | 
| void | startDocument() | 
| void | startElement(String uri,
            String localName,
            String qName,
            Attributes attributes) | 
| protected void | tryToDumpDataToProps()try to dump whatever we've got in m_chars to m_props, 
                with a key of m_curPath.toString(). | 
| protected static boolean | tryToGrowDocLocationFromElementName(StringBuffer msgID,
                                   DatumPath curPath,
                                   Map<String,Integer> segmentId2nextRepIdx,
                                   DatumPath lastDumpedPath,
                                   String elementName) | 
endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warningpublic Properties m_props
public Collection<DatumPath> m_msgMask
protected boolean m_startedDocument
public HL7MessageHandler()
public void startDocument() throws SAXException
startDocument in interface ContentHandlerstartDocument in class DefaultHandlerSAXExceptionpublic void endDocument() throws SAXException
endDocument in interface ContentHandlerendDocument in class DefaultHandlerSAXExceptionpublic void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement in interface ContentHandlerstartElement in class DefaultHandlerSAXExceptionprotected static boolean tryToGrowDocLocationFromElementName(StringBuffer msgID, DatumPath curPath, Map<String,Integer> segmentId2nextRepIdx, DatumPath lastDumpedPath, String elementName)
public void endElement(String uri, String localName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class DefaultHandlerSAXExceptionprotected void tryToDumpDataToProps()
public void characters(char[] chars, int start, int length)
characters in interface ContentHandlercharacters in class DefaultHandlerpublic void ignoreableWhitespace(char[] chars, int start, int length)
public void error(SAXParseException e)
error in interface ErrorHandlererror in class DefaultHandlerpublic void fatalError(SAXParseException e) throws SAXException
fatalError in interface ErrorHandlerfatalError in class DefaultHandlerSAXExceptionCopyright © 2001–2017 University Health Network. All rights reserved.