Skip navigation links
oracle.adf.model.adapter.dataformat
Class XMLContentHandler
java.lang.Object
oracle.adf.model.adapter.dataformat.XMLContentHandler
- All Implemented Interfaces:
- InputContentHandler
-
public class XMLContentHandler
- extends java.lang.Object
- implements InputContentHandler
The XMLContentHandler
class generates XML content from the given input object
. The writeContent
is the only method exposed to the other classes that can be called to generate the XML. Currently the writeContent
method expectes the input Object
to be an instance of Map
, which inturn can contain Map
or List
or primitive datatype as values. This method uses two additional helper methods writeMap
and writeList
, which converts the Map
and List
content to XML format.
Method Summary |
void |
writeContent(java.util.Map properties, java.lang.Object inputObject, java.io.OutputStream outStream)
Convert the content of the input object to XML format |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ROOT_ELEMENT
public static final java.lang.String ROOT_ELEMENT
-
- See Also:
- Constant Field Values
XMLContentHandler
public XMLContentHandler()
- Construct a new XMLContentHandler object.
writeContent
public void writeContent(java.util.Map properties,
java.lang.Object inputObject,
java.io.OutputStream outStream)
- Convert the content of the input object to XML format
-
- Specified by:
writeContent
in interface InputContentHandler
-
- Parameters:
properties
- Specifies any additional details required to convert the input to XML - currently,the RootElement of the XML document to be generated.
inputObject
- The input object whose contents need to be represented as XML
os
- The XML conent generated will be written to the stream represented by this parameter.
Skip navigation links
Copyright © 1997, 2011, Oracle. All rights reserved.