Interface Address
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject
An Address for a Resource . The detailed components of
the Address are maintained in the AddressRecord while
getAddressText() supplies a usable form of the address. The genus
Type of the Address indicates the kind of address such as
email or phone number.
-
Method Summary
Modifier and TypeMethodDescriptiongetAddressRecord(Type addressRecordType) Gets the address record corresponding to the givenAddressrecordType.This method must be used to retrieve an object implementing the requested record.Gets the textual representation of this address.Gets the resource to which this address belongs.Gets the resourceIdto which this address belongs.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.
-
Method Details
-
getResourceId
Id getResourceId()Gets the resourceIdto which this address belongs. All addresses belong to one resource but may be used for contacts among multiple other resources.- Returns:
- a resource
Id - Compliance:
mandatory- This method must be implemented.
-
getResource
Gets the resource to which this address belongs. All addresses belong to one resource but may be used for contacts among multiple other resources.- Returns:
- a resource
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getAddressText
DisplayText getAddressText()Gets the textual representation of this address.- Returns:
- the address
- Compliance:
mandatory- This method must be implemented.
-
getAddressRecord
Gets the address record corresponding to the givenAddressrecordType.This method must be used to retrieve an object implementing the requested record. TheaddressRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(addressRecordType)istrue.- Parameters:
addressRecordType- the type of address record to retrieve- Returns:
- the address record
- Throws:
NullArgumentException-addressRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(addressRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-