Package com.adobe.reef.siren
Class Entity
- java.lang.Object
-
- com.adobe.reef.siren.Entity
-
- Direct Known Subclasses:
EmbeddedLink
,EmbeddedRepresentation
public class Entity extends Object
AnEntity
is a URI-addressable resource that has properties and actions associated with it. It may contain sub-entities and navigational links.
-
-
Constructor Summary
Constructors Constructor Description Entity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
List<Action>
getActions()
Returns the actions.String[]
getClazz()
Returns the class property.List<Entity>
getEntities()
Returns the sub-entities.String
getHref()
Returns the hef property.List<Link>
getLinks()
Returns the links.Map<String,Object>
getProperties()
Returns the properties.String[]
getRel()
Returns the rel property.String
getTitle()
Returns the title property.String
getType()
Returns the type property.int
hashCode()
void
setActions(List<Action> actions)
Sets the actions.void
setClazz(String[] clazz)
Sets the class property.void
setEntities(List<Entity> entities)
Sets the sub-entities.void
setHref(String href)
Sets the href property.void
setLinks(List<Link> links)
Sets the links.void
setProperties(Map<String,Object> properties)
Sets the properties.void
setRel(String[] rel)
Sets the rel property.void
setTitle(String title)
Sets the title property.void
setType(String type)
Sets the type property.String
toString()
-
-
-
Method Detail
-
getClazz
public String[] getClazz()
Returns the class property.- Returns:
- the class
-
setClazz
public void setClazz(String[] clazz)
Sets the class property.- Parameters:
clazz
- the class to set
-
getRel
public String[] getRel()
Returns the rel property.- Returns:
- the rel
-
setRel
public void setRel(String[] rel)
Sets the rel property.- Parameters:
rel
- the rel to set
-
getHref
public String getHref()
Returns the hef property.- Returns:
- the href
-
setHref
public void setHref(String href)
Sets the href property.- Parameters:
href
- the href to set
-
getType
public String getType()
Returns the type property.- Returns:
- the type
-
setType
public void setType(String type)
Sets the type property.- Parameters:
href
- the type to set
-
getTitle
public String getTitle()
Returns the title property.- Returns:
- the title
-
setTitle
public void setTitle(String title)
Sets the title property.- Parameters:
title
- the title to set
-
getProperties
public Map<String,Object> getProperties()
Returns the properties.- Returns:
- the properties
-
setProperties
public void setProperties(Map<String,Object> properties)
Sets the properties.- Parameters:
properties
- the properties to set
-
setEntities
public void setEntities(List<Entity> entities)
Sets the sub-entities.- Parameters:
entities
- the entities to set
-
setLinks
public void setLinks(List<Link> links)
Sets the links.- Parameters:
links
- the links to set
-
setActions
public void setActions(List<Action> actions)
Sets the actions.- Parameters:
actions
- the actions to set
-
-