protected static class XML.HL7MessageHandler extends org.xml.sax.helpers.DefaultHandler
| Modifier and Type | Field and Description |
|---|---|
Collection<DatumPath> |
m_msgMask
Specifies what parts of a message should be dumped to m_props.
|
Properties |
m_props
The 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 |
|---|
XML.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 XML.HL7MessageHandler()
public void startDocument() throws SAXException
startDocument in interface ContentHandlerstartDocument in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void endDocument() throws SAXException
endDocument in interface ContentHandlerendDocument in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement in interface ContentHandlerstartElement in class org.xml.sax.helpers.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 org.xml.sax.helpers.DefaultHandlerSAXExceptionprotected void tryToDumpDataToProps()
public void characters(char[] chars, int start, int length)
characters in interface ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerpublic void ignoreableWhitespace(char[] chars, int start, int length)
public void error(SAXParseException e)
error in interface ErrorHandlererror in class org.xml.sax.helpers.DefaultHandlerpublic void fatalError(SAXParseException e) throws SAXException
fatalError in interface ErrorHandlerfatalError in class org.xml.sax.helpers.DefaultHandlerSAXExceptionCopyright © 2001-2013 University Health Network. All Rights Reserved.