protected static class XML.HL7MessageHandler extends 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 |
---|
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, warning
public Properties m_props
public Collection<DatumPath> m_msgMask
protected boolean m_startedDocument
public HL7MessageHandler()
public void startDocument() throws SAXException
startDocument
in interface ContentHandler
startDocument
in class DefaultHandler
SAXException
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
endDocument
in class DefaultHandler
SAXException
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
SAXException
protected 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 ContentHandler
endElement
in class DefaultHandler
SAXException
protected void tryToDumpDataToProps()
public void characters(char[] chars, int start, int length)
characters
in interface ContentHandler
characters
in class DefaultHandler
public void ignoreableWhitespace(char[] chars, int start, int length)
public void error(SAXParseException e)
error
in interface ErrorHandler
error
in class DefaultHandler
public void fatalError(SAXParseException e) throws SAXException
fatalError
in interface ErrorHandler
fatalError
in class DefaultHandler
SAXException
Copyright © 2001–2017 University Health Network. All rights reserved.