org.geotools.metadata.iso.distribution
Class MediumImpl

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

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 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
Martin Desruisseaux, Toura?vane
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.geotools.metadata.iso.MetadataEntity
LOGGER
 
Constructor Summary
MediumImpl()
          Constructs an initially empty medium.
 
Method Summary
 boolean equals(java.lang.Object object)
          Compare this Medium with the specified object for equality.
protected  void freeze()
          Declare this metadata and all its attributes as unmodifiable.
 java.util.Collection getDensities()
          Returns the density at which the data is recorded.
 javax.units.Unit getDensityUnits()
          Returns the units of measure for the recording density.
 java.util.Collection 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.
 int hashCode()
          Returns a hash code value for this series.
 void setDensities(java.util.Collection newValues)
          Set density at which the data is recorded.
 void setDensityUnits(javax.units.Unit newValue)
          Set the units of measure for the recording density.
 void setMediumFormat(java.util.Collection 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.
 java.lang.String toString()
          Returns a string representation of this series.
 
Methods inherited from class org.geotools.metadata.iso.MetadataEntity
appendLineSeparator, checkWritePermission, copyCollection, isModifiable, nonNullCollection, unmodifiable, unmodifiable
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MediumImpl

public MediumImpl()
Constructs an initially empty medium.

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.units.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.units.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 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 if unknown.


getMediumFormats

public java.util.Collection getMediumFormats()
Returns the method used to write to the medium.

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

setMediumFormat

public void setMediumFormat(java.util.Collection 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 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 newValues)
Set density at which the data is recorded. The numbers should be greater than zero.


freeze

protected void freeze()
Declare this metadata and all its attributes as unmodifiable.

Overrides:
freeze in class MetadataEntity

equals

public boolean equals(java.lang.Object object)
Compare this Medium with the specified object for equality.


hashCode

public int hashCode()
Returns a hash code value for this series.


toString

public java.lang.String toString()
Returns a string representation of this series.

To Do:
Provides a more elaborated implementation.


Copyright © GeoTools. All Rights Reserved.