Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1)

E10653-03


oracle.adf.model.adapter.dataformat.xml
Class DOMDataHandler

java.lang.Object
  extended by oracle.adf.model.adapter.dataformat.xml.DOMDataHandler

All Implemented Interfaces:
FormatDataHandler

public class DOMDataHandler
extends java.lang.Object
implements FormatDataHandler

Retrieves data from an XML DOM tree.

See Also:
XMLHandler

Constructor Summary
DOMDataHandler(Node nd)
           

 

Method Summary
 java.util.Iterator getResult(java.util.Map properties)
          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.
static void main(java.lang.String[] args)
          Test harness method.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

DOMDataHandler

public DOMDataHandler(Node nd)

Method Detail

getResult

public java.util.Iterator getResult(java.util.Map properties)
Returns the resulting data extracted from the input.
Parameters:
properties - parameters passed containing the context information.
Returns:
Iterator of 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, Maps can contain other Maps as well.
Throws:
AdapterException

getResult

public java.lang.Object getResult(java.util.Map params,
                                  java.lang.String returnType)
Returns the resulting data extracted from the input.
Specified by:
getResult in interface FormatDataHandler
Parameters:
params - parameters passed containing 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.
Returns:
Object of the type defined by the 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, Maps can contain other Maps as well.

main

public static void main(java.lang.String[] args)
Test harness method.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1)

E10653-03


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