public class FunctionsWriter extends AbstractXMLDefinitionWriter
Modifier and Type | Field and 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 |
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 and Description |
---|
FunctionsWriter(ReportWriterContext reportWriter,
org.pentaho.reporting.libraries.xmlns.writer.XmlWriter indentLevel)
Creates a new writer.
|
Modifier and Type | Method and 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) |
public static final String FUNCTION_TAG
public static final String EXPRESSION_TAG
public static final String STYLE_EXPRESSION_TAG
public static final String PROPERTY_REF_TAG
public FunctionsWriter(ReportWriterContext reportWriter, org.pentaho.reporting.libraries.xmlns.writer.XmlWriter indentLevel)
reportWriter
- the report writer.indentLevel
- the current indention level.public void write() throws IOException, ReportWriterException
write
in class AbstractXMLDefinitionWriter
IOException
- if there is an I/O problem.ReportWriterException
- if the report function definition could not be written.public void writeExpressions(ExpressionCollection exp) throws IOException
exp
- the collection.IOException
- if there is an I/O problem.public void writeStyleExpression(Expression expression, StyleKey styleKey) throws IOException
IOException