public class DefaultContact extends ISOMetadata implements Contact
Limitations:
XML
instead.Defined in the sis-metadata
module
identifiers, LOGGER
Constructor and Description |
---|
DefaultContact()
Constructs an initially empty contact.
|
DefaultContact(Contact object)
Constructs a new instance initialized with the values from the specified metadata object.
|
DefaultContact(OnlineResource resource)
Constructs a contact initialized to the specified online resource.
|
Modifier and Type | Method and Description |
---|---|
static DefaultContact |
castOrCopy(Contact object)
Returns a SIS metadata implementation with the values of the given arbitrary implementation.
|
Address |
getAddress()
Deprecated.
As of ISO 19115:2014, replaced by
getAddresses() . |
Collection<Address> |
getAddresses()
Returns the physical and email addresses 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 |
getContactType()
Type of the contact.
|
InternationalString |
getHoursOfService()
Returns the time period (including time zone) when individuals can contact the organization or individual.
|
OnlineResource |
getOnlineResource()
Deprecated.
As of ISO 19115:2014, replaced by
getOnlineResources() . |
Collection<OnlineResource> |
getOnlineResources()
Returns on-line information that can be used to contact the individual or organization.
|
Telephone |
getPhone()
Deprecated.
As of ISO 19115:2014, replaced by
getPhones() . |
Collection<Telephone> |
getPhones()
Returns telephone numbers at which the organization or individual may be contacted.
|
void |
setAddress(Address newValue)
Deprecated.
As of ISO 19115:2014, replaced by
setAddresses(Collection) . |
void |
setAddresses(Collection<? extends Address> newValues)
Sets the physical and email addresses 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 |
setContactType(InternationalString newValue)
Sets new type of the contact.
|
void |
setHoursOfService(InternationalString newValue)
Sets time period (including time zone) when individuals can contact the organization or individual.
|
void |
setOnlineResource(OnlineResource newValue)
Deprecated.
As of ISO 19115:2014, replaced by
setOnlineResources(Collection) . |
void |
setOnlineResources(Collection<? extends OnlineResource> newValues)
Sets on-line information that can be used to contact the individual or organization.
|
void |
setPhone(Telephone newValue)
Deprecated.
As of ISO 19115:2014, replaced by
setPhones(Collection) . |
void |
setPhones(Collection<? extends Telephone> newValues)
Sets telephone numbers at which the organization or individual may be contacted.
|
getIdentifierMap, getIdentifiers, getStandard
checkWritePermission, clone, collectionType, copyCollection, copyList, copySet, freeze, isModifiable, nonNullCollection, nonNullList, nonNullSet, singleton, unmodifiable, writeCollection, writeList, writeSet
asMap, asTreeTable, equals, equals, getInterface, hashCode, isEmpty, prune, toString
public DefaultContact()
public DefaultContact(OnlineResource resource)
resource
- The on-line information that can be used to contact the individual or
organization, or null
if none.public DefaultContact(Contact object)
object
- The metadata to copy values from, or null
if none.castOrCopy(Contact)
public static DefaultContact castOrCopy(Contact object)
null
, then this method returns null
.DefaultContact
, then it is returned unchanged.DefaultContact
instance is created using the
copy constructor
and returned. Note that this is a shallow copy operation, since the other
metadata contained in the given object are not recursively copied.object
- The object to get as a SIS implementation, or null
if none.null
if the argument was null.public Collection<Telephone> getPhones()
public void setPhones(Collection<? extends Telephone> newValues)
newValues
- The new telephones.@Deprecated public Telephone getPhone()
getPhones()
.TelephoneType#VOICE
or FACSIMILE
.@Deprecated public void setPhone(Telephone newValue)
setPhones(Collection)
.setPhones(Collection)
.newValue
- The new telephone, or null
if none.public Collection<Address> getAddresses()
null
.public void setAddresses(Collection<? extends Address> newValues)
newValues
- The new addresses.@Deprecated public Address getAddress()
getAddresses()
.adress
element, or null if none.getAddress
in interface Contact
null
.@Deprecated public void setAddress(Address newValue)
setAddresses(Collection)
.setAddresses(Collection)
.newValue
- The new address, or null
if none.public Collection<OnlineResource> getOnlineResources()
public void setOnlineResources(Collection<? extends OnlineResource> newValues)
newValues
- The new online resources.@Deprecated public OnlineResource getOnlineResource()
getOnlineResources()
.online resource
element, or null if none.getOnlineResource
in interface Contact
null
.@Deprecated public void setOnlineResource(OnlineResource newValue)
setOnlineResources(Collection)
.setOnlineResources(Collection)
.newValue
- The new online resource, or null
if none.public InternationalString getHoursOfService()
getHoursOfService
in interface Contact
null
.public void setHoursOfService(InternationalString newValue)
newValue
- The new hours of service, or null
if none.public InternationalString getContactInstructions()
getContactInstructions
in interface Contact
null
.public void setContactInstructions(InternationalString newValue)
newValue
- The new contact instructions, or null
if none.public InternationalString getContactType()
null
if none.null
if none.public void setContactType(InternationalString newValue)
newValue
- The new type of the contact.Copyright © 2010–2015 The Apache Software Foundation. All rights reserved.