Class FunctionsWriter
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.modules.parser.extwriter.AbstractXMLDefinitionWriter
-
- org.pentaho.reporting.engine.classic.core.modules.parser.extwriter.FunctionsWriter
-
public class FunctionsWriter extends AbstractXMLDefinitionWriter
An XML definition writer that outputs the functions.- Author:
- Thomas Morgner.
-
-
Field Summary
Fields Modifier and Type Field Description static String
EXPRESSION_TAG
The name of the expression tag.static String
FUNCTION_TAG
The name of the function tag.static String
PROPERTY_REF_TAG
The name of the 'property-ref' tag.static String
STYLE_EXPRESSION_TAG
-
Fields inherited from class org.pentaho.reporting.engine.classic.core.modules.parser.extwriter.AbstractXMLDefinitionWriter
BASIC_KEY_TAG, BASIC_OBJECT_TAG, CLASS_ATTRIBUTE, COMPOUND_KEY_TAG, COMPOUND_OBJECT_TAG, CONFIGURATION_TAG, DATASOURCE_TAG, EXTENDS_TAG, FUNCTIONS_TAG, HEIGHT_ATT, NAME_ATTR, OUTPUT_TARGET_TAG, PARSER_CONFIG_TAG, PROPERTIES_TAG, PROPERTY_TAG, REPORT_CONFIG_TAG, REPORT_DEFINITION_TAG, STYLE_TAG, STYLES_TAG, TEMPLATE_TAG, TEMPLATES_TAG, WIDTH_ATT
-
-
Constructor Summary
Constructors Constructor Description FunctionsWriter(ReportWriterContext reportWriter, org.pentaho.reporting.libraries.xmlns.writer.XmlWriter indentLevel)
Creates a new writer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
write()
Writes the functions to XML.void
writeExpressions(ExpressionCollection exp)
Writes a collection of functions/expressions to XML.void
writeStyleExpression(Expression expression, StyleKey styleKey)
-
Methods inherited from class org.pentaho.reporting.engine.classic.core.modules.parser.extwriter.AbstractXMLDefinitionWriter
getReport, getReportWriter, getXmlWriter, hasPublicDefaultConstructor
-
-
-
-
Field Detail
-
FUNCTION_TAG
public static final String FUNCTION_TAG
The name of the function tag.- See Also:
- Constant Field Values
-
EXPRESSION_TAG
public static final String EXPRESSION_TAG
The name of the expression tag.- See Also:
- Constant Field Values
-
STYLE_EXPRESSION_TAG
public static final String STYLE_EXPRESSION_TAG
- See Also:
- Constant Field Values
-
PROPERTY_REF_TAG
public static final String PROPERTY_REF_TAG
The name of the 'property-ref' tag.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FunctionsWriter
public FunctionsWriter(ReportWriterContext reportWriter, org.pentaho.reporting.libraries.xmlns.writer.XmlWriter indentLevel)
Creates a new writer.- Parameters:
reportWriter
- the report writer.indentLevel
- the current indention level.
-
-
Method Detail
-
write
public void write() throws IOException, ReportWriterException
Writes the functions to XML.- Specified by:
write
in classAbstractXMLDefinitionWriter
- Throws:
IOException
- if there is an I/O problem.ReportWriterException
- if the report function definition could not be written.
-
writeExpressions
public void writeExpressions(ExpressionCollection exp) throws IOException
Writes a collection of functions/expressions to XML.- Parameters:
exp
- the collection.- Throws:
IOException
- if there is an I/O problem.
-
writeStyleExpression
public void writeStyleExpression(Expression expression, StyleKey styleKey) throws IOException
- Throws:
IOException
-
-