Class ReadFeedResult
- java.lang.Object
-
- org.apache.olingo.odata2.api.ep.callback.ReadResult
-
- org.apache.olingo.odata2.api.ep.callback.ReadFeedResult
-
public class ReadFeedResult extends ReadResult
AReadFeedResultrepresents an inlined navigation property which points to a feed (in the form of a list ofODataEntryinstances). TheReadFeedResultcontains theEntityProviderReadPropertieswhich were used for read, thenavigationPropertyNameand the read/de-serialized inlined entities. If inlined navigation property isnullabletheReadFeedResulthas thenavigationPropertyNameand aNULLentry set.
-
-
Field Summary
-
Fields inherited from class org.apache.olingo.odata2.api.ep.callback.ReadResult
navigationProperty, readProperties
-
-
Constructor Summary
Constructors Constructor Description ReadFeedResult(EntityProviderReadProperties properties, EdmNavigationProperty navigationProperty, ODataFeed entry, String entryMetadataId)Constructor.Parameters MUST NOT BE NULL.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetParentEntryId()ODataFeedgetResult()Common access method to read result.booleanisFeed()Return whether this entry is afeed(multiplicity of1..m) or a singleentry(multiplicity of0..1or1..1).StringtoString()-
Methods inherited from class org.apache.olingo.odata2.api.ep.callback.ReadResult
getNavigationProperty, getReadProperties
-
-
-
-
Constructor Detail
-
ReadFeedResult
public ReadFeedResult(EntityProviderReadProperties properties, EdmNavigationProperty navigationProperty, ODataFeed entry, String entryMetadataId)
Constructor.Parameters MUST NOT BE NULL.- Parameters:
properties- read properties which are used to read enclosing parent entitynavigationProperty- emd navigation property information of found inline navigation propertyentry- read entities as list ofODataEntryentryMetadataId- MetadataId
-
-
Method Detail
-
getResult
public ODataFeed getResult()
Description copied from class:ReadResultCommon access method to read result.- Specified by:
getResultin classReadResult- Returns:
- an
ODataEntryfor the case of an single read entry or a list ofODataEntryin the case of an read feed.
-
isFeed
public boolean isFeed()
Description copied from class:ReadResultReturn whether this entry is afeed(multiplicity of1..m) or a singleentry(multiplicity of0..1or1..1).- Specified by:
isFeedin classReadResult- Returns:
truefor a feed andfalsefor an entry
-
toString
public String toString()
- Overrides:
toStringin classReadResult
-
getParentEntryId
public String getParentEntryId()
- Returns:
- the rootEntryId
-
-