public class DOMDataHandler extends java.lang.Object implements FormatDataHandler
XMLHandler| Constructor and Description |
|---|
DOMDataHandler(Node nd) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public DOMDataHandler(Node nd)
public java.util.Iterator getResult(java.util.Map properties)
properties - parameters passed containing the context information.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.AdapterExceptionpublic java.lang.Object getResult(java.util.Map params,
java.lang.String returnType)
getResult in interface FormatDataHandlerparams - 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.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.public static void main(java.lang.String[] args)