|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.plasma.sdo.helper.PlasmaXMLHelper
public class PlasmaXMLHelper
A helper to convert XML documents into DataObects and DataObjects into XML documents.
| Field Summary | |
|---|---|
static PlasmaXMLHelper |
INSTANCE
|
| Method Summary | |
|---|---|
XMLDocument |
createDocument(DataObject dataObject,
String rootElementURI,
String rootElementName)
Creates an XMLDocument with the specified XML rootElement for the DataObject. |
XMLDocument |
load(InputStream inputStream)
Creates and returns an XMLDocument from the inputStream. |
XMLDocument |
load(InputStream inputStream,
String locationURI,
Object options)
Creates and returns an XMLDocument from the inputStream. |
XMLDocument |
load(Reader inputReader,
String locationURI,
Object options)
Creates and returns an XMLDocument from the inputReader. |
XMLDocument |
load(Source inputSource,
String locationURI,
Object options)
Creates and returns an XMLDocument from the inputSource. |
XMLDocument |
load(String inputString)
Creates and returns an XMLDocument from the input String. |
String |
save(DataObject dataObject,
String rootElementURI,
String rootElementName)
Returns the DataObject saved as an XML document with the specified root element. |
void |
save(DataObject dataObject,
String rootElementURI,
String rootElementName,
OutputStream outputStream)
Saves the DataObject as an XML document with the specified root element. |
void |
save(XMLDocument xmlDocument,
OutputStream outputStream,
Object options)
Serializes an XMLDocument as an XML document into the outputStream. |
void |
save(XMLDocument xmlDocument,
Result outputResult,
Object options)
Serializes an XMLDocument as an XML document into the outputResult in a serialization technology independent format (as specified in javax.xml.transform). |
void |
save(XMLDocument xmlDocument,
Writer outputWriter,
Object options)
Serializes an XMLDocument as an XML document into the outputWriter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static PlasmaXMLHelper INSTANCE
| Method Detail |
|---|
public XMLDocument createDocument(DataObject dataObject,
String rootElementURI,
String rootElementName)
createDocument in interface XMLHelperdataObject - specifies DataObject to be savedrootElementURI - the Target Namespace URI of the root XML elementrootElementName - the Name of the root XML element
public XMLDocument load(String inputString)
load in interface XMLHelperinputString - specifies the String to read from
RuntimeException - for errors in XML parsing or
implementation-specific validation.
public XMLDocument load(InputStream inputStream)
throws IOException
load in interface XMLHelperinputStream - specifies the InputStream to read from
IOException - for stream exceptions.
RuntimeException - for errors in XML parsing or
implementation-specific validation.
public XMLDocument load(InputStream inputStream,
String locationURI,
Object options)
throws IOException
load in interface XMLHelperinputStream - specifies the InputStream to read fromlocationURI - specifies the URI of the document for relative schema locationsoptions - implementation-specific options.
IOException - for stream exceptions.
RuntimeException - for errors in XML parsing or
implementation-specific validation.
public XMLDocument load(Reader inputReader,
String locationURI,
Object options)
throws IOException
load in interface XMLHelperinputReader - specifies the Reader to read fromlocationURI - specifies the URI of the document for relative schema locationsoptions - implementation-specific options.
IOException - for stream exceptions.
RuntimeException - for errors in XML parsing or
implementation-specific validation.
public XMLDocument load(Source inputSource,
String locationURI,
Object options)
throws IOException
load in interface XMLHelperinputSource - specifies the Source to read fromlocationURI - specifies the URI of the document for relative schema locationsoptions - implementation-specific options.
IOException - for stream exceptions.
RuntimeException - for errors in XML parsing or
implementation-specific validation.
public String save(DataObject dataObject,
String rootElementURI,
String rootElementName)
save in interface XMLHelperdataObject - specifies DataObject to be savedrootElementURI - the Target Namespace URI of the root XML elementrootElementName - the Name of the root XML element
IllegalArgumentException - if the dataObject tree
is not closed or has no container.
public void save(DataObject dataObject,
String rootElementURI,
String rootElementName,
OutputStream outputStream)
throws IOException
save in interface XMLHelperdataObject - specifies DataObject to be savedrootElementURI - the Target Namespace URI of the root XML elementrootElementName - the Name of the root XML elementoutputStream - specifies the OutputStream to write to.
IOException - for stream exceptions.
IllegalArgumentException - if the dataObject tree
is not closed or has no container.
public void save(XMLDocument xmlDocument,
OutputStream outputStream,
Object options)
throws IOException
save in interface XMLHelperxmlDocument - specifies XMLDocument to be savedoutputStream - specifies the OutputStream to write to.options - implementation-specific options.
IOException - for stream exceptions.
IllegalArgumentException - if the dataObject tree
is not closed or has no container.
public void save(XMLDocument xmlDocument,
Writer outputWriter,
Object options)
throws IOException
save in interface XMLHelperxmlDocument - specifies XMLDocument to be savedoutputWriter - specifies the Writer to write to.options - implementation-specific options.
IOException - for stream exceptions.
IllegalArgumentException - if the dataObject tree
is not closed or has no container.
public void save(XMLDocument xmlDocument,
Result outputResult,
Object options)
throws IOException
save in interface XMLHelperxmlDocument - specifies XMLDocument to be savedoutputResult - specifies Result to be savedoptions - implementation-specific options.
IOException - for stream exceptions.
IllegalArgumentException - if the dataObject tree
is not closed or has no container.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||