org.odata4j.format.json
Class JsonComplexObjectFormatParser
java.lang.Object
org.odata4j.format.json.JsonFormatParser
org.odata4j.format.json.JsonComplexObjectFormatParser
- All Implemented Interfaces:
- FormatParser<OComplexObject>
public class JsonComplexObjectFormatParser
- extends JsonFormatParser
- implements FormatParser<OComplexObject>
Parser for OComplexObjects in JSON
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 |
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 |
JsonComplexObjectFormatParser
public JsonComplexObjectFormatParser(EdmComplexType type)
JsonComplexObjectFormatParser
public JsonComplexObjectFormatParser(Settings s)
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