public class ODataHandler extends java.lang.Object implements FormatStructureHandler, FormatDataHandler
| Constructor and Description |
|---|
ODataHandler(java.io.InputStream inStream) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getResult(java.util.Map params,
java.lang.String returnType)
Returns the resulting data extracted from the input.
|
StructureDefinition |
getStructure(java.lang.String name,
DefinitionContext ctx)
Returns the structure definition extracted for the data format.
|
public StructureDefinition getStructure(java.lang.String name, DefinitionContext ctx)
FormatStructureHandlergetStructure in interface FormatStructureHandlername - name of the root structure.ctx - definition context information.public java.lang.Object getResult(java.util.Map params,
java.lang.String returnType)
FormatDataHandlergetResult in interface FormatDataHandlerparams - 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, Maps can contain other
Maps as well.