public interface Entity extends Linked, Annotatable
Modifier and Type | Method and Description |
---|---|
Entity |
addProperty(Property property)
Add property to this Entity.
|
URI |
getBaseURI()
Gets base URI.
|
Link |
getEditLink()
Gets entity edit link.
|
String |
getETag()
Gets ETag.
|
URI |
getId()
Gets entity ID.
|
URI |
getMediaContentSource()
Gets media content resource.
|
String |
getMediaContentType()
Gets media content type.
|
List<Link> |
getMediaEditLinks()
Gets media entity links.
|
String |
getMediaETag()
ETag of the binary stream represented by this media entity or named stream property.
|
List<ODataOperation> |
getOperations()
Gets operations.
|
List<Property> |
getProperties()
Gets properties.
|
Property |
getProperty(String name)
Gets property with given name.
|
Link |
getSelfLink()
Gets entity self link.
|
String |
getType()
Gets entity type.
|
boolean |
isMediaEntity()
Checks if the current entity is a media entity.
|
void |
setEditLink(Link editLink)
Sets entity edit link.
|
void |
setId(URI id)
Sets entity ID.
|
void |
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 |
setType(String type)
Sets entity type.
|
getAssociationLink, getAssociationLinks, getNavigationBinding, getNavigationBindings, getNavigationLink, getNavigationLinks
getAnnotations
String getETag()
URI getBaseURI()
String getType()
void setType(String type)
type
- entity type.URI getId()
void setId(URI id)
id
- entity ID.Link getSelfLink()
void setSelfLink(Link selfLink)
selfLink
- self link.Link getEditLink()
void setEditLink(Link editLink)
editLink
- edit link.List<ODataOperation> getOperations()
Entity addProperty(Property property)
property
- property which is addedProperty getProperty(String name)
name
- property nameString getMediaContentType()
URI getMediaContentSource()
void setMediaContentSource(URI mediaContentSource)
mediaContentSource
- media content source.void setMediaContentType(String mediaContentType)
mediaContentType
- media content type.String getMediaETag()
void setMediaETag(String eTag)
eTag
- media ETag valueboolean isMediaEntity()
Copyright © 2013–2015 The Apache Software Foundation. All rights reserved.