public class Entity extends Linked
Constructor and Description |
---|
Entity() |
Modifier and Type | Method and Description |
---|---|
Entity |
addProperty(Property property)
Add property to this Entity.
|
boolean |
equals(Object o) |
Link |
getEditLink()
Gets entity edit link.
|
String |
getETag()
Gets ETag.
|
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<Operation> |
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.
|
int |
hashCode() |
boolean |
isMediaEntity()
Checks if the current entity is a media entity.
|
void |
setEditLink(Link editLink)
Sets entity edit link.
|
void |
setETag(String eTag)
Sets ETag
|
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.
|
String |
toString() |
getAssociationLink, getAssociationLinks, getNavigationBinding, getNavigationBindings, getNavigationLink, getNavigationLinks, getOneByTitle
getBaseURI, getId, getTitle, setBaseURI, setCommonProperty, setId
getAnnotations
public String getETag()
public void setETag(String eTag)
eTag
- ETagpublic String getType()
public void setType(String type)
type
- entity type.public Link getSelfLink()
public void setSelfLink(Link selfLink)
selfLink
- self link.public Link getEditLink()
public void setEditLink(Link editLink)
editLink
- edit link.public Entity addProperty(Property property)
property
- property which is addedpublic Property getProperty(String name)
name
- property namepublic String getMediaContentType()
public void setMediaContentType(String mediaContentType)
mediaContentType
- media content type.public URI getMediaContentSource()
public void setMediaContentSource(URI mediaContentSource)
mediaContentSource
- media content source.public String getMediaETag()
public void setMediaETag(String eTag)
eTag
- media ETag valuepublic boolean isMediaEntity()
Copyright © 2013–2018 The Apache Software Foundation. All rights reserved.