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.
Like all OsidObjects, Address is managed by its
OsidSessions and may not be accessed by concurrent processing threads.
-
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, getPropertiesByRecordTypeMethods inherited from interface Extensible
getRecordTypes, hasRecordTypeMethods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface OsidObject
getDescription, getDisplayName, getGenusType, isOfGenusType
-
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.
-