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