org.odata4j.format.json
Class JsonFormatParser
java.lang.Object
org.odata4j.format.json.JsonFormatParser
- Direct Known Subclasses:
- JsonCollectionFormatParser, JsonComplexObjectFormatParser, JsonEntryFormatParser, JsonErrorFormatParser, JsonFeedFormatParser, JsonSimpleObjectFormatParser, JsonSingleLinkFormatParser
public class JsonFormatParser
- extends Object
Method Summary |
protected EdmEntitySet |
addProperty(org.odata4j.format.json.JsonFeedFormatParser.JsonEntry entry,
EdmEntitySet ees,
String name,
JsonStreamReaderFactory.JsonStreamReader jsr)
adds the property. |
protected void |
ensureEndArray(JsonStreamReaderFactory.JsonStreamReader.JsonEvent event)
|
protected void |
ensureEndObject(JsonStreamReaderFactory.JsonStreamReader.JsonEvent event)
|
protected void |
ensureEndProperty(JsonStreamReaderFactory.JsonStreamReader.JsonEvent event)
|
protected void |
ensureNext(JsonStreamReaderFactory.JsonStreamReader jsr)
|
protected void |
ensureStartArray(JsonStreamReaderFactory.JsonStreamReader.JsonEvent event)
|
protected void |
ensureStartObject(JsonStreamReaderFactory.JsonStreamReader.JsonEvent event)
|
protected void |
ensureStartProperty(JsonStreamReaderFactory.JsonStreamReader.JsonEvent event)
|
protected void |
ensureStartProperty(JsonStreamReaderFactory.JsonStreamReader.JsonEvent event,
String name)
|
protected org.odata4j.format.json.JsonFormatParser.JsonObjectPropertyValue |
getValue(JsonStreamReaderFactory.JsonStreamReader.JsonEvent event,
EdmEntitySet ees,
String name,
JsonStreamReaderFactory.JsonStreamReader jsr,
org.odata4j.format.json.JsonFeedFormatParser.JsonEntry entry)
|
protected org.odata4j.format.json.JsonFeedFormatParser.JsonEntry |
parseEntry(EdmEntitySet ees,
JsonStreamReaderFactory.JsonStreamReader jsr)
|
protected org.odata4j.format.json.JsonFeedFormatParser.JsonEntry |
parseEntry(org.odata4j.format.json.JsonFormatParser.JsonEntryMetaData jemd,
EdmEntitySet ees,
JsonStreamReaderFactory.JsonStreamReader jsr)
|
protected org.odata4j.format.json.JsonFeedFormatParser.JsonFeed |
parseFeed(EdmEntitySet ees,
JsonStreamReaderFactory.JsonStreamReader jsr)
|
protected org.odata4j.format.json.JsonFormatParser.JsonEntryMetaData |
parseMetadata(JsonStreamReaderFactory.JsonStreamReader jsr)
|
protected void |
resolveEntityType(org.odata4j.format.json.JsonFeedFormatParser.JsonEntry entry)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COUNT_PROPERTY
protected static final String COUNT_PROPERTY
- See Also:
- Constant Field Values
DATA_PROPERTY
protected static final String DATA_PROPERTY
- See Also:
- Constant Field Values
DEFERRED_PROPERTY
protected static final String DEFERRED_PROPERTY
- See Also:
- Constant Field Values
entityKey
protected OEntityKey entityKey
entitySetName
protected String entitySetName
ETAG_PROPERTY
protected static final String ETAG_PROPERTY
- See Also:
- Constant Field Values
isResponse
protected boolean isResponse
metadata
protected EdmDataServices metadata
METADATA_PROPERTY
protected static final String METADATA_PROPERTY
- See Also:
- Constant Field Values
NEXT_PROPERTY
protected static final String NEXT_PROPERTY
- See Also:
- Constant Field Values
parseType
protected EdmType parseType
RESULTS_PROPERTY
protected static final String RESULTS_PROPERTY
- See Also:
- Constant Field Values
TYPE_PROPERTY
protected static final String TYPE_PROPERTY
- See Also:
- Constant Field Values
URI_PROPERTY
protected static final String URI_PROPERTY
- See Also:
- Constant Field Values
version
protected ODataVersion version
JsonFormatParser
protected JsonFormatParser(Settings settings)
addProperty
protected EdmEntitySet addProperty(org.odata4j.format.json.JsonFeedFormatParser.JsonEntry entry,
EdmEntitySet ees,
String name,
JsonStreamReaderFactory.JsonStreamReader jsr)
- adds the property. This property can be a navigation property too. In this
case a link will be added. If it's the meta data the information will be
added to the entry too.
ensureEndArray
protected void ensureEndArray(JsonStreamReaderFactory.JsonStreamReader.JsonEvent event)
ensureEndObject
protected void ensureEndObject(JsonStreamReaderFactory.JsonStreamReader.JsonEvent event)
ensureEndProperty
protected void ensureEndProperty(JsonStreamReaderFactory.JsonStreamReader.JsonEvent event)
ensureNext
protected void ensureNext(JsonStreamReaderFactory.JsonStreamReader jsr)
ensureStartArray
protected void ensureStartArray(JsonStreamReaderFactory.JsonStreamReader.JsonEvent event)
ensureStartObject
protected void ensureStartObject(JsonStreamReaderFactory.JsonStreamReader.JsonEvent event)
ensureStartProperty
protected void ensureStartProperty(JsonStreamReaderFactory.JsonStreamReader.JsonEvent event)
ensureStartProperty
protected void ensureStartProperty(JsonStreamReaderFactory.JsonStreamReader.JsonEvent event,
String name)
getValue
protected org.odata4j.format.json.JsonFormatParser.JsonObjectPropertyValue getValue(JsonStreamReaderFactory.JsonStreamReader.JsonEvent event,
EdmEntitySet ees,
String name,
JsonStreamReaderFactory.JsonStreamReader jsr,
org.odata4j.format.json.JsonFeedFormatParser.JsonEntry entry)
parseEntry
protected org.odata4j.format.json.JsonFeedFormatParser.JsonEntry parseEntry(EdmEntitySet ees,
JsonStreamReaderFactory.JsonStreamReader jsr)
parseEntry
protected org.odata4j.format.json.JsonFeedFormatParser.JsonEntry parseEntry(org.odata4j.format.json.JsonFormatParser.JsonEntryMetaData jemd,
EdmEntitySet ees,
JsonStreamReaderFactory.JsonStreamReader jsr)
parseFeed
protected org.odata4j.format.json.JsonFeedFormatParser.JsonFeed parseFeed(EdmEntitySet ees,
JsonStreamReaderFactory.JsonStreamReader jsr)
parseMetadata
protected org.odata4j.format.json.JsonFormatParser.JsonEntryMetaData parseMetadata(JsonStreamReaderFactory.JsonStreamReader jsr)
resolveEntityType
protected void resolveEntityType(org.odata4j.format.json.JsonFeedFormatParser.JsonEntry entry)
http://odata4j.org