Parser class

Syntax

public class Parser extends IParser

Members

All members of Parser, including inherited members.

Variables
Modifier and Type Variable Description
protected File defaultFolder  
static Object lockObject  
protected ILogger logger  
protected int logLevel  
protected static final String NAMEMAP_FILENAME  
Object pa  
protected SAXParser parser  
protected IPreferences preferences  
Constructors
Modifier and Type Constructor Description
public Parser(IPreferences, ILogger)  
Methods
Modifier and Type Method Description
[instance initializer]()  
public 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.
void init()  
public 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 IParserDocument parse(String) Parses the Source and converts it to a Java Object containing all the information that were contained by the source.
public 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 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 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 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 IODataError parseODataError(String) Parses the OData Error.
public 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 IODataOpenSearchDescription parseODataOpenSearchDescription(String, String, IODataServiceDocument) Parses the OData Open Search Description.
public IODataOpenSearchDescription parseODataOpenSearchDescription(InputStream, String, IODataServiceDocument) Parses the OData Open Search Description from stream.
public IODataSchema parseODataSchema(String, IODataServiceDocument) Parses the OData Schema.
public IODataSchema parseODataSchema(InputStream, IODataServiceDocument) Parses the OData Schema from stream.
public IODataServiceDocument parseODataServiceDocument(String) Parses the OData Service Document.
public IODataServiceDocument parseODataServiceDocument(InputStream) Parses the OData Service Document from stream.
protected synchronized void readNameMap()  
protected void writeNameMap(int)  
Inherited members from IParser
Modifier and Type Member Description
public static final int FORMAT_JSON JSON Format for Building Post Body.
public static final int FORMAT_XML XML Format for Building Post Body.