Class TelephoneImpl
- Object
-
- AbstractMetadata
-
- ModifiableMetadata
-
- MetadataEntity
-
- TelephoneImpl
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Telephone
public class TelephoneImpl extends MetadataEntity implements Telephone
Telephone numbers for contacting the responsible individual or organization.- Since:
- 2.1
- Author:
- Jody Garnett, Martin Desruisseaux
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class AbstractMetadata
LOGGER
-
-
Constructor Summary
Constructors Constructor Description TelephoneImpl()
Constructs a default telephone.TelephoneImpl(TelephoneType phone)
TelephoneImpl(Telephone source)
Constructs a metadata entity initialized with the values from the specified metadata.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<String>
getFacsimiles()
Returns the telephone numbers of a facsimile machine for the responsible organization or individual.Collection<String>
getVoices()
Returns the telephone numbers by which individuals can speak to the responsible organization or individual.void
setFacsimiles(Collection<? extends String> newValues)
Set the telephone number of a facsimile machine for the responsible organization or individual.void
setVoices(Collection<? extends String> newValues)
Set the telephone numbers by which individuals can speak to the responsible organization or individual.-
Methods inherited from class MetadataEntity
ensureNonNull, getStandard
-
Methods inherited from class ModifiableMetadata
checkWritePermission, clone, copyCollection, copyList, freeze, isModifiable, nonNullCollection, nonNullList, nonNullSet, unmodifiable
-
Methods inherited from class AbstractMetadata
asMap, asTree, equals, getInterface, hashCode, toString
-
-
-
-
Constructor Detail
-
TelephoneImpl
public TelephoneImpl()
Constructs a default telephone.
-
TelephoneImpl
public TelephoneImpl(Telephone source)
Constructs a metadata entity initialized with the values from the specified metadata.- Since:
- 2.4
-
TelephoneImpl
public TelephoneImpl(TelephoneType phone)
-
-
Method Detail
-
getVoices
public Collection<String> getVoices()
Returns the telephone numbers by which individuals can speak to the responsible organization or individual.
-
setVoices
public void setVoices(Collection<? extends String> newValues)
Set the telephone numbers by which individuals can speak to the responsible organization or individual.- Since:
- 2.4
-
getFacsimiles
public Collection<String> getFacsimiles()
Returns the telephone numbers of a facsimile machine for the responsible organization or individual.- Specified by:
getFacsimiles
in interfaceTelephone
- Returns:
- Telephone numbers of a facsimile machine for the responsible organization or individual.
- Since:
- 2.4
-
setFacsimiles
public void setFacsimiles(Collection<? extends String> newValues)
Set the telephone number of a facsimile machine for the responsible organization or individual.- Since:
- 2.4
-
-