public interface Comment extends OsidRelationship
A Comment represents a comment and/or rating related to
a reference object in a book.
| Modifier and Type | Method and Description |
|---|---|
Agent |
getCommentingAgent()
Gets the agent who created this comment.
|
Id |
getCommentingAgentId()
Gets the
Id of the agent who created this comment. |
Resource |
getCommentor()
Gets the resource who created this comment.
|
Id |
getCommentorId()
Gets the
Id of the resource who created this comment. |
CommentRecord |
getCommentRecord(Type commentRecordType)
Gets the comment record corresponding to the given
Comment
record Type. |
Grade |
getRating()
Gets the
Grade. |
Id |
getRatingId()
Gets the
Id of the Grade. |
Id |
getReferenceId()
Gets the
Id of the referenced object to which this
comment pertains. |
DisplayText |
getText()
Gets the comment text.
|
boolean |
hasRating()
Tests if this comment includes a rating.
|
getEndReason, getEndReasonId, hasEndReasongetDescription, getDisplayName, getGenusType, isOfGenusTypegetId, isCurrentgetRecordTypes, hasRecordTypegetProperties, getPropertiesByRecordTypegetEndDate, getStartDate, isEffectiveId getReferenceId()
Id of the referenced object to which this
comment pertains. Id mandatory - This method must be implemented. Id getCommentorId()
Id of the resource who created this comment. Resource Id mandatory - This method must be implemented. Resource getCommentor() throws OperationFailedException
Resource OperationFailedException - unable to complete requestmandatory - This method must be implemented. Id getCommentingAgentId()
Id of the agent who created this comment. Agent Id mandatory - This method must be implemented. Agent getCommentingAgent() throws OperationFailedException
Agent OperationFailedException - unable to complete requestmandatory - This method must be implemented. DisplayText getText()
mandatory - This method must be implemented. boolean hasRating()
true if this comment includes a rating,
false otherwisemandatory - This method must be implemented. Id getRatingId()
Id of the Grade. Agent Id IllegalStateException - hasRating() is
false mandatory - This method must be implemented. Grade getRating() throws OperationFailedException
Grade. Grade IllegalStateException - hasRating() is
false OperationFailedException - unable to complete requestmandatory - This method must be implemented. CommentRecord getCommentRecord(Type commentRecordType) throws OperationFailedException
Comment
record Type. This method is used to retrieve an
object implementing the requested record. The commentRecordType
may be the Type returned in
getRecordTypes() or any of its parents in a Type
hierarchy where hasRecordType(commentRecordType)
is true .commentRecordType - the type of comment record to retrieveNullArgumentException - commentRecordType
is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(commentRecordType) is false
mandatory - This method must be implemented.