public interface Address extends 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.
Modifier and Type | Method and Description |
---|---|
AddressRecord |
getAddressRecord(Type addressRecordType)
Gets the address record corresponding to the given
Address
record Type. |
DisplayText |
getAddressText()
Gets the textual representation of this address.
|
Resource |
getResource()
Gets the resource to which this address belongs.
|
Id |
getResourceId()
Gets the resource
Id to which this address belongs. |
getDescription, getDisplayName, getGenusType, isOfGenusType
getId, isCurrent
getRecordTypes, hasRecordType
getProperties, getPropertiesByRecordType
Id getResourceId()
Id
to which this address belongs. All
addresses belong to one resource but may be used for contacts among
multiple other resources. Id
mandatory
- This method must be implemented. Resource getResource() throws OperationFailedException
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. DisplayText getAddressText()
mandatory
- This method must be implemented. AddressRecord getAddressRecord(Type addressRecordType) throws OperationFailedException
Address
record Type.
This method must be used to
retrieve an object implementing the requested record. The
addressRecordType
may be the Type
returned in
getRecordTypes()
or any of its parents in a Type
hierarchy where hasRecordType(addressRecordType)
is true
.addressRecordType
- the type of address record to retrieveNullArgumentException
- addressRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(addressRecordType)
is false
mandatory
- This method must be implemented.