public class DefaultMedium extends ISOMetadata implements Medium
Defined in the sis-metadata module
identifiers, LOGGER
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()
Returns the density at which the data is recorded.
|
Unit<?> |
getDensityUnits()
Returns the units of measure for the recording density.
|
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)
Sets density at which the data is recorded.
|
void |
setDensityUnits(Unit<?> newValue)
Sets the units of measure for the recording density.
|
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.
|
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 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) public Collection<Double> getDensities()
getDensities
in interface Medium
null
.public void setDensities(Collection<? extends Double> newValues)
newValues
- The new densities.public Unit<?> getDensityUnits()
getDensityUnits
in interface Medium
null
.public void setDensityUnits(Unit<?> newValue)
newValue
- The new density units.@ValueRange(minimum=0.0) public Integer getVolumes()
getVolumes
in interface Medium
null
.public void setVolumes(Integer newValue)
newValue
- The new volumes.public Collection<MediumFormat> getMediumFormats()
getMediumFormats
in interface Medium
null
.public void setMediumFormats(Collection<? extends MediumFormat> newValues)
newValues
- The new medium formats.public InternationalString getMediumNote()
getMediumNote
in interface Medium
null
.public void setMediumNote(InternationalString newValue)
newValue
- The new medium note.Copyright © 2010–2013 The Apache Software Foundation. All rights reserved.