Class ODataBinderImpl
java.lang.Object
org.apache.olingo.client.core.serialization.ODataBinderImpl
- All Implemented Interfaces:
ODataBinder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ODataClientprotected static final org.slf4j.LoggerLogger. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(ClientEntity entity, ClientProperty property) Adds the given property to the given entity.protected booleanadd(ClientEntitySet entitySet, ClientEntity entity) getEntity(ClientEntity odataEntity) Gets an Entity from the given OData entity.getEntitySet(ClientEntitySet odataEntitySet) Gets a EntitySet from the given OData entity set.getLink(ClientLink link) Gets a Link from the given OData link.getODataDelta(ResWrap<Delta> resource) getODataEntity(ResWrap<Entity> resource) Gets ODataEntity from the given entity resource.getODataEntitySet(ResWrap<EntityCollection> resource) Gets ODataEntitySet from the given entity set resource.getODataProperty(ResWrap<Property> resource) Gets an ODataProperty from the given property resource.protected ClientPropertygetODataProperty(EdmType type, Property resource) getODataServiceDocument(ServiceDocument resource) Gets ODataServiceDocument from the given service document resource.protected ClientValuegetODataValue(FullQualifiedName type, Valuable valuable, URI contextURL, String metadataETag) getProperty(ClientProperty property) Gets a Property from the given OData property.protected ObjectgetValue(ClientValue value) protected voidlinks(ClientLinked odataLinked, Linked linked) protected voidodataNavigationLinks(EdmType edmType, Linked linked, ClientLinked odataLinked, String metadataETag, URI base)
-
Field Details
-
LOG
protected static final org.slf4j.Logger LOGLogger. -
client
-
-
Constructor Details
-
ODataBinderImpl
-
-
Method Details
-
add
Description copied from interface:ODataBinderAdds the given property to the given entity.- Specified by:
addin interfaceODataBinder- Parameters:
entity- OData entity.property- OData property.- Returns:
- whether add was successful or not.
-
add
-
getODataServiceDocument
Description copied from interface:ODataBinderGets ODataServiceDocument from the given service document resource.- Specified by:
getODataServiceDocumentin interfaceODataBinder- Parameters:
resource- service document resource.- Returns:
- ODataServiceDocument object.
-
getEntitySet
Description copied from interface:ODataBinderGets a EntitySet from the given OData entity set.- Specified by:
getEntitySetin interfaceODataBinder- Parameters:
odataEntitySet- OData entity set.- Returns:
EntityCollectionobject.
-
links
-
getEntity
Description copied from interface:ODataBinderGets an Entity from the given OData entity.- Specified by:
getEntityin interfaceODataBinder- Parameters:
odataEntity- OData entity.- Returns:
Entityobject.
-
getLink
Description copied from interface:ODataBinderGets a Link from the given OData link.- Specified by:
getLinkin interfaceODataBinder- Parameters:
link- OData link.- Returns:
- Link object.
-
getProperty
Description copied from interface:ODataBinderGets a Property from the given OData property.- Specified by:
getPropertyin interfaceODataBinder- Parameters:
property- OData property.- Returns:
- Property object.
-
getValue
-
getODataEntitySet
Description copied from interface:ODataBinderGets ODataEntitySet from the given entity set resource.- Specified by:
getODataEntitySetin interfaceODataBinder- Parameters:
resource- entity set resource.- Returns:
ClientEntitySetobject.
-
getODataEntity
Description copied from interface:ODataBinderGets ODataEntity from the given entity resource.- Specified by:
getODataEntityin interfaceODataBinder- Parameters:
resource- entity resource.- Returns:
ClientEntityobject.
-
getODataProperty
Description copied from interface:ODataBinderGets an ODataProperty from the given property resource.- Specified by:
getODataPropertyin interfaceODataBinder- Parameters:
resource- property resource.- Returns:
ClientPropertyobject.
-
getODataProperty
-
getODataValue
protected ClientValue getODataValue(FullQualifiedName type, Valuable valuable, URI contextURL, String metadataETag) -
getODataDelta
- Specified by:
getODataDeltain interfaceODataBinder
-