|
Jacson | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.spieleck.app.jacson.report.XSLTReport
This is a really powerful report, considering the output as
XML and applying a XSL-Transformation on it. Note that a XSLT
Processor needs some space for internal processing, but this
is probably still less than the storage requirement of enhanced
JacsonEvaluator classes like
AccountingEvaluator.
You can select ...
PrintingReport.FILENAME_NODE (default stdout).STYLE_NODE (default identity).OUTPUTPROPERTY_NODE.PARAMETER_NODE.
| Field Summary | |
static java.lang.String |
ITEM_ELEM
|
static java.lang.String |
NAME_ATT
|
static java.lang.String |
NAME_NODE
|
org.xml.sax.helpers.AttributesImpl |
nameAtts
In case we have name Attributes, we use this. |
static java.lang.String |
NAMESPACE
|
static java.lang.String |
OUTPUTPROPERTY_NODE
|
static java.lang.String |
PARAMETER_NODE
|
static java.lang.String |
ROOT_ELEM
|
static java.lang.String |
STYLE_NODE
|
protected javax.xml.transform.sax.TransformerHandler |
trans
The transformer which does the main work. |
static java.lang.String |
VALUE_NODE
|
| Constructor Summary | |
XSLTReport()
|
|
| Method Summary | |
void |
begin(java.lang.String id)
Begin a subsection within report |
void |
end()
Close a subsection within a report |
void |
finish()
Finish and close underlying resources |
void |
finish(boolean close)
Finish and optionally close the underlying resources |
JacsonState |
getRegState()
returns the set JacsonState |
void |
init(ConfigNode config)
Initialize the report. |
void |
registerState(JacsonState state)
Give the class access to an appropriate state. |
void |
report(java.lang.String localName,
java.lang.String value)
Report a single name value pair within a report |
void |
setOutputStream(java.io.OutputStream os)
Attach an appropriate Result to the Transformer. |
void |
setPrintWriter(java.io.PrintWriter pw)
Attach an appropriate Result to the Transformer. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String STYLE_NODE
public static final java.lang.String OUTPUTPROPERTY_NODE
public static final java.lang.String PARAMETER_NODE
public static final java.lang.String NAME_NODE
public static final java.lang.String VALUE_NODE
public static final java.lang.String NAME_ATT
public static final java.lang.String ROOT_ELEM
public static final java.lang.String ITEM_ELEM
public static final java.lang.String NAMESPACE
public final org.xml.sax.helpers.AttributesImpl nameAtts
protected javax.xml.transform.sax.TransformerHandler trans
| Constructor Detail |
public XSLTReport()
| Method Detail |
public void init(ConfigNode config)
throws JacsonConfigException
JacsonReportConfigNode can be used to obtain
configuration information of the report from the global
config xml.
init in interface JacsonReportJacsonConfigException
public void setOutputStream(java.io.OutputStream os)
throws JacsonConfigException
setOutputStream in interface JacsonPrintReportJacsonConfigException
public void setPrintWriter(java.io.PrintWriter pw)
throws JacsonConfigException
setPrintWriter in interface JacsonPrintReportJacsonConfigExceptionpublic void begin(java.lang.String id)
JacsonReport
begin in interface JacsonReport
public void report(java.lang.String localName,
java.lang.String value)
JacsonReport
report in interface JacsonReportpublic void end()
JacsonReport
end in interface JacsonReportpublic void finish()
JacsonReport
finish in interface JacsonReportpublic void finish(boolean close)
JacsonReport
finish in interface JacsonReportclose - flag whether to close resources or not.public void registerState(JacsonState state)
JacsonStately
registerState in interface JacsonStatelypublic JacsonState getRegState()
JacsonReport
getRegState in interface JacsonReport
|
Spieleck | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||