Package com.adobe.reef.siren
Class Entity
- java.lang.Object
 - 
- com.adobe.reef.siren.Entity
 
 
- 
- Direct Known Subclasses:
 EmbeddedLink,EmbeddedRepresentation
public class Entity extends java.lang.ObjectAnEntityis 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(java.lang.Object obj)java.util.List<Action>getActions()Returns the actions.java.lang.String[]getClazz()Returns the class property.java.util.List<Entity>getEntities()Returns the sub-entities.java.lang.StringgetHref()Returns the hef property.java.util.List<Link>getLinks()Returns the links.java.util.Map<java.lang.String,java.lang.Object>getProperties()Returns the properties.java.lang.String[]getRel()Returns the rel property.java.lang.StringgetTitle()Returns the title property.java.lang.StringgetType()Returns the type property.inthashCode()voidsetActions(java.util.List<Action> actions)Sets the actions.voidsetClazz(java.lang.String[] clazz)Sets the class property.voidsetEntities(java.util.List<Entity> entities)Sets the sub-entities.voidsetHref(java.lang.String href)Sets the href property.voidsetLinks(java.util.List<Link> links)Sets the links.voidsetProperties(java.util.Map<java.lang.String,java.lang.Object> properties)Sets the properties.voidsetRel(java.lang.String[] rel)Sets the rel property.voidsetTitle(java.lang.String title)Sets the title property.voidsetType(java.lang.String type)Sets the type property.java.lang.StringtoString() 
 - 
 
- 
- 
Method Detail
- 
getClazz
public java.lang.String[] getClazz()
Returns the class property.- Returns:
 - the class
 
 
- 
setClazz
public void setClazz(java.lang.String[] clazz)
Sets the class property.- Parameters:
 clazz- the class to set
 
- 
getRel
public java.lang.String[] getRel()
Returns the rel property.- Returns:
 - the rel
 
 
- 
setRel
public void setRel(java.lang.String[] rel)
Sets the rel property.- Parameters:
 rel- the rel to set
 
- 
getHref
public java.lang.String getHref()
Returns the hef property.- Returns:
 - the href
 
 
- 
setHref
public void setHref(java.lang.String href)
Sets the href property.- Parameters:
 href- the href to set
 
- 
getType
public java.lang.String getType()
Returns the type property.- Returns:
 - the type
 
 
- 
setType
public void setType(java.lang.String type)
Sets the type property.- Parameters:
 href- the type to set
 
- 
getTitle
public java.lang.String getTitle()
Returns the title property.- Returns:
 - the title
 
 
- 
setTitle
public void setTitle(java.lang.String title)
Sets the title property.- Parameters:
 title- the title to set
 
- 
getProperties
public java.util.Map<java.lang.String,java.lang.Object> getProperties()
Returns the properties.- Returns:
 - the properties
 
 
- 
setProperties
public void setProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
Sets the properties.- Parameters:
 properties- the properties to set
 
- 
getEntities
public java.util.List<Entity> getEntities()
Returns the sub-entities.- Returns:
 - the entities
 
 
- 
setEntities
public void setEntities(java.util.List<Entity> entities)
Sets the sub-entities.- Parameters:
 entities- the entities to set
 
- 
getLinks
public java.util.List<Link> getLinks()
Returns the links.- Returns:
 - the links
 
 
- 
setLinks
public void setLinks(java.util.List<Link> links)
Sets the links.- Parameters:
 links- the links to set
 
- 
getActions
public java.util.List<Action> getActions()
Returns the actions.- Returns:
 - the actions
 
 
- 
setActions
public void setActions(java.util.List<Action> actions)
Sets the actions.- Parameters:
 actions- the actions to set
 
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object
 
- 
hashCode
public int hashCode()
- Overrides:
 hashCodein classjava.lang.Object
 
- 
equals
public boolean equals(java.lang.Object obj)
- Overrides:
 equalsin classjava.lang.Object
 
 - 
 
 -