Package org.dspace.content
Class RelationshipType
java.lang.Object
org.dspace.content.RelationshipType
- All Implemented Interfaces:
ReloadableEntity<Integer>
Class representing a RelationshipType
This class contains an Integer ID that will be the unique value and primary key in the database.
This key is automatically generated
It also has a leftType and rightType EntityType that describes the relationshipType together with a leftwardType and
rightwardType.
The cardinality properties describe how many of each relations this relationshipType can support
-
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 of this RelationshipTypeStandard getter for the leftMaxCardinality Integer for this RelationshipTypeStandard getter for the leftMinCardinality Integer for this RelationshipTypeStandard getter for The leftType EntityType for this RelationshipTypeStandard getter for the leftwardType String for this RelationshipTypeStandard getter for the rightMaxCardinality Integer for this RelationshipTypeStandard getter for the rightMinCardinality Integer for this RelationshipTypeStandard getter for The rightType EntityType for this RelationshipTypeStandard getter for the rightwardType String for this RelationshipTypeGeneric getter for tiltedbooleanGeneric getter for the copyToLeftbooleanGeneric getter for the copyToRightvoidsetCopyToLeft(boolean copyToLeft) Generic setter for the copyToLeftvoidsetCopyToRight(boolean copyToRight) Generic setter for the copyToRightvoidStandard getter for the ID of this RelationshipTypevoidsetLeftMaxCardinality(Integer leftMaxCardinality) Standard setter for the leftMaxCardinality Integer for this RelationshipTypevoidsetLeftMinCardinality(Integer leftMinCardinality) Standard setter for the leftMinCardinality Integer for this RelationshipTypevoidsetLeftType(EntityType leftType) Standard setter for the leftType EntityType for this RelationshipTypevoidsetLeftwardType(String leftwardType) Standard setter for the leftwardType String for this RelationshipTypevoidsetRightMaxCardinality(Integer rightMaxCardinality) Standard setter for the rightMaxCardinality Integer for this RelationshipTypevoidsetRightMinCardinality(Integer rightMinCardinality) Standard setter for the rightMinCardinality Integer for this RelationshipTypevoidsetRightType(EntityType rightType) Standard setter for the rightType EntityType for this RelationshipTypevoidsetRightwardType(String rightwardType) Standard setter for the rightwardType String for this RelationshipTypevoidsetTilted(RelationshipType.Tilted tilted) Generic setter for tilted
-
Field Details
-
id
The Integer ID used as a primary key for this database object. This is generated by a sequence
-
-
Constructor Details
-
RelationshipType
protected RelationshipType()Protected constructor, create object using:DSpaceCRUDService.create(Context)}
-
-
Method Details
-
setId
Standard getter for the ID of this RelationshipType- Parameters:
id- The ID that this RelationshipType should receive
-
getLeftType
Standard getter for The leftType EntityType for this RelationshipType- Returns:
- The leftType EntityType of this RelationshipType
-
setLeftType
Standard setter for the leftType EntityType for this RelationshipType- Parameters:
leftType- The leftType EntityType that this RelationshipType should receive
-
getRightType
Standard getter for The rightType EntityType for this RelationshipType- Returns:
- The rightType EntityType of this RelationshipType
-
setRightType
Standard setter for the rightType EntityType for this RelationshipType- Parameters:
rightType- The rightType EntityType that this RelationshipType should receive
-
getLeftwardType
Standard getter for the leftwardType String for this RelationshipType- Returns:
- The leftwardType String of this RelationshipType
-
setLeftwardType
Standard setter for the leftwardType String for this RelationshipType- Parameters:
leftwardType- The leftwardType String that this RelationshipType should receive
-
getRightwardType
Standard getter for the rightwardType String for this RelationshipType- Returns:
- The rightwardType String of this RelationshipType
-
setRightwardType
Standard setter for the rightwardType String for this RelationshipType- Parameters:
rightwardType- The rightwardType String that this RelationshipType should receive
-
getLeftMinCardinality
Standard getter for the leftMinCardinality Integer for this RelationshipType- Returns:
- the leftMinCardinality Integer of this RelationshipType
-
setLeftMinCardinality
Standard setter for the leftMinCardinality Integer for this RelationshipType- Parameters:
leftMinCardinality- The leftMinCardinality Integer that this RelationshipType should receive
-
getLeftMaxCardinality
Standard getter for the leftMaxCardinality Integer for this RelationshipType- Returns:
- the leftMaxCardinality Integer of this RelationshipType
-
setLeftMaxCardinality
Standard setter for the leftMaxCardinality Integer for this RelationshipType- Parameters:
leftMaxCardinality- The leftMaxCardinality Integer that this RelationshipType should receive
-
getRightMinCardinality
Standard getter for the rightMinCardinality Integer for this RelationshipType- Returns:
- the rightMinCardinality Integer of this RelationshipType
-
setRightMinCardinality
Standard setter for the rightMinCardinality Integer for this RelationshipType- Parameters:
rightMinCardinality- The rightMinCardinality Integer that this RelationshipType should receive
-
getRightMaxCardinality
Standard getter for the rightMaxCardinality Integer for this RelationshipType- Returns:
- the rightMaxCardinality Integer of this RelationshipType
-
setRightMaxCardinality
Standard setter for the rightMaxCardinality Integer for this RelationshipType- Parameters:
rightMaxCardinality- The rightMaxCardinality Integer that this RelationshipType should receive
-
isCopyToLeft
public boolean isCopyToLeft()Generic getter for the copyToLeft- Returns:
- the copyToLeft value of this RelationshipType
-
setCopyToLeft
public void setCopyToLeft(boolean copyToLeft) Generic setter for the copyToLeft- Parameters:
copyToLeft- The copyToLeft to be set on this RelationshipType
-
isCopyToRight
public boolean isCopyToRight()Generic getter for the copyToRight- Returns:
- the copyToRight value of this RelationshipType
-
setCopyToRight
public void setCopyToRight(boolean copyToRight) Generic setter for the copyToRight- Parameters:
copyToRight- The copyToRight to be set on this RelationshipType
-
getTilted
Generic getter for tilted- Returns:
- the tilted value of this RelationshipType
-
setTilted
Generic setter for tilted- Parameters:
tilted- The tilted to be set on this RelationshipType
-
getID
Standard getter for the ID of this RelationshipType- Specified by:
getIDin interfaceReloadableEntity<Integer>- Returns:
- The ID of this RelationshipType
-