Package org.dspace.content
Class Relationship
java.lang.Object
org.dspace.content.Relationship
- All Implemented Interfaces:
ReloadableEntity<Integer>
This class represents a relationship
It has a leftItem and a rightItem which are both DSpaceObjects
that have a specified RelationshipType that links them together
It also has a left and right place column that works just like a normal DSpace metadata place column
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProtected constructor, create object using:DSpaceCRUDService.create(Context)} -
Method Summary
Modifier and TypeMethodDescriptiongetID()Standard getter for the ID for this RelationshipGetter forlatestVersionStatus.Standard getter for the leftItem fieldintStandard getter for the leftPlace Integer in this RelationshipStandard getter for the leftwardValue String in this RelationshipStandard getter for the relationshipType fieldStandard getter for the rightItem Item object in this RelationshipintStandard getter for the rightPlace Integer in this RelationshipStandard getter for the rightwardValue String in this RelationshipvoidStandard setter for the ID fieldvoidsetLatestVersionStatus(Relationship.LatestVersionStatus latestVersionStatus) Setter forlatestVersionStatus.voidsetLeftItem(Item leftItem) Standard setter for the leftItem fieldvoidsetLeftPlace(int leftPlace) Standard setter for the leftPlace Integer in this RelationshipvoidsetLeftwardValue(String leftwardValue) Standard setter for the leftwardValue String in this RelationshipvoidsetRelationshipType(RelationshipType relationshipType) Standard setter for the relationshipType field for the RelationshipvoidsetRightItem(Item rightItem) Standard setter for the rightItem Item object in this RelationshipvoidsetRightPlace(int rightPlace) Standard setter for the rightPlace Integer in this RelationshipvoidsetRightwardValue(String rightwardValue) Standard setter for the rightwardValue String in this Relationship
-
Field Details
-
id
The Integer ID field for this object This is automatically generated
-
-
Constructor Details
-
Relationship
protected Relationship()Protected constructor, create object using:DSpaceCRUDService.create(Context)}
-
-
Method Details
-
setId
Standard setter for the ID field- Parameters:
id- The ID to be set
-
getLeftItem
Standard getter for the leftItem field- Returns:
- The leftItem Item object in this relationship
-
setLeftItem
Standard setter for the leftItem field- Parameters:
leftItem- The leftItem Item object that the leftItem field should be set to
-
getRelationshipType
Standard getter for the relationshipType field- Returns:
- The relationshipType RelationshipType object in this relationship
-
setRelationshipType
Standard setter for the relationshipType field for the Relationship- Parameters:
relationshipType- The relationshipType that will be set in this Relationship
-
getRightItem
Standard getter for the rightItem Item object in this Relationship- Returns:
- the rightItem Item object
-
setRightItem
Standard setter for the rightItem Item object in this Relationship- Parameters:
rightItem- The rightItem Item object that will be used in this relationship
-
getLeftPlace
public int getLeftPlace()Standard getter for the leftPlace Integer in this Relationship- Returns:
- The leftPlace integer for this relationship
-
setLeftPlace
public void setLeftPlace(int leftPlace) Standard setter for the leftPlace Integer in this Relationship- Parameters:
leftPlace- the leftPlace Integer that will be used in this relationship
-
getRightPlace
public int getRightPlace()Standard getter for the rightPlace Integer in this Relationship- Returns:
- the rightPlace integer for this relationship
-
setRightPlace
public void setRightPlace(int rightPlace) Standard setter for the rightPlace Integer in this Relationship- Parameters:
rightPlace- the rightPlace Integer that will be used in this relationship
-
getLeftwardValue
Standard getter for the leftwardValue String in this Relationship- Returns:
- the leftwardValue String for this relationship
-
setLeftwardValue
Standard setter for the leftwardValue String in this Relationship- Parameters:
leftwardValue- the leftwardValue String that will be used in this relationship
-
getRightwardValue
Standard getter for the rightwardValue String in this Relationship- Returns:
- the rightwardValue string for this relationship
-
setRightwardValue
Standard setter for the rightwardValue String in this Relationship- Parameters:
rightwardValue- the rightwardValue String that will be used in this relationship
-
getLatestVersionStatus
Getter forlatestVersionStatus.- Returns:
- the latest version status of this relationship.
-
setLatestVersionStatus
Setter forlatestVersionStatus.- Parameters:
latestVersionStatus- the new latest version status for this relationship.
-
getID
Standard getter for the ID for this Relationship- Specified by:
getIDin interfaceReloadableEntity<Integer>- Returns:
- The ID of this relationship
-