@TitleProperty(name="name") public class DefaultMedium extends ISOMetadata implements Medium
MD_Medium
└─densityUnits…… Units of measure for the recording density.Limitations:
XML instead.Defined in the sis-metadata module
identifiers| Constructor and Description |
|---|
DefaultMedium()
Constructs an initially empty medium.
|
DefaultMedium(Medium object)
Constructs a new instance initialized with the values from the specified metadata object.
|
| Modifier and Type | Method and Description |
|---|---|
static DefaultMedium |
castOrCopy(Medium object)
Returns a SIS metadata implementation with the values of the given arbitrary implementation.
|
Collection<Double> |
getDensities()
Deprecated.
As of ISO 19115:2014, replaced by
getDensity(). |
Double |
getDensity()
Returns the density at which the data is recorded.
|
Unit<?> |
getDensityUnits()
Returns the units of measure for the recording density.
|
Identifier |
getIdentifier()
Returns a unique identifier for an instance of the medium.
|
Collection<MediumFormat> |
getMediumFormats()
Returns the method used to write to the medium.
|
InternationalString |
getMediumNote()
Returns a description of other limitations or requirements for using the medium.
|
MediumName |
getName()
Returns the name of the medium on which the resource can be received.
|
Integer |
getVolumes()
Returns the number of items in the media identified.
|
void |
setDensities(Collection<? extends Double> newValues)
Deprecated.
As of ISO 19115:2014, replaced by
setDensity(Double). |
void |
setDensity(Double newValue)
Sets density at which the data is recorded.
|
void |
setDensityUnits(Unit<?> newValue)
Sets the units of measure for the recording density.
|
void |
setIdentifier(Identifier newValue)
Sets a unique identifier for an instance of the medium.
|
void |
setMediumFormats(Collection<? extends MediumFormat> newValues)
Sets the method used to write to the medium.
|
void |
setMediumNote(InternationalString newValue)
Sets a description of other limitations or requirements for using the medium.
|
void |
setName(MediumName newValue)
Sets the name of the medium on which the resource can be received.
|
void |
setVolumes(Integer newValue)
Sets the number of items in the media identified.
|
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 DefaultMedium()
public DefaultMedium(Medium object)
object - the metadata to copy values from, or null if none.castOrCopy(Medium)public static DefaultMedium castOrCopy(Medium object)
null, then this method returns null.DefaultMedium, then it is returned unchanged.DefaultMedium 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 MediumName getName()
public void setName(MediumName newValue)
newValue - the new name.@ValueRange(minimum=0.0, isMinIncluded=false) @UML(identifier="density", obligation=OPTIONAL, specification=ISO_19115) public Double getDensity()
null.public void setDensity(Double newValue)
newValue - the new density.IllegalArgumentException - if the given value is NaN, zero or negative.@Deprecated public Collection<Double> getDensities()
getDensity().getDensities in interface Mediumnull.@Deprecated public void setDensities(Collection<? extends Double> newValues)
setDensity(Double).newValues - the new densities.public Unit<?> getDensityUnits()
getDensityUnits in interface Mediumnull.public void setDensityUnits(Unit<?> newValue)
newValue - the new density units.@ValueRange(minimum=0.0) public Integer getVolumes()
getVolumes in interface Mediumnull.public void setVolumes(Integer newValue)
newValue - the new volumes, or null.IllegalArgumentException - if the given value is negative.public Collection<MediumFormat> getMediumFormats()
getMediumFormats in interface Mediumnull.public void setMediumFormats(Collection<? extends MediumFormat> newValues)
newValues - the new medium formats.public InternationalString getMediumNote()
getMediumNote in interface Mediumnull.public void setMediumNote(InternationalString newValue)
newValue - the new medium note.@UML(identifier="identifier", obligation=OPTIONAL, specification=ISO_19115) public Identifier getIdentifier()
null if none.public void setIdentifier(Identifier newValue)
newValue - the new identifier.Copyright © 2010–2017 The Apache Software Foundation. All rights reserved.