org.geotoolkit.metadata.iso.citation
Class DefaultContact

Object
  extended by AbstractMetadata
      extended by ModifiableMetadata
          extended by MetadataEntity
              extended by DefaultContact
All Implemented Interfaces:
Serializable, Cloneable, LenientComparable, IdentifiedObject, Contact

@ThreadSafe
public class DefaultContact
extends MetadataEntity
implements Contact

Information required to enable contact with the responsible person and/or organization.

Since:
2.1
Version:
3.19
Author:
Martin Desruisseaux (IRD, Geomatys), Touraïvane (IRD), Cédric Briançon (Geomatys)
See Also:
Serialized Form
Module:
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

DefaultContact

public DefaultContact()
Constructs an initially empty contact.


DefaultContact

public DefaultContact(Contact source)
Constructs a metadata entity initialized with the values from the specified metadata.

Parameters:
source - The metadata to copy, or null if none.
Since:
2.4

DefaultContact

public DefaultContact(OnlineResource resource)
Constructs a contact initialized to the specified online resource.

Parameters:
resource - The on-line information that can be used to contact the individual or organization, or null if none.
Method Detail

castOrCopy

public static DefaultContact castOrCopy(Contact object)
Returns a Geotk metadata implementation with the same values than the given arbitrary implementation. If the given object is 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).

Parameters:
object - The object to get as a Geotk implementation, or null if none.
Returns:
A Geotk implementation containing the values of the given object (may be the given object itself), or null if the argument was null.
Since:
3.18

getAddress

public Address getAddress()
Returns the physical and email address at which the organization or individual may be contacted. Returns null if none.

Specified by:
getAddress in interface Contact

setAddress

public void setAddress(Address newValue)
Sets the physical and email address at which the organization or individual may be contacted.

Parameters:
newValue - The new address.

getContactInstructions

public InternationalString getContactInstructions()
Returns supplemental instructions on how or when to contact the individual or organization. Returns null if none.

Specified by:
getContactInstructions in interface Contact

setContactInstructions

public void setContactInstructions(InternationalString newValue)
Sets supplemental instructions on how or when to contact the individual or organization.

Parameters:
newValue - The new contact instructions.

getOnlineResource

public OnlineResource getOnlineResource()
Return on-line information that can be used to contact the individual or organization. Returns null if none.

Specified by:
getOnlineResource in interface Contact

setOnlineResource

public void setOnlineResource(OnlineResource newValue)
Sets on-line information that can be used to contact the individual or organization.

Parameters:
newValue - The new online resource.

getPhone

public Telephone getPhone()
Returns telephone numbers at which the organization or individual may be contacted. Returns null if none.

Specified by:
getPhone in interface Contact

setPhone

public void setPhone(Telephone newValue)
Sets telephone numbers at which the organization or individual may be contacted.

Parameters:
newValue - The new telephone.

getHoursOfService

public InternationalString getHoursOfService()
Returns time period (including time zone) when individuals can contact the organization or individual. Returns null if none.

Specified by:
getHoursOfService in interface Contact

setHoursOfService

public void setHoursOfService(InternationalString newValue)
Sets time period (including time zone) when individuals can contact the organization or individual.

Parameters:
newValue - The new hours of service.


Copyright © 2009-2013 Geotoolkit.org. All Rights Reserved.