|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1) E10653-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.adf.model.adapter.dataformat.XMLHandler
public class XMLHandler
The XMLHandler
class XML data formats. XML handler can extract
data from an XML data stream.
Since the way XSDHandler
class handles the leaf element, we
handle it in the corresponding way:
Example 1:
Nested Class Summary | |
---|---|
class |
XMLHandler.XMLDataEvent
Event that the CSV handler sends during processing csv data. |
Field Summary | |
---|---|
static java.lang.String |
EV_EOD
End of data event. |
static java.lang.String |
REFERENCE_ROOT
|
Constructor Summary | |
---|---|
XMLHandler(java.io.InputStream is,
boolean supportStreaming)
Creates a data handler for XML data type. |
|
XMLHandler(java.io.InputStream is,
java.io.InputStream xsltStream,
boolean supportStreaming)
Creates a data handler for XML data type. |
|
XMLHandler(Node root)
Creates an XML data handler for a DOM node. |
|
XMLHandler(Node root,
java.io.Reader xslTransform)
Instantiate this XMLHandler for the root node and an optional transformation to be applied on the root node. |
Method Summary | |
---|---|
java.util.List |
getResult(java.util.Map params)
Returns the resulting data extracted from the input. |
java.lang.Object |
getResult(java.util.Map params,
java.lang.String returnType)
Returns the resulting data extracted from the input. |
void |
setDataEventListener(FormatDataEventListener listener)
Sets the data event listener. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String EV_EOD
public static final java.lang.String REFERENCE_ROOT
Constructor Detail |
---|
public XMLHandler(java.io.InputStream is, boolean supportStreaming)
is
- input stream of the data.supportStreaming
- if to support the streaming fetch of the data.
If this value is false, the XML data is loaded as a DOM tree.
AdapterException
- if falis to load the DOM tree from the
input stream.public XMLHandler(java.io.InputStream is, java.io.InputStream xsltStream, boolean supportStreaming)
is
- input stream of the data.xsltStream
- stream of the xslt definitionsupportStreaming
- if to support the streaming fetch of the data.
If this value is false, the XML data is loaded as a DOM tree.
AdapterException
- if falis to load the DOM tree from the
input stream.public XMLHandler(Node root)
root
- the root node of the data.public XMLHandler(Node root, java.io.Reader xslTransform) throws AdapterException
root
- The root data node for this format handler instancexslTransform
- The Transformation Reader that references the
XSL transformation to be applied on this root
node.
{@link
- AdapterException} if the transformation cannot be
applied on the root node.
AdapterException
Method Detail |
---|
public void setDataEventListener(FormatDataEventListener listener)
public java.lang.Object getResult(java.util.Map params, java.lang.String returnType)
getResult
in interface FormatDataHandler
params
- parameters passed containig the context information.returnType
- data type of the returned value. This can be passed as null.
If no return type is specified, an Iterator of Map will be returned.
returnType
parameter.
If the type is available, an instance of that object is created. If no
type is specified an Iterator
of Map
objects
for the result will be created.
If no data found it can return null. The Map
contains the value of attributes as defined in the data structure.
For complex data, Map
s can contain other
Map
s as well.public java.util.List getResult(java.util.Map params)
params
- parameters passed containig the context information.
Map
objects for the result.
If no data found it can return null. The Map
contains the value of attributes as defined in the data structure.
For complex data, Map
s can contain other iterator of
Map
s as well.
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1) E10653-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |