Class Entity

  • Direct Known Subclasses:
    EmbeddedLink, EmbeddedRepresentation

    public class Entity
    extends Object
    An Entity is a URI-addressable resource that has properties and actions associated with it. It may contain sub-entities and navigational links.
    • Constructor Detail

      • Entity

        public Entity()
    • 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
      • getEntities

        public List<Entity> getEntities()
        Returns the sub-entities.
        Returns:
        the entities
      • setEntities

        public void setEntities​(List<Entity> entities)
        Sets the sub-entities.
        Parameters:
        entities - the entities to set
      • getLinks

        public List<Link> getLinks()
        Returns the links.
        Returns:
        the links
      • setLinks

        public void setLinks​(List<Link> links)
        Sets the links.
        Parameters:
        links - the links to set
      • getActions

        public List<Action> getActions()
        Returns the actions.
        Returns:
        the actions
      • setActions

        public void setActions​(List<Action> actions)
        Sets the actions.
        Parameters:
        actions - the actions to set
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object