Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 2 (11.1.2.2.0)

E17483-03


oracle.adf.model.adapter.dataformat
Class XMLContentHandler

java.lang.Object
  extended by 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.


Field Summary
static java.lang.String ROOT_ELEMENT
           

 

Constructor Summary
XMLContentHandler()
          Construct a new XMLContentHandler object.

 

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

 

Field Detail

ROOT_ELEMENT

public static final java.lang.String ROOT_ELEMENT
See Also:
Constant Field Values

Constructor Detail

XMLContentHandler

public XMLContentHandler()
Construct a new XMLContentHandler object.

Method Detail

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

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 2 (11.1.2.2.0)

E17483-03


Copyright © 1997, 2012, Oracle. All rights reserved.