|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectAbstractMetadata
ModifiableMetadata
MetadataEntity
DefaultContact
@ThreadSafe public class DefaultContact
Information required to enable contact with the responsible person and/or organization.
| metadata/geotk-metadata (download) | View source code for this class |
| Field Summary |
|---|
| Fields inherited from class MetadataEntity |
|---|
identifiers |
| Fields inherited from class AbstractMetadata |
|---|
LOGGER |
| Constructor Summary | |
|---|---|
DefaultContact()
Constructs an initially empty contact. |
|
DefaultContact(Contact source)
Constructs a metadata entity initialized with the values from the specified metadata. |
|
DefaultContact(OnlineResource resource)
Constructs a contact initialized to the specified online resource. |
|
| Method Summary | |
|---|---|
static DefaultContact |
castOrCopy(Contact object)
Returns a Geotk metadata implementation with the same values than the given arbitrary implementation. |
Address |
getAddress()
Returns the physical and email address at which the organization or individual may be contacted. |
InternationalString |
getContactInstructions()
Returns supplemental instructions on how or when to contact the individual or organization. |
InternationalString |
getHoursOfService()
Returns time period (including time zone) when individuals can contact the organization or individual. |
OnlineResource |
getOnlineResource()
Return on-line information that can be used to contact the individual or organization. |
Telephone |
getPhone()
Returns telephone numbers at which the organization or individual may be contacted. |
void |
setAddress(Address newValue)
Sets the physical and email address at which the organization or individual may be contacted. |
void |
setContactInstructions(InternationalString newValue)
Sets supplemental instructions on how or when to contact the individual or organization. |
void |
setHoursOfService(InternationalString newValue)
Sets time period (including time zone) when individuals can contact the organization or individual. |
void |
setOnlineResource(OnlineResource newValue)
Sets on-line information that can be used to contact the individual or organization. |
void |
setPhone(Telephone newValue)
Sets telephone numbers at which the organization or individual may be contacted. |
| Methods inherited from class MetadataEntity |
|---|
getIdentifier, getIdentifierMap, getIdentifiers, getStandard |
| Methods inherited from class ModifiableMetadata |
|---|
checkWritePermission, clone, collectionType, copyCollection, copyList, copySet, freeze, isModifiable, nonNullCollection, nonNullList, nonNullSet, prune, unmodifiable |
| Methods inherited from class AbstractMetadata |
|---|
asMap, asTree, asTreeTable, equals, equals, getInterface, hashCode, isEmpty, parse, toString |
| Methods inherited from class Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultContact()
public DefaultContact(Contact source)
source - The metadata to copy, or null if none.public DefaultContact(OnlineResource resource)
resource - The on-line information that can be used to contact the individual or
organization, or null if none.| Method Detail |
|---|
public static DefaultContact castOrCopy(Contact object)
null, then this method returns null.
Otherwise if the given object is already a Geotk implementation, then the given object is
returned unchanged. Otherwise a new Geotk implementation is created and initialized to the
attribute values of the given object, using a shallow copy operation
(i.e. attributes are not cloned).
object - The object to get as a Geotk implementation, or null if none.
null if the argument was null.public Address getAddress()
null if none.
getAddress in interface Contactpublic void setAddress(Address newValue)
newValue - The new address.public InternationalString getContactInstructions()
null if none.
getContactInstructions in interface Contactpublic void setContactInstructions(InternationalString newValue)
newValue - The new contact instructions.public OnlineResource getOnlineResource()
null if none.
getOnlineResource in interface Contactpublic void setOnlineResource(OnlineResource newValue)
newValue - The new online resource.public Telephone getPhone()
null if none.
getPhone in interface Contactpublic void setPhone(Telephone newValue)
newValue - The new telephone.public InternationalString getHoursOfService()
null if none.
getHoursOfService in interface Contactpublic void setHoursOfService(InternationalString newValue)
newValue - The new hours of service.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||