|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pentaho.reporting.engine.classic.core.function.AbstractExpression
org.pentaho.reporting.engine.classic.core.function.AbstractFunction
org.pentaho.reporting.engine.classic.core.modules.output.xml.XMLWriter
public class XMLWriter
The XMLWriter is the content creation function used to create the XML content. This implementation does no layouting, the bands and elements are written in the defined order.
The xml writer is intended as simple example on how to write OutputFunctions, the XML-code generated is very simple and easy to understand. If you seek complexer XML-Outputs, have a look at the HTML-Writer, this implementation is able to write XHTML output.
Constructor Summary | |
---|---|
XMLWriter()
Deprecated. Creates a new XMLWriter function. |
Method Summary | |
---|---|
void |
clearInlineSubreports(SubReportProcessType inlineExecution)
Deprecated. |
Object |
clone()
Deprecated. Clones the expression. |
boolean |
createRollbackInformation()
Deprecated. |
OutputFunction |
deriveForPagebreak()
Deprecated. This method simply clones the function. |
OutputFunction |
deriveForStorage()
Deprecated. This method simply clones the function. |
int |
getDependencyLevel()
Deprecated. The dependency level defines the level of execution for this function. |
InlineSubreportMarker[] |
getInlineSubreports()
Deprecated. |
Object |
getValue()
Deprecated. Return the self reference of this writer. |
Writer |
getWriter()
Deprecated. returns the assigned writer for the output. |
void |
groupFinished(ReportEvent event)
Deprecated. Writes the footer of the current group. |
void |
groupStarted(ReportEvent event)
Deprecated. Writes the header of the current group. |
void |
itemsAdvanced(ReportEvent event)
Deprecated. Writes the itemband. |
void |
itemsFinished(ReportEvent event)
Deprecated. Closes the itemband section. |
void |
itemsStarted(ReportEvent event)
Deprecated. Starts the itembands section. |
void |
reportFinished(ReportEvent event)
Deprecated. Writes the report footer. |
void |
reportStarted(ReportEvent event)
Deprecated. Writes the report header. |
void |
restart(ReportState state)
Deprecated. |
void |
setDependencyLevel(int deplevel)
Deprecated. Overrides the depency level. |
void |
setWriter(Writer w)
Deprecated. Defines the writer for the XML-output. |
Methods inherited from class org.pentaho.reporting.engine.classic.core.function.AbstractFunction |
---|
reportDone, reportInitialized |
Methods inherited from class org.pentaho.reporting.engine.classic.core.function.AbstractExpression |
---|
getDataRow, getInstance, getName, getReportConfiguration, getResourceBundleFactory, getRuntime, isActive, isDeepTraversing, isPreserve, setActive, setName, setPreserve, setRuntime |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.pentaho.reporting.engine.classic.core.event.ReportListener |
---|
reportDone, reportInitialized |
Methods inherited from interface org.pentaho.reporting.engine.classic.core.function.Expression |
---|
getDataRow, getInstance, getName, getReportConfiguration, getResourceBundleFactory, getRuntime, isActive, isDeepTraversing, isPreserve, setName, setRuntime |
Constructor Detail |
---|
public XMLWriter()
Method Detail |
---|
public Writer getWriter()
public void setWriter(Writer w)
w
- the writer.public void reportStarted(ReportEvent event)
reportStarted
in interface ReportListener
reportStarted
in class AbstractFunction
event
- the event.public void reportFinished(ReportEvent event)
reportFinished
in interface ReportListener
reportFinished
in class AbstractFunction
event
- the event.public void groupStarted(ReportEvent event)
groupStarted
in interface ReportListener
groupStarted
in class AbstractFunction
event
- the event.public void groupFinished(ReportEvent event)
groupFinished
in interface ReportListener
groupFinished
in class AbstractFunction
event
- the event.public void itemsAdvanced(ReportEvent event)
itemsAdvanced
in interface ReportListener
itemsAdvanced
in class AbstractFunction
event
- the event.public void itemsStarted(ReportEvent event)
The next events will be itemsAdvanced events until the itemsFinished event is raised.
itemsStarted
in interface ReportListener
itemsStarted
in class AbstractFunction
event
- The event.public void itemsFinished(ReportEvent event)
The itemBand is finished, the report starts to close open groups.
itemsFinished
in interface ReportListener
itemsFinished
in class AbstractFunction
event
- The event.public Object getValue()
getValue
in interface Expression
public int getDependencyLevel()
getDependencyLevel
in interface Expression
getDependencyLevel
in class AbstractExpression
public void setDependencyLevel(int deplevel)
setDependencyLevel
in interface Expression
setDependencyLevel
in class AbstractExpression
deplevel
- the new depency level.public OutputFunction deriveForStorage()
deriveForStorage
in interface OutputFunction
public OutputFunction deriveForPagebreak()
deriveForPagebreak
in interface OutputFunction
public Object clone() throws CloneNotSupportedException
Expressions maintain no state, cloning is done at the beginning of the report processing to disconnect the expression from any other object space.
clone
in interface Expression
clone
in class AbstractExpression
CloneNotSupportedException
- this should never happen.public InlineSubreportMarker[] getInlineSubreports()
getInlineSubreports
in interface OutputFunction
public void clearInlineSubreports(SubReportProcessType inlineExecution)
clearInlineSubreports
in interface OutputFunction
public void restart(ReportState state)
restart
in interface OutputFunction
public boolean createRollbackInformation()
createRollbackInformation
in interface OutputFunction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |