public interface ResourceRelationship extends OsidRelationship
ResourceRelationship relates two resources.
| Modifier and Type | Method and Description |
|---|---|
Resource |
getDestinationResource()
Gets the
Resource. |
Id |
getDestinationResourceId()
Gets the destination resource
Id. |
ResourceRelationshipRecord |
getResourceRelationshipRecord(Type resourceRelationshipRecordType)
Gets the resource relationship record corresponding to the given
ResourceRelationship record Type. |
Resource |
getSourceResource()
Gets the
Resource. |
Id |
getSourceResourceId()
Gets the source resource
Id. |
getEndReason, getEndReasonId, hasEndReasongetDescription, getDisplayName, getGenusType, isOfGenusTypegetId, isCurrentgetRecordTypes, hasRecordTypegetProperties, getPropertiesByRecordTypegetEndDate, getStartDate, isEffectiveId getSourceResourceId()
Id. Id mandatory - This method must be implemented. Resource getSourceResource() throws OperationFailedException
Resource. OperationFailedException - unable to complete requestmandatory - This method must be implemented. Id getDestinationResourceId()
Id. Id mandatory - This method must be implemented. Resource getDestinationResource() throws OperationFailedException
Resource. OperationFailedException - unable to complete requestmandatory - This method must be implemented. ResourceRelationshipRecord getResourceRelationshipRecord(Type resourceRelationshipRecordType) throws OperationFailedException
ResourceRelationship record Type. This
method is used to retrieve an object implementing the requested
record. The resourceRelationshipRecordType may be the
Type returned in getRecordTypes() or any
of its parents in a Type hierarchy where
hasRecordType(resourceRelationshipRecordType) is true
.resourceRelationshipRecordType - the type of the record to
retrieveNullArgumentException -
resourceRelationshipRecordType is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(resourceRelationshipRecordType) is
false mandatory - This method must be implemented.