Class Entity
java.lang.Object
org.apache.olingo.commons.api.data.Annotatable
org.apache.olingo.commons.api.data.AbstractODataObject
org.apache.olingo.commons.api.data.Linked
org.apache.olingo.commons.api.data.Entity
- Direct Known Subclasses:
DeletedEntity
Data representation for a single entity.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddProperty
(Property property) Add property to this Entity.boolean
Gets entity edit link.getETag()
Gets ETag.Gets media content resource.Gets media content type.Gets media entity links.ETag of the binary stream represented by this media entity or named stream property.Gets operations.Gets properties.getProperty
(String name) Gets property with given name.Gets entity self link.getType()
Gets entity type.int
hashCode()
boolean
Checks if the current entity is a media entity.void
setEditLink
(Link editLink) Sets entity edit link.void
Sets ETagvoid
setMediaContentSource
(URI mediaContentSource) Set media content source.void
setMediaContentType
(String mediaContentType) Set media content type.void
setMediaETag
(String eTag) Set media ETag.void
setSelfLink
(Link selfLink) Sets entity self link.void
Sets entity type.toString()
Methods inherited from class org.apache.olingo.commons.api.data.Linked
getAssociationLink, getAssociationLinks, getNavigationBinding, getNavigationBindings, getNavigationLink, getNavigationLinks, getOneByTitle
Methods inherited from class org.apache.olingo.commons.api.data.AbstractODataObject
getBaseURI, getId, getTitle, setBaseURI, setCommonProperty, setId
Methods inherited from class org.apache.olingo.commons.api.data.Annotatable
getAnnotations
-
Constructor Details
-
Entity
public Entity()
-
-
Method Details
-
getETag
Gets ETag.- Returns:
- ETag.
-
setETag
Sets ETag- Parameters:
eTag
- ETag
-
getType
Gets entity type.- Returns:
- entity type.
-
setType
Sets entity type.- Parameters:
type
- entity type.
-
getSelfLink
Gets entity self link.- Returns:
- self link.
-
setSelfLink
Sets entity self link.- Parameters:
selfLink
- self link.
-
getEditLink
Gets entity edit link.- Returns:
- edit link.
-
setEditLink
Sets entity edit link.- Parameters:
editLink
- edit link.
-
getMediaEditLinks
Gets media entity links.- Returns:
- links.
-
getOperations
Gets operations.- Returns:
- operations.
-
addProperty
Add property to this Entity.- Parameters:
property
- property which is added- Returns:
- this Entity for fluid/flow adding
-
getProperties
Gets properties.- Returns:
- properties.
-
getProperty
Gets property with given name.- Parameters:
name
- property name- Returns:
- property with given name if found, null otherwise
-
getMediaContentType
Gets media content type.- Returns:
- media content type.
-
setMediaContentType
Set media content type.- Parameters:
mediaContentType
- media content type.
-
getMediaContentSource
Gets media content resource.- Returns:
- media content resource.
-
setMediaContentSource
Set media content source.- Parameters:
mediaContentSource
- media content source.
-
getMediaETag
ETag of the binary stream represented by this media entity or named stream property.- Returns:
- media ETag value
-
setMediaETag
Set media ETag.- Parameters:
eTag
- media ETag value
-
isMediaEntity
public boolean isMediaEntity()Checks if the current entity is a media entity.- Returns:
- 'TRUE' if is a media entity; 'FALSE' otherwise.
-
equals
-
hashCode
public int hashCode() -
toString
-