Package com.inet.report.parser
Interface NodeParser
-
- All Known Implementing Classes:
AbstractFontElement,AbstractLineElement,AbstractPictureElement,AbstractValueElement,Area,Box,BySummaryOrder,CascadingValueProvider,Chart2,CrossTab,CrossTabBodyCell,CrossTabDescriptionSection,CrossTabHeader,DatabaseField,DatabasePicture,Element,Engine,FacturXSettings,Field,FieldElement,FieldPart,Fields.UnknownField,FieldValueProvider,FormulaField,Group,GroupField,JavaBean,Join,Line,Paragraph,Picture,PromptField,QueryValueProvider,Region,ReportComponent,ReportProperties,Section,SignatureForm,SortField,SpecialField,SpecifiedOrder,SQLField,SQLValueProvider,Subreport,SubreportLink,SummaryField,TableSource,Text,TextPart
public interface NodeParserInterface for report components which are to be able to parse XML nodes. This interface is only for internal use of i-net Clear Reports.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisDOMParser()Internal method for reading report XMLvoidparseDOM(org.w3c.dom.Node node, java.util.Map<java.lang.String,java.lang.Object> parserMap)Internal method for reading report XMLNodeParserparseElement(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 XMLvoidparseEndElement(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 XMLvoidparseText(java.lang.String text, java.util.Map<java.lang.String,java.lang.Object> parserMap)Internal method for reading report XML
-
-
-
Method Detail
-
parseElement
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
Internal method for reading report XMLParses 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.
- Parameters:
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.- Returns:
- The NodeParser sub-element if one needed to be created, or null if none was created.
- Throws:
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.- Since:
- 8.0
-
parseText
void parseText(java.lang.String text, java.util.Map<java.lang.String,java.lang.Object> parserMap)Internal method for reading report XMLThis 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)
- Parameters:
text- text encountered and to be storedparserMap- The map of current Parser.- Since:
- 8.0
-
parseEndElement
void parseEndElement(com.inet.report.parser.XMLTag group, java.lang.String tag, java.util.Map<java.lang.String,java.lang.Object> parserMap) throws FatalParserExceptionInternal method for reading report XMLReceive notification of the end of an XML tag.
- Parameters:
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.- Throws:
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.- Since:
- 8.0
-
isDOMParser
boolean isDOMParser()
Internal method for reading report XMLReturns whether this node is to be read via a DOM parser.
- Returns:
- true if this node is to be read via a DOM parser, false otherwise.
- Since:
- 8.0
-
parseDOM
void parseDOM(org.w3c.dom.Node node, java.util.Map<java.lang.String,java.lang.Object> parserMap) throws FatalParserExceptionInternal method for reading report XMLParses the node.
- Parameters:
node- the nodeparserMap- The map of current Parser.- Throws:
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.- Since:
- 8.0
-
-