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.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(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.String
getHref()
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.String
getTitle()
Returns the title property.java.lang.String
getType()
Returns the type property.int
hashCode()
void
setActions(java.util.List<Action> actions)
Sets the actions.void
setClazz(java.lang.String[] clazz)
Sets the class property.void
setEntities(java.util.List<Entity> entities)
Sets the sub-entities.void
setHref(java.lang.String href)
Sets the href property.void
setLinks(java.util.List<Link> links)
Sets the links.void
setProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
Sets the properties.void
setRel(java.lang.String[] rel)
Sets the rel property.void
setTitle(java.lang.String title)
Sets the title property.void
setType(java.lang.String type)
Sets the type property.java.lang.String
toString()
-
-
-
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:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-