Package org.dspace.content
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 Summary
Constructors Constructor Description Entity(Item item, List<Relationship> relationshipList)constructor for the Entity object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ItemgetItem()Standard getter for the Item for this Entity objectList<Relationship>getRelationships()Standard getter for the list of relationships for the Item in this Entity objectvoidsetItem(Item item)Standard setter for the Item for this Entity objectvoidsetRelationships(List<Relationship> relationships)Standard setter for the list of relationships for the Item in this Entity object
-
-
-
Constructor Detail
-
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 propertyrelationshipList- The list of relationships
-
-
Method Detail
-
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
-
-