|
TPTP 4.5.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.tptp.platform.report.extension.internal.DExtensible
org.eclipse.tptp.platform.report.tools.internal.DParser
org.eclipse.tptp.platform.report.drivers.xml.internal.DXmlDocumentWriter
org.eclipse.tptp.platform.report.birt).
public class DXmlDocumentWriter
Provides an object to write JScrib document in an XML format.
The following example writes a JScrib IDDocument item in an xml file named
'myfile.rxml'.
IDDocument doc = new DDocument();
...
DXmlWriter aw = new DXmlWriter();
try{
aw.write( new FileOutputStream("myfile.rxml"), doc );
// Good, the file is generated
...
}
catch(Exception e )
{
// An error occurs in the writer
...
}
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.eclipse.tptp.platform.report.tools.internal.DParser |
|---|
DParser.ParserException |
| Nested classes/interfaces inherited from class org.eclipse.tptp.platform.report.extension.internal.DExtensible |
|---|
DExtensible.InvokeMethod |
| Field Summary | |
|---|---|
protected java.util.ArrayList |
folder_model_written_
Deprecated. |
| Fields inherited from class org.eclipse.tptp.platform.report.extension.internal.DExtensible |
|---|
mapMethod, paramTab |
| Constructor Summary | |
|---|---|
DXmlDocumentWriter()
Deprecated. Create a JScrib XML writer, by default auto indent mode is not engaged. |
|
| Method Summary | |
|---|---|
void |
clear()
Deprecated. Clears all internal datas. |
void |
doMethod(java.lang.Boolean v,
DExtensible ext,
java.lang.Object arg)
Deprecated. write xml for Boolean objects. |
void |
doMethod(java.lang.Byte v,
DExtensible ext,
java.lang.Object arg)
Deprecated. write xml for Byte objects. |
void |
doMethod(java.lang.Class c,
DExtensible ext,
java.lang.Object arg)
Deprecated. write xml for Class object, onl name of class is save |
void |
doMethod(DAlignmentPair align,
DExtensible p,
java.lang.Object arg)
Deprecated. Write DAlignmentPair value |
void |
doMethod(java.util.Date date,
DExtensible ext,
java.lang.Object arg)
Deprecated. write xml for java.util.Date, save the time in milliseconds |
void |
doMethod(DAxis a,
DExtensible p,
java.lang.Object arg)
Deprecated. Writes xml for a DAxis |
void |
doMethod(DCategory event,
DExtensible ext,
java.lang.Object arg)
Deprecated. Writes DCategory element |
void |
doMethod(DCoord c,
DExtensible p,
java.lang.Object arg)
Deprecated. Writes xml for a DCoord |
void |
doMethod(DCoordObject c,
DExtensible p,
java.lang.Object arg)
Deprecated. Writes xml for a DCoord |
void |
doMethod(DCurve c,
DExtensible p,
java.lang.Object arg)
Deprecated. Writes xml for a DCurve |
void |
doMethod(DDocument d,
DExtensible p,
java.lang.Object arg)
Deprecated. Writes xml for a DDocument. |
void |
doMethod(com.ibm.icu.text.DecimalFormat df,
DExtensible ext,
java.lang.Object arg)
Deprecated. write xml for DecimalFormat save pattern |
void |
doMethod(DGraphic g,
DExtensible p,
java.lang.Object arg)
Deprecated. Writes xml for a DGraphic |
void |
doMethod(DMarkerLine ml,
DExtensible p,
java.lang.Object arg)
Deprecated. Writes 'markerLine' element |
void |
doMethod(DMarkerRegion ml,
DExtensible p,
java.lang.Object arg)
Deprecated. Writes 'markerRegion' element |
void |
doMethod(java.lang.Double v,
DExtensible ext,
java.lang.Object arg)
Deprecated. write xml for Double objects. |
void |
doMethod(DPalettes pal,
DExtensible p,
java.lang.Object arg)
Deprecated. Writes 'palettes' node |
void |
doMethod(DPoint p,
DExtensible prs,
java.lang.Object arg)
Deprecated. Writes xml for a DPoint |
void |
doMethod(java.lang.Float v,
DExtensible ext,
java.lang.Object arg)
Deprecated. write xml for Float objects. |
void |
doMethod(IDStringSerializable i,
DExtensible ext,
java.lang.Object arg)
Deprecated. aml dump for IDStringSerializable class, write as cdata the writeXml() result. |
void |
doMethod(IDXmlSerializable i,
DExtensible ext,
java.lang.Object arg)
Deprecated. aml dump for IDXmlSerializable class, write as cdata the writeXml() result. |
void |
doMethod(java.lang.Integer v,
DExtensible ext,
java.lang.Object arg)
Deprecated. write xml for Integer objects. |
void |
doMethod(java.lang.Long v,
DExtensible ext,
java.lang.Object arg)
Deprecated. write xml for Long objects. |
void |
doMethod(java.lang.Short v,
DExtensible ext,
java.lang.Object arg)
Deprecated. write xml for Short v. |
void |
doMethod(com.ibm.icu.text.SimpleDateFormat df,
DExtensible ext,
java.lang.Object arg)
Deprecated. write xml for SimpleDateFormat save pattern |
void |
doMethod(java.lang.String str,
DExtensible ext,
java.lang.Object arg)
Deprecated. encode string using any '&xx;' xml entity and dump coded string |
static java.lang.String |
encode(java.lang.String s)
Deprecated. Encodes given string replacing a trap character by their xml entity names (ie > by >, & by &). |
static java.lang.String |
EncodeColor(IDColor c)
Deprecated. encode IDColor into a 6 hexa-digit string RRGGBB |
void |
endElement()
Deprecated. Closes a previously started element, choose the best way to write the end ("/>" or "</ELM>", depending on data collected such as outCData was called. |
java.io.OutputStream |
getOutputStream()
Deprecated. |
java.lang.String |
getRootElementName()
Deprecated. Modifying this name means you need to modify it in DXmlReader |
boolean |
isAutoIndentMode()
Deprecated. |
boolean |
isWriteCompleteDocument()
Deprecated. |
void |
outAttribute(java.lang.String attr_name,
boolean attr_value)
Deprecated. Write boolean attribute |
void |
outAttribute(java.lang.String attr_name,
boolean attr_value,
boolean default_value)
Deprecated. Writes a boolean attribute, if value differ than default one. |
void |
outAttribute(java.lang.String attr_name,
double attr_value)
Deprecated. Writes float attribute. |
void |
outAttribute(java.lang.String attr_name,
double attr_value,
double default_value)
Deprecated. Writes a float attribute, if value differ than default one. |
void |
outAttribute(java.lang.String attr_name,
float attr_value)
Deprecated. Writes float attribute. |
void |
outAttribute(java.lang.String attr_name,
float attr_value,
float default_value)
Deprecated. Writes a float attribute, if value differ than default one. |
void |
outAttribute(java.lang.String attr_name,
int attr_value)
Deprecated. Writes an integer attribute |
void |
outAttribute(java.lang.String attr_name,
int attr_value,
int default_value)
Deprecated. Writes an integer attribute, if value differ than default one. |
void |
outAttribute(java.lang.String attr_name,
java.lang.String attr_value,
boolean required)
Deprecated. Writes an attribute in current element. |
void |
outAttribute(java.lang.String attr_name,
java.lang.String attr_value,
java.lang.String default_value)
Deprecated. Writes an attribute only if value differ than default (do nothing if value is null) |
void |
outCData(java.lang.String data)
Deprecated. Writes CData: text outside element area (>.. |
protected void |
outIndent(int idt)
Deprecated. Writes a \n and a number of space depending on parameter, if auto indent mode is engaged. |
void |
outPropertyAttr(java.lang.String attr_name,
DPropertyStore ps,
java.lang.String key)
Deprecated. Writes a property contained in a property store as an element attribute only if the key property exists in the property store |
void |
outPropertyAttr(java.lang.String attr_name,
DPropertyStore ps,
java.lang.String key,
boolean default_value)
Deprecated. Writes a property contained in a property store as an element attribute only if the key property exists in the property store |
void |
outPropertyAttr(java.lang.String attr_name,
DPropertyStore ps,
java.lang.String key,
double default_value)
Deprecated. Writes a property contained in a property store as an element attribute only if the key property exists in the property store |
void |
outPropertyAttr(java.lang.String attr_name,
DPropertyStore ps,
java.lang.String key,
float default_value)
Deprecated. Writes a property contained in a property store as an element attribute only if the key property exists in the property store |
void |
outPropertyAttr(java.lang.String attr_name,
DPropertyStore ps,
java.lang.String key,
int default_value)
Deprecated. Writes a property contained in a property store as an element attribute only if the key property exists in the property store |
void |
outPropertyAttr(java.lang.String attr_name,
DPropertyStore ps,
java.lang.String key,
java.lang.String default_value)
Deprecated. Writes a property contained in a property store as an element attribute only if the key property exists in the property store |
void |
setAutoIndentMode(boolean b)
Deprecated. Change current value of auto indent mode, is this mode xml elements will be indented using spaces if they don't contains CData. |
void |
setWriteCompleteDocument(boolean b)
Deprecated. Change 'complete document' mode. |
void |
startElement(java.lang.String name)
Deprecated. Calls this to start an XML element, do the ouput and data used to close the element correctly. |
void |
startElement(java.lang.String name,
IDItem item)
Deprecated. Starts element and write common IDItem attribute (style). |
void |
write(java.io.OutputStream output,
IDObject object)
Deprecated. Writes an IDObject in OutputStream in XML Formal. |
void |
write(java.io.OutputStream output,
IDObject[] objects)
Deprecated. Writes an IDObject array in the OutputStream in XML format |
protected void |
writeAxes(DGraphic g,
DExtensible p,
java.lang.Object arg)
Deprecated. Writes 'axes' node |
protected void |
writeCategories(DAxis a,
DExtensible p,
java.lang.Object arg)
Deprecated. Writes 'category' element |
protected void |
writeChartTitle(DGraphic g,
DExtensible p,
java.lang.Object arg)
Deprecated. Writes 'chartTitle' node |
protected void |
writeCurves(DGraphic g,
DExtensible p,
java.lang.Object arg)
Deprecated. Writes 'curves' node |
protected void |
writeLabelFormat(DAxis a,
DExtensible p,
java.lang.Object arg)
Deprecated. Writes 'labelFormat' element |
protected void |
writeLegend(DGraphic g,
DExtensible p,
java.lang.Object arg)
Deprecated. Writes 'legend' node |
protected void |
writeMajorUnit(DAxis a,
DExtensible p,
java.lang.Object arg)
Deprecated. Writes 'majorUnit' element |
protected void |
writeMinorUnit(DAxis a,
DExtensible p,
java.lang.Object arg)
Deprecated. Writes 'minorUnit' element |
protected void |
writePlotArea(DGraphic g,
DExtensible p,
java.lang.Object arg)
Deprecated. Writes 'plotArea' node |
| Methods inherited from class org.eclipse.tptp.platform.report.tools.internal.DParser |
|---|
doChildrenItem, doMethod, doMethod, doMethod, getListLevel, getTitleLevel |
| Methods inherited from class org.eclipse.tptp.platform.report.extension.internal.DExtensible |
|---|
doMethod, getDoMethod, installDoMethod, installDoMethods, installDoMethods, invokeDoMethod, invokeSuperDoMethod, removeDoMethod, removeDoMethod, removeDoMethods, removeDoMethods, resolveDoMethod |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.ArrayList folder_model_written_
| Constructor Detail |
|---|
public DXmlDocumentWriter()
setAutoIndentMode(boolean)| Method Detail |
|---|
public java.io.OutputStream getOutputStream()
public boolean isAutoIndentMode()
setAutoIndentMode(boolean)public void setAutoIndentMode(boolean b)
outCData(java.lang.String)public boolean isWriteCompleteDocument()
public void setWriteCompleteDocument(boolean b)
public java.lang.String getRootElementName()
public void write(java.io.OutputStream output,
IDObject[] objects)
throws java.lang.Exception
write in interface IWriterjava.lang.Exception
public void write(java.io.OutputStream output,
IDObject object)
throws java.lang.Exception
write in interface IWriterjava.lang.Exceptionwrite(OutputStream, IDObject[]).public void clear()
clear in interface IWriterclear in class DParserDParser.clear()
protected void outIndent(int idt)
throws java.io.IOException
idt - proportinal to the number of space to write.
java.io.IOException - is the ouput failed.public void startElement(java.lang.String name)
name - the name of the element to start.endElement(),
outAttribute(java.lang.String, java.lang.String, boolean)public void endElement()
startElement(java.lang.String),
outCData(java.lang.String)public void outCData(java.lang.String data)
data - the text to write.
public void outAttribute(java.lang.String attr_name,
java.lang.String attr_value,
boolean required)
attr_name - the name of the attributeattr_value - the value of the attribute
public final void outAttribute(java.lang.String attr_name,
java.lang.String attr_value,
java.lang.String default_value)
attr_name - the name of the attributeattr_value - the value of the attributedefault_value - the default value, if equals to the value, no output are done.
public final void outAttribute(java.lang.String attr_name,
int attr_value)
attr_name - the name of the attributeattr_value - the value of the attribute
public final void outAttribute(java.lang.String attr_name,
int attr_value,
int default_value)
attr_name - the name of the attributeattr_value - the value of the attributedefault_value - the default value, if equals to the value, no output are done.
public final void outAttribute(java.lang.String attr_name,
boolean attr_value)
attr_name - the name of the attributeattr_value - the value of the attribute
public final void outAttribute(java.lang.String attr_name,
boolean attr_value,
boolean default_value)
attr_name - the name of the attributeattr_value - the value of the attributedefault_value - the default value, if equals to the value, no output are done.
public final void outAttribute(java.lang.String attr_name,
float attr_value)
attr_name - the name of the attributeattr_value - the value of the attribute
public final void outAttribute(java.lang.String attr_name,
float attr_value,
float default_value)
attr_name - the name of the attributeattr_value - the value of the attributedefault_value - the default value, if equals to the value, no output are done.
public final void outAttribute(java.lang.String attr_name,
double attr_value)
attr_name - the name of the attributeattr_value - the value of the attribute
public final void outAttribute(java.lang.String attr_name,
double attr_value,
double default_value)
attr_name - the name of the attributeattr_value - the value of the attributedefault_value - the default value, if equals to the value, no output are done.
public final void outPropertyAttr(java.lang.String attr_name,
DPropertyStore ps,
java.lang.String key,
boolean default_value)
attr_name - the name of the attributeps - the property storekey - the property's keydefault_value - the boolean default value
public final void outPropertyAttr(java.lang.String attr_name,
DPropertyStore ps,
java.lang.String key,
java.lang.String default_value)
attr_name - the name of the attributeps - the property storekey - the property's keydefault_value - the string default value
public final void outPropertyAttr(java.lang.String attr_name,
DPropertyStore ps,
java.lang.String key,
double default_value)
attr_name - the name of the attributeps - the property storekey - the property's keydefault_value - the double default value
public final void outPropertyAttr(java.lang.String attr_name,
DPropertyStore ps,
java.lang.String key,
float default_value)
attr_name - the name of the attributeps - the property storekey - the property's keydefault_value - the float default value
public final void outPropertyAttr(java.lang.String attr_name,
DPropertyStore ps,
java.lang.String key,
int default_value)
attr_name - the name of the attributeps - the property storekey - the property's keydefault_value - the integer default value
public final void outPropertyAttr(java.lang.String attr_name,
DPropertyStore ps,
java.lang.String key)
attr_name - the name of the attributeps - the property storekey - the property's key
public void startElement(java.lang.String name,
IDItem item)
name - the name of the element.item - the item to write.startElement(java.lang.String)public static java.lang.String encode(java.lang.String s)
s - the string to encode.
public void doMethod(DDocument d,
DExtensible p,
java.lang.Object arg)
public void doMethod(DGraphic g,
DExtensible p,
java.lang.Object arg)
public void doMethod(DCategory event,
DExtensible ext,
java.lang.Object arg)
protected void writeLegend(DGraphic g,
DExtensible p,
java.lang.Object arg)
protected void writeChartTitle(DGraphic g,
DExtensible p,
java.lang.Object arg)
public void doMethod(DAlignmentPair align,
DExtensible p,
java.lang.Object arg)
protected void writePlotArea(DGraphic g,
DExtensible p,
java.lang.Object arg)
public void doMethod(DPalettes pal,
DExtensible p,
java.lang.Object arg)
protected void writeAxes(DGraphic g,
DExtensible p,
java.lang.Object arg)
protected void writeCurves(DGraphic g,
DExtensible p,
java.lang.Object arg)
public void doMethod(DAxis a,
DExtensible p,
java.lang.Object arg)
protected void writeLabelFormat(DAxis a,
DExtensible p,
java.lang.Object arg)
public void doMethod(DMarkerLine ml,
DExtensible p,
java.lang.Object arg)
public void doMethod(DMarkerRegion ml,
DExtensible p,
java.lang.Object arg)
protected void writeCategories(DAxis a,
DExtensible p,
java.lang.Object arg)
protected void writeMajorUnit(DAxis a,
DExtensible p,
java.lang.Object arg)
protected void writeMinorUnit(DAxis a,
DExtensible p,
java.lang.Object arg)
public void doMethod(DCurve c,
DExtensible p,
java.lang.Object arg)
public void doMethod(DPoint p,
DExtensible prs,
java.lang.Object arg)
public void doMethod(DCoord c,
DExtensible p,
java.lang.Object arg)
public void doMethod(DCoordObject c,
DExtensible p,
java.lang.Object arg)
public static java.lang.String EncodeColor(IDColor c)
public void doMethod(IDXmlSerializable i,
DExtensible ext,
java.lang.Object arg)
public void doMethod(IDStringSerializable i,
DExtensible ext,
java.lang.Object arg)
public void doMethod(java.lang.String str,
DExtensible ext,
java.lang.Object arg)
public void doMethod(java.lang.Byte v,
DExtensible ext,
java.lang.Object arg)
public void doMethod(java.lang.Short v,
DExtensible ext,
java.lang.Object arg)
public void doMethod(java.lang.Integer v,
DExtensible ext,
java.lang.Object arg)
public void doMethod(java.lang.Long v,
DExtensible ext,
java.lang.Object arg)
public void doMethod(java.lang.Float v,
DExtensible ext,
java.lang.Object arg)
public void doMethod(java.lang.Double v,
DExtensible ext,
java.lang.Object arg)
public void doMethod(java.lang.Boolean v,
DExtensible ext,
java.lang.Object arg)
public void doMethod(java.lang.Class c,
DExtensible ext,
java.lang.Object arg)
public void doMethod(java.util.Date date,
DExtensible ext,
java.lang.Object arg)
public void doMethod(com.ibm.icu.text.DecimalFormat df,
DExtensible ext,
java.lang.Object arg)
public void doMethod(com.ibm.icu.text.SimpleDateFormat df,
DExtensible ext,
java.lang.Object arg)
|
TPTP 4.5.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||