IParser interface

Main interface for OData parser.

Package

com.sap.mobile.lib.parser

Syntax

public abstract interface IParser

Derived classes

Members

All members of IParser, including inherited members.

Variables
Modifier and Type Variable Description
public static final int FORMAT_XML XML Format for Building Post Body.
public static final int FORMAT_JSON JSON Format for Building Post Body.
Methods
Modifier and Type Method Description
public abstract String buildODataDocument(IParserDocument) Builds a valid OData Entry XML Post body from the entry argument.
public String buildODataEntryRequestBody(IODataEntry, String, IODataSchema, int) Builds a valid OData Entry JSON Post body from the entry argument.
public void enableParserPerformanceLog(boolean, Context) This method is to be called if performance data point are to be enabled for Parser.
public abstract IParserDocument parse(String) Parses the Source and converts it to a Java Object containing all the information that were contained by the source.
public abstract IParserDocument parse(InputStream) Parses the stream source of document and converts it to a Java Object containing all the information that were contained by the source.
public abstract List< IODataEntry > parseFunctionImportResult(String, IODataFunctionImport, IODataSchema) Parser a non error result of the execution of a Function Import OData document The result will be converted to a list of OData Entry documents If the result was a simple type it can accessed due the result entries as if it were a property,.
public abstract List< IODataEntry > parseFunctionImportResult(InputStream, IODataFunctionImport, IODataSchema) Parser a non error result of the execution of a Function Import OData document The result will be converted to a list of OData Entry documents If the result was a simple type it can accessed due the result entries as if it were a property,.
public abstract List< IODataEntry > parseODataEntries(String, String, IODataSchema) Parses SAPData structure that represent either a single OData Entry or an OData Feed with several OData entries.
public abstract List< IODataEntry > parseODataEntries(InputStream, String, IODataSchema) Parses SAPData structure from stream that represent either a single OData Entry or an OData Feed of several OData entries.
public abstract IODataError parseODataError(String) Parses the OData Error.
public abstract IODataError parseODataError(InputStream) Parses the OData Error from stream.
public IODataFeed parseODataFeed(String, String, IODataSchema) Parse OData Feed, support for Delta Query.
public IODataFeed parseODataFeed(InputStream, String, IODataSchema) Parse OData Feed from stream, support for Delta Query.
public abstract IODataOpenSearchDescription parseODataOpenSearchDescription(String, String, IODataServiceDocument) Parses the OData Open Search Description.
public abstract IODataOpenSearchDescription parseODataOpenSearchDescription(InputStream, String, IODataServiceDocument) Parses the OData Open Search Description from stream.
public abstract IODataSchema parseODataSchema(String, IODataServiceDocument) Parses the OData Schema.
public abstract IODataSchema parseODataSchema(InputStream, IODataServiceDocument) Parses the OData Schema from stream.
public abstract IODataServiceDocument parseODataServiceDocument(String) Parses the OData Service Document.
public abstract IODataServiceDocument parseODataServiceDocument(InputStream) Parses the OData Service Document from stream.