org.geotools.metadata.iso.distribution
Class MediumImpl

java.lang.Object
  extended by org.geotools.metadata.AbstractMetadata
      extended by org.geotools.metadata.ModifiableMetadata
          extended by org.geotools.metadata.iso.MetadataEntity
              extended by org.geotools.metadata.iso.distribution.MediumImpl
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, org.opengis.metadata.distribution.Medium

public class MediumImpl
extends MetadataEntity
implements org.opengis.metadata.distribution.Medium

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

Since:
2.1
Version:
$Id: MediumImpl.java 31557 2008-09-19 20:02:35Z desruisseaux $
Author:
Martin Desruisseaux (IRD), Touraïvane
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.geotools.metadata.AbstractMetadata
LOGGER
 
Constructor Summary
MediumImpl()
          Constructs an initially empty medium.
MediumImpl(org.opengis.metadata.distribution.Medium source)
          Constructs a metadata entity initialized with the values from the specified metadata.
 
Method Summary
 java.util.Collection<java.lang.Double> getDensities()
          Returns the density at which the data is recorded.
 javax.measure.unit.Unit getDensityUnits()
          Returns the units of measure for the recording density.
 java.util.Collection<org.opengis.metadata.distribution.MediumFormat> getMediumFormats()
          Returns the method used to write to the medium.
 org.opengis.util.InternationalString getMediumNote()
          Returns a description of other limitations or requirements for using the medium.
 org.opengis.metadata.distribution.MediumName getName()
          Returns the name of the medium on which the resource can be received.
 java.lang.Integer getVolumes()
          Returns the number of items in the media identified.
 void setDensities(java.util.Collection<? extends java.lang.Double> newValues)
          Set density at which the data is recorded.
 void setDensityUnits(javax.measure.unit.Unit newValue)
          Set the units of measure for the recording density.
 void setMediumFormats(java.util.Collection<? extends org.opengis.metadata.distribution.MediumFormat> newValues)
          Set the method used to write to the medium.
 void setMediumNote(org.opengis.util.InternationalString newValue)
          Set a description of other limitations or requirements for using the medium.
 void setName(org.opengis.metadata.distribution.MediumName newValue)
          Set the name of the medium on which the resource can be received.
 void setVolumes(java.lang.Integer newValue)
          Set the number of items in the media identified.
 
Methods inherited from class org.geotools.metadata.iso.MetadataEntity
ensureNonNull, getStandard
 
Methods inherited from class org.geotools.metadata.ModifiableMetadata
checkWritePermission, clone, copyCollection, copyList, freeze, isModifiable, nonNullCollection, nonNullList, nonNullSet, unmodifiable
 
Methods inherited from class org.geotools.metadata.AbstractMetadata
asMap, asTree, equals, getInterface, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MediumImpl

public MediumImpl()
Constructs an initially empty medium.


MediumImpl

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

Since:
2.4
Method Detail

getName

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

Specified by:
getName in interface org.opengis.metadata.distribution.Medium

setName

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


getDensityUnits

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

Specified by:
getDensityUnits in interface org.opengis.metadata.distribution.Medium

setDensityUnits

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


getVolumes

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

Specified by:
getVolumes in interface org.opengis.metadata.distribution.Medium

setVolumes

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


getMediumFormats

public java.util.Collection<org.opengis.metadata.distribution.MediumFormat> getMediumFormats()
Returns the method used to write to the medium.

Specified by:
getMediumFormats in interface org.opengis.metadata.distribution.Medium

setMediumFormats

public void setMediumFormats(java.util.Collection<? extends org.opengis.metadata.distribution.MediumFormat> newValues)
Set the method used to write to the medium.


getMediumNote

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

Specified by:
getMediumNote in interface org.opengis.metadata.distribution.Medium

setMediumNote

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


getDensities

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

Specified by:
getDensities in interface org.opengis.metadata.distribution.Medium

setDensities

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



Copyright © 1996-2010 Geotools. All Rights Reserved.