|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pf.joi.xml.XMLTags
org.pf.joi.xml.XMLObjectExporter
This class provides export functionality for inspected objects
to XML files.
For it's XML writing it requires any XML parser package
that supports the JAXP factory mechanism and implements a SAX parser
Constructor Summary | |
XMLObjectExporter()
Initialize the new instance with default values. |
Method Summary | |
org.w3c.dom.Document |
createDocument(org.pf.joi.AbstractObjectSpy objectSpy)
Returns a DOM document containing all data of the given object. |
org.pf.six.Element |
createXMLTree(org.pf.joi.AbstractObjectSpy objectSpy)
Returns a simple XML tree representing the object's internal state that is encapsulated in the given object spy. |
boolean |
export(org.pf.joi.AbstractObjectSpy objectSpy,
java.io.File file)
Exports the given object to the specified file. |
boolean |
export(org.pf.joi.AbstractObjectSpy objectSpy,
java.awt.Frame parent)
Displays a file dialog to select the directory and filename and than writes the object contents to that file as XML data. |
boolean |
export(org.pf.joi.AbstractObjectSpy objectSpy,
java.lang.String filename)
Exports the given object to the file with the specified name. |
boolean |
export(org.pf.joi.AbstractObjectSpy objectSpy,
java.io.Writer writer)
Exports the given object to the specified writer. |
java.lang.String |
exportLabel()
Returns the label that will be shown in an inspector's 'File' menu. |
java.lang.String |
getVendor()
Returns the vendor of this export provider |
java.lang.String |
getVersion()
Returns the version of this export provider |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XMLObjectExporter()
Method Detail |
public boolean export(org.pf.joi.AbstractObjectSpy objectSpy, java.awt.Frame parent) throws java.lang.Exception
export
in interface org.pf.joi.ExportProvider
objectSpy
- The wrapped object to be exportedparent
- The parent window. Usually that is the inspector window
java.lang.Exception
public boolean export(org.pf.joi.AbstractObjectSpy objectSpy, java.lang.String filename) throws java.lang.Exception
export
in interface org.pf.joi.ExportProvider
objectSpy
- The wrapped object to be exportedfilename
- The name of the output file
java.lang.Exception
public boolean export(org.pf.joi.AbstractObjectSpy objectSpy, java.io.Writer writer) throws java.lang.Exception
objectSpy
- The wrapped object to be exportedwriter
- The writer to which the object contents will be written
java.lang.Exception
public boolean export(org.pf.joi.AbstractObjectSpy objectSpy, java.io.File file) throws java.lang.Exception
objectSpy
- The wrapped object to be exportedfile
- The file to which the object contents will be written
java.lang.Exception
public java.lang.String exportLabel()
exportLabel
in interface org.pf.joi.ExportProvider
public org.pf.six.Element createXMLTree(org.pf.joi.AbstractObjectSpy objectSpy) throws java.lang.Exception
objectSpy
- The wrapper around the object to represent as XML
java.lang.Exception
public org.w3c.dom.Document createDocument(org.pf.joi.AbstractObjectSpy objectSpy) throws java.lang.Exception
java.lang.Exception
public java.lang.String getVersion()
getVersion
in interface org.pf.joi.ExportProvider
public java.lang.String getVendor()
getVendor
in interface org.pf.joi.ExportProvider
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |