public class DefaultContact extends ISOMetadata implements Contact
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()
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 the 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.
|
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 Telephone getPhone()
public void setPhone(Telephone newValue)
newValue
- The new telephone, or null
if none.public Address getAddress()
getAddress
in interface Contact
null
.public void setAddress(Address newValue)
newValue
- The new address, or null
if none.public OnlineResource getOnlineResource()
getOnlineResource
in interface Contact
null
.public void setOnlineResource(OnlineResource newValue)
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.Copyright © 2010–2013 The Apache Software Foundation. All rights reserved.