Package org.dspace.app.rest.model
Class RelationshipTypeRest
- java.lang.Object
-
- org.dspace.app.rest.model.RestAddressableModel
-
- org.dspace.app.rest.model.BaseObjectRest<Integer>
-
- org.dspace.app.rest.model.RelationshipTypeRest
-
- All Implemented Interfaces:
Serializable,RestModel
public class RelationshipTypeRest extends BaseObjectRest<Integer>
This class is the REST representation of the RelationshipType model class. This class acts as a data holder for the RelationshipTypeResource class Refer toRelationshipTypefor an explanation of the properties- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringCATEGORYstatic StringNAME-
Fields inherited from class org.dspace.app.rest.model.BaseObjectRest
id
-
Fields inherited from interface org.dspace.app.rest.model.RestModel
AUTHENTICATION, AUTHORIZATION, CONFIGURATION, CORE, DISCOVER, EPERSON, INTEGRATION, ROOT, STATISTICS, SUBMISSION, SYSTEM, TOOLS, VERSIONING, WORKFLOW
-
-
Constructor Summary
Constructors Constructor Description RelationshipTypeRest()
-
Method Summary
-
Methods inherited from class org.dspace.app.rest.model.BaseObjectRest
getErrors, getId, setErrors, setId
-
Methods inherited from class org.dspace.app.rest.model.RestAddressableModel
getEmbedLevel, getProjection, getUniqueType, setEmbedLevel, setProjection
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.dspace.app.rest.model.RestModel
getTypePlural
-
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
CATEGORY
public static final String CATEGORY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getType
public String getType()
-
getCategory
public String getCategory()
- Specified by:
getCategoryin classRestAddressableModel
-
getController
public Class getController()
- Specified by:
getControllerin classRestAddressableModel
-
getLeftwardType
public String getLeftwardType()
-
setLeftwardType
public void setLeftwardType(String leftwardType)
-
getRightwardType
public String getRightwardType()
-
setRightwardType
public void setRightwardType(String rightwardType)
-
isCopyToLeft
public boolean isCopyToLeft()
Generic getter for the copyToLeft- Returns:
- the copyToLeft value of this RelationshipTypeRest
-
setCopyToLeft
public void setCopyToLeft(boolean copyToLeft)
Generic setter for the copyToLeft- Parameters:
copyToLeft- The copyToLeft to be set on this RelationshipTypeRest
-
isCopyToRight
public boolean isCopyToRight()
Generic getter for the copyToRight- Returns:
- the copyToRight value of this RelationshipTypeRest
-
setCopyToRight
public void setCopyToRight(boolean copyToRight)
Generic setter for the copyToRight- Parameters:
copyToRight- The copyToRight to be set on this RelationshipTypeRest
-
getLeftMinCardinality
public Integer getLeftMinCardinality()
-
setLeftMinCardinality
public void setLeftMinCardinality(Integer leftMinCardinality)
-
getLeftMaxCardinality
public Integer getLeftMaxCardinality()
-
setLeftMaxCardinality
public void setLeftMaxCardinality(Integer leftMaxCardinality)
-
getRightMinCardinality
public Integer getRightMinCardinality()
-
setRightMinCardinality
public void setRightMinCardinality(Integer rightMinCardinality)
-
getRightMaxCardinality
public Integer getRightMaxCardinality()
-
setRightMaxCardinality
public void setRightMaxCardinality(Integer rightMaxCardinality)
-
getLeftType
@LinkRest public EntityTypeRest getLeftType()
-
setLeftType
public void setLeftType(EntityTypeRest leftType)
-
getRightType
@LinkRest public EntityTypeRest getRightType()
-
setRightType
public void setRightType(EntityTypeRest rightType)
-
-