public interface NodeParser
Modifier and Type | Method and Description |
---|---|
boolean |
isDOMParser()
Internal method for reading report XML
Returns whether this node is to be read via a DOM parser.
|
void |
parseDOM(org.w3c.dom.Node node,
java.util.Map<java.lang.String,java.lang.Object> parserMap)
Internal method for reading report XML
Parses the node.
|
NodeParser |
parseElement(com.inet.report.parser.XMLTag group,
java.lang.String tag,
org.xml.sax.Attributes atts,
java.util.Map<java.lang.String,java.lang.Object> parserMap)
Internal method for reading report XML
Parses an XML node with the given information, and returns either a sub-element which was created as a result, or null
if no sub-element was created, i.e. the information was applied to the ReportComponent itself.
|
void |
parseEndElement(com.inet.report.parser.XMLTag group,
java.lang.String tag,
java.util.Map<java.lang.String,java.lang.Object> parserMap)
Internal method for reading report XML
Receive notification of the end of an XML tag.
|
void |
parseText(java.lang.String text,
java.util.Map<java.lang.String,java.lang.Object> parserMap)
Internal method for reading report XML
This method is called if text was encountered in the context of this node.
|
NodeParser parseElement(com.inet.report.parser.XMLTag group, java.lang.String tag, org.xml.sax.Attributes atts, java.util.Map<java.lang.String,java.lang.Object> parserMap) throws FatalParserException
Parses an XML node with the given information, and returns either a sub-element which was created as a result, or null if no sub-element was created, i.e. the information was applied to the ReportComponent itself. Note that the parsing is highly tolerant, i.e. exceptions are intercepted and suppressed if at all possible.
group
- XMLTag of the current node to be parsed, or null if there is no such current group. An XMLTag is a group
of nodes bundled together, usually it is a Properties node such as CommonProperties, BorderProperties, etc.tag
- The XMLTag to be parsedatts
- The set of attributes in the current XMLTagparserMap
- The map of current Parser.FatalParserException
- if an exception occurs which causes the report to not be able to be read: causes the abortion of the
reading of the report.void parseText(java.lang.String text, java.util.Map<java.lang.String,java.lang.Object> parserMap)
This method is called if text was encountered in the context of this node. (Examples would be a formula's text or a text element's text)
text
- text encountered and to be storedparserMap
- The map of current Parser.void parseEndElement(com.inet.report.parser.XMLTag group, java.lang.String tag, java.util.Map<java.lang.String,java.lang.Object> parserMap) throws FatalParserException
Receive notification of the end of an XML tag.
group
- XMLTag of the current node to be parsed, or null if there is no such current group.tag
- The XMLTag to be parsedparserMap
- The map of current Parser.FatalParserException
- if an exception occurs which causes the report to not be able to be read: causes the abortion of the
reading of the report.boolean isDOMParser()
Returns whether this node is to be read via a DOM parser.
void parseDOM(org.w3c.dom.Node node, java.util.Map<java.lang.String,java.lang.Object> parserMap) throws FatalParserException
Parses the node.
node
- the nodeparserMap
- The map of current Parser.FatalParserException
- if an exception occurs which causes the report to not be able to be read: causes the abortion of the
reading of the report.Copyright © 1999-2020 by i-net software GmbH