|
||||||||||
| 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 ReportListenerreportStarted in class AbstractFunctionevent - the event.public void reportFinished(ReportEvent event)
reportFinished in interface ReportListenerreportFinished in class AbstractFunctionevent - the event.public void groupStarted(ReportEvent event)
groupStarted in interface ReportListenergroupStarted in class AbstractFunctionevent - the event.public void groupFinished(ReportEvent event)
groupFinished in interface ReportListenergroupFinished in class AbstractFunctionevent - the event.public void itemsAdvanced(ReportEvent event)
itemsAdvanced in interface ReportListeneritemsAdvanced in class AbstractFunctionevent - the event.public void itemsStarted(ReportEvent event)
The next events will be itemsAdvanced events until the itemsFinished event is raised.
itemsStarted in interface ReportListeneritemsStarted in class AbstractFunctionevent - The event.public void itemsFinished(ReportEvent event)
The itemBand is finished, the report starts to close open groups.
itemsFinished in interface ReportListeneritemsFinished in class AbstractFunctionevent - The event.public Object getValue()
getValue in interface Expressionpublic int getDependencyLevel()
getDependencyLevel in interface ExpressiongetDependencyLevel in class AbstractExpressionpublic void setDependencyLevel(int deplevel)
setDependencyLevel in interface ExpressionsetDependencyLevel in class AbstractExpressiondeplevel - the new depency level.public OutputFunction deriveForStorage()
deriveForStorage in interface OutputFunctionpublic 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 Expressionclone in class AbstractExpressionCloneNotSupportedException - this should never happen.public InlineSubreportMarker[] getInlineSubreports()
getInlineSubreports in interface OutputFunctionpublic void clearInlineSubreports(SubReportProcessType inlineExecution)
clearInlineSubreports in interface OutputFunctionpublic void restart(ReportState state)
restart in interface OutputFunctionpublic boolean createRollbackInformation()
createRollbackInformation in interface OutputFunction
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||