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
AnEntityis 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 booleanequals(Object obj)List<Action>getActions()Returns the actions.String[]getClazz()Returns the class property.List<Entity>getEntities()Returns the sub-entities.StringgetHref()Returns the hef property.List<Link>getLinks()Returns the links.Map<String,Object>getProperties()Returns the properties.String[]getRel()Returns the rel property.StringgetTitle()Returns the title property.StringgetType()Returns the type property.inthashCode()voidsetActions(List<Action> actions)Sets the actions.voidsetClazz(String[] clazz)Sets the class property.voidsetEntities(List<Entity> entities)Sets the sub-entities.voidsetHref(String href)Sets the href property.voidsetLinks(List<Link> links)Sets the links.voidsetProperties(Map<String,Object> properties)Sets the properties.voidsetRel(String[] rel)Sets the rel property.voidsetTitle(String title)Sets the title property.voidsetType(String type)Sets the type property.StringtoString()
-
-
-
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
-
-