public class DefaultContact extends ISOMetadata implements Contact
Limitations:
XML instead.Defined in the sis-metadata module
identifiers| 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.
|
freeze, getIdentifierMap, getIdentifiers, getStandardcheckWritePermission, clone, collectionType, copyCollection, copyList, copySet, isModifiable, nonNullCollection, nonNullList, nonNullSet, singleton, unmodifiable, writeCollection, writeList, writeSetasMap, asTreeTable, equals, equals, getInterface, hashCode, isEmpty, prune, toStringpublic 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.@UML(identifier="phone", obligation=OPTIONAL, specification=ISO_19115) public Collection<Telephone> getPhones()
public void setPhones(Collection<? extends Telephone> newValues)
newValues - the new telephones.@Deprecated public Telephone getPhone()
getPhones().TelephoneType.VOICE
or TelephoneType.FACSIMILE FACSIMILE.@Deprecated public void setPhone(Telephone newValue)
setPhones(Collection).setPhones(Collection).newValue - the new telephone, or null if none.@UML(identifier="address", obligation=OPTIONAL, specification=ISO_19115) 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 Contactnull.@Deprecated public void setAddress(Address newValue)
setAddresses(Collection).setAddresses(Collection).newValue - the new address, or null if none.@UML(identifier="onlineResource", obligation=OPTIONAL, specification=ISO_19115) 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 Contactnull.@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 Contactpublic void setHoursOfService(InternationalString newValue)
newValue - the new hours of service.public InternationalString getContactInstructions()
getContactInstructions in interface Contactnull.public void setContactInstructions(InternationalString newValue)
newValue - the new contact instructions, or null if none.@UML(identifier="contactType", obligation=OPTIONAL, specification=ISO_19115) public InternationalString getContactType()
null if none.null if none.public void setContactType(InternationalString newValue)
newValue - the new type of the contact.Copyright © 2010–2017 The Apache Software Foundation. All rights reserved.