Class Entity

java.lang.Object
org.dspace.content.Entity

public class Entity extends Object
This class represents an Entity object. An Entity object has an Item that it describes with a list of relationships that it includes as well.
  • Constructor Details

    • Entity

      public Entity(Item item, List<Relationship> relationshipList)
      constructor for the Entity object
      Parameters:
      item - The Item to be included in this Entity object as a property
      relationshipList - The list of relationships
  • Method Details

    • getItem

      public Item getItem()
      Standard getter for the Item for this Entity object
      Returns:
      The Item that is described in this Entity object
    • setItem

      public void setItem(Item item)
      Standard setter for the Item for this Entity object
      Parameters:
      item - The Item to be set
    • getRelationships

      public List<Relationship> getRelationships()
      Standard getter for the list of relationships for the Item in this Entity object
      Returns:
      the list of relationships
    • setRelationships

      public void setRelationships(List<Relationship> relationships)
      Standard setter for the list of relationships for the Item in this Entity object
      Parameters:
      relationships - The list of relationships to be set