org.odata4j.format.json
Class JsonComplexObjectFormatParser

java.lang.Object
  extended by org.odata4j.format.json.JsonFormatParser
      extended by org.odata4j.format.json.JsonComplexObjectFormatParser
All Implemented Interfaces:
FormatParser<OComplexObject>

public class JsonComplexObjectFormatParser
extends JsonFormatParser
implements FormatParser<OComplexObject>

Parser for OComplexObjects in JSON


Field Summary
 
Fields inherited from class org.odata4j.format.json.JsonFormatParser
COUNT_PROPERTY, DATA_PROPERTY, DEFERRED_PROPERTY, entityKey, entitySetName, ETAG_PROPERTY, isResponse, metadata, METADATA_PROPERTY, NEXT_PROPERTY, parseType, RESULTS_PROPERTY, TYPE_PROPERTY, URI_PROPERTY, version
 
Constructor Summary
JsonComplexObjectFormatParser(EdmComplexType type)
           
JsonComplexObjectFormatParser(Settings s)
           
 
Method Summary
protected  void addProperty(List<OProperty<?>> props, String name, JsonStreamReaderFactory.JsonStreamReader jsr)
           
 OComplexObject parse(Reader reader)
           
protected  void parseEmbedded(String propName, JsonStreamReaderFactory.JsonStreamReader.JsonEvent event, JsonStreamReaderFactory.JsonStreamReader jsr, List<OProperty<?>> props)
           
 OComplexObject parseSingleObject(JsonStreamReaderFactory.JsonStreamReader jsr)
           
 OComplexObject parseSingleObject(JsonStreamReaderFactory.JsonStreamReader jsr, JsonStreamReaderFactory.JsonStreamReader.JsonEvent startPropertyEvent)
           
 
Methods inherited from class org.odata4j.format.json.JsonFormatParser
addProperty, ensureEndArray, ensureEndObject, ensureEndProperty, ensureNext, ensureStartArray, ensureStartObject, ensureStartProperty, ensureStartProperty, getValue, parseEntry, parseEntry, parseFeed, parseMetadata, resolveEntityType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonComplexObjectFormatParser

public JsonComplexObjectFormatParser(EdmComplexType type)

JsonComplexObjectFormatParser

public JsonComplexObjectFormatParser(Settings s)
Method Detail

addProperty

protected void addProperty(List<OProperty<?>> props,
                           String name,
                           JsonStreamReaderFactory.JsonStreamReader jsr)

parse

public OComplexObject parse(Reader reader)
Specified by:
parse in interface FormatParser<OComplexObject>

parseEmbedded

protected void parseEmbedded(String propName,
                             JsonStreamReaderFactory.JsonStreamReader.JsonEvent event,
                             JsonStreamReaderFactory.JsonStreamReader jsr,
                             List<OProperty<?>> props)

parseSingleObject

public OComplexObject parseSingleObject(JsonStreamReaderFactory.JsonStreamReader jsr)

parseSingleObject

public OComplexObject parseSingleObject(JsonStreamReaderFactory.JsonStreamReader jsr,
                                        JsonStreamReaderFactory.JsonStreamReader.JsonEvent startPropertyEvent)


http://odata4j.org