org.geotools.metadata.iso.distribution
Class MediumImpl

Object
  extended by AbstractMetadata
      extended by ModifiableMetadata
          extended by MetadataEntity
              extended by MediumImpl
All Implemented Interfaces:
Serializable, Cloneable, Medium

public class MediumImpl
extends MetadataEntity
implements Medium

Information about the media on which the resource can be distributed.

Since:
2.1
Author:
Martin Desruisseaux (IRD), Touraïvane
See Also:
Serialized Form

Field Summary
 
Fields inherited from class AbstractMetadata
LOGGER
 
Constructor Summary
MediumImpl()
          Constructs an initially empty medium.
MediumImpl(Medium source)
          Constructs a metadata entity initialized with the values from the specified metadata.
 
Method Summary
 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)
          Set density at which the data is recorded.
 void setDensityUnits(Unit newValue)
          Set the units of measure for the recording density.
 void setMediumFormats(Collection<? extends MediumFormat> newValues)
          Set the method used to write to the medium.
 void setMediumNote(InternationalString newValue)
          Set a description of other limitations or requirements for using the medium.
 void setName(MediumName newValue)
          Set the name of the medium on which the resource can be received.
 void setVolumes(Integer newValue)
          Set the number of items in the media identified.
 
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
 
Methods inherited from class Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MediumImpl

public MediumImpl()
Constructs an initially empty medium.


MediumImpl

public MediumImpl(Medium source)
Constructs a metadata entity initialized with the values from the specified metadata.

Since:
2.4
Method Detail

getName

public MediumName getName()
Returns the name of the medium on which the resource can be received.

Specified by:
getName in interface Medium
Returns:
Name of the medium, or null.

setName

public void setName(MediumName newValue)
Set the name of the medium on which the resource can be received.


getDensityUnits

public Unit getDensityUnits()
Returns the units of measure for the recording density.

Specified by:
getDensityUnits in interface Medium
Returns:
Units of measure for the recording density, or null.

setDensityUnits

public void setDensityUnits(Unit newValue)
Set the units of measure for the recording density.


getVolumes

public Integer getVolumes()
Returns the number of items in the media identified. Returns null if unknown.

Specified by:
getVolumes in interface Medium
Returns:
Number of items in the media identified, or null.

setVolumes

public void setVolumes(Integer newValue)
Set the number of items in the media identified. Returns null if unknown.


getMediumFormats

public Collection<MediumFormat> getMediumFormats()
Returns the method used to write to the medium.

Specified by:
getMediumFormats in interface Medium
Returns:
Method used to write to the medium, or null.

setMediumFormats

public void setMediumFormats(Collection<? extends MediumFormat> newValues)
Set the method used to write to the medium.


getMediumNote

public InternationalString getMediumNote()
Returns a description of other limitations or requirements for using the medium.

Specified by:
getMediumNote in interface Medium
Returns:
Description of other limitations for using the medium, or null.

setMediumNote

public void setMediumNote(InternationalString newValue)
Set a description of other limitations or requirements for using the medium.


getDensities

public Collection<Double> getDensities()
Returns the density at which the data is recorded. The numbers should be greater than zero.

Specified by:
getDensities in interface Medium
Returns:
Density at which the data is recorded, or null.

setDensities

public void setDensities(Collection<? extends Double> newValues)
Set density at which the data is recorded. The numbers should be greater than zero.



Copyright © 1996-2014 Geotools. All Rights Reserved.