Interface Response
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject, OsidRelationship, Temporal
A Response to an Inquiry . A Response is an
OsidRelationship between an Inquiry and a Resource
.
-
Method Summary
Modifier and TypeMethodDescriptionGets the inquiry.Gets the inquiryId.Gets the responder resource.Gets the responder resourceId.Gets the responding agent.Gets the responding agentId.getResponseRecord(Type responseRecordType) Gets the response record corresponding to the givenResponserecordType.This method is used to retrieve an object implementing the requested record.booleanTests if this response was affirmative.Methods inherited from interface Browsable
getProperties, getPropertiesByRecordTypeModifier and TypeMethodDescriptionGets a list of properties.getPropertiesByRecordType(Type recordType) Gets a list of properties corresponding to the specified record type.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface OsidObject
getDescription, getDisplayName, getGenusType, isOfGenusTypeModifier and TypeMethodDescriptionGets the description associated with this instance of this OSID object.Gets the preferred display name associated with this instance of this OSID object appropriate for display to the user.Gets the genus type of this object.booleanisOfGenusType(Type genusType) Tests if this object is of the given genusType.Methods inherited from interface OsidRelationship
getEndReason, getEndReasonId, hasEndReasonModifier and TypeMethodDescriptionGets a state indicating why this relationship has ended.Gets a stateIdindicating why this relationship has ended.booleanTests if a reason this relationship came to an end is known.Methods inherited from interface Temporal
getEndDate, getStartDate, isEffectiveModifier and TypeMethodDescriptionGets the end date.Gets the start date.booleanTests if the current date is within the start end end dates inclusive.
-
Method Details
-
getInquiryId
Id getInquiryId()Gets the inquiryId.- Returns:
- the inquiry
Id - Compliance:
mandatory- This method must be implemented.
-
getInquiry
Gets the inquiry.- Returns:
- the inquiry
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getResponderId
Id getResponderId()Gets the responder resourceId.- Returns:
- the resource
Id - Compliance:
mandatory- This method must be implemented.
-
getResponder
Gets the responder resource.- Returns:
- the resource
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getRespondingAgentId
Id getRespondingAgentId()Gets the responding agentId.- Returns:
- the agent
Id - Compliance:
mandatory- This method must be implemented.
-
getRespondingAgent
Gets the responding agent.- Returns:
- the agent
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
isAffirmative
boolean isAffirmative()Tests if this response was affirmative.- Returns:
trueif affirmative,falseif negative- Compliance:
mandatory- This method must be implemented.
-
getResponseRecord
Gets the response record corresponding to the givenResponserecordType.This method is used to retrieve an object implementing the requested record. TheresponseRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(responseRecordType)istrue.- Parameters:
responseRecordType- the type of response record to retrieve- Returns:
- the response record
- Throws:
NullArgumentException-responseRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(responseRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-