Class AbstractODataObject
java.lang.Object
org.apache.olingo.commons.api.data.Annotatable
org.apache.olingo.commons.api.data.AbstractODataObject
- Direct Known Subclasses:
AbstractEntityCollection
,Linked
Abstract OData object with basic values (
id
, baseURI
, title
).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets base URI.getId()
Gets ID.getTitle()
Gets title.int
hashCode()
void
setBaseURI
(URI baseURI) Sets base URI.void
setCommonProperty
(String key, String value) Sets property with given key to given value.void
Sets ID.Methods inherited from class org.apache.olingo.commons.api.data.Annotatable
getAnnotations
-
Constructor Details
-
AbstractODataObject
public AbstractODataObject()
-
-
Method Details
-
getBaseURI
Gets base URI.- Returns:
- base URI
-
setBaseURI
Sets base URI.- Parameters:
baseURI
- new base URI
-
getId
Gets ID.- Returns:
- ID.
-
setId
Sets ID.- Parameters:
id
- new ID value
-
getTitle
Gets title.- Returns:
- title
-
setCommonProperty
Sets property with given key to given value.- Parameters:
key
- key of propertyvalue
- new value for property
-
equals
-
hashCode
public int hashCode()
-