org.geotoolkit.metadata.iso.distribution
Class DefaultDistribution

Object
  extended by AbstractMetadata
      extended by ModifiableMetadata
          extended by MetadataEntity
              extended by DefaultDistribution
All Implemented Interfaces:
Serializable, Cloneable, LenientComparable, IdentifiedObject, Distribution

@ThreadSafe
public class DefaultDistribution
extends MetadataEntity
implements Distribution

Information about the distributor of and options for obtaining the resource.

Since:
2.1
Version:
3.19
Author:
Martin Desruisseaux (IRD, Geomatys), Touraïvane (IRD), Cédric Briançon (Geomatys)
See Also:
Serialized Form
Module:
metadata/geotk-metadata (download)    View source code for this class

Field Summary
 
Fields inherited from class MetadataEntity
identifiers
 
Fields inherited from class AbstractMetadata
LOGGER
 
Constructor Summary
DefaultDistribution()
          Constructs an initially empty distribution.
DefaultDistribution(Distribution source)
          Constructs a metadata entity initialized with the values from the specified metadata.
 
Method Summary
static DefaultDistribution castOrCopy(Distribution object)
          Returns a Geotk metadata implementation with the same values than the given arbitrary implementation.
 Collection<Format> getDistributionFormats()
          Provides a description of the format of the data to be distributed.
 Collection<Distributor> getDistributors()
          Provides information about the distributor.
 Collection<DigitalTransferOptions> getTransferOptions()
          Provides information about technical means and media by which a resource is obtained from the distributor.
 void setDistributionFormats(Collection<? extends Format> newValues)
          Sets a description of the format of the data to be distributed.
 void setDistributors(Collection<? extends Distributor> newValues)
          Sets information about the distributor.
 void setTransferOptions(Collection<? extends DigitalTransferOptions> newValues)
          Sets information about technical means and media by which a resource is obtained from the distributor.
 
Methods inherited from class MetadataEntity
getIdentifier, getIdentifierMap, getIdentifiers, getStandard
 
Methods inherited from class ModifiableMetadata
checkWritePermission, clone, collectionType, copyCollection, copyList, copySet, freeze, isModifiable, nonNullCollection, nonNullList, nonNullSet, prune, unmodifiable
 
Methods inherited from class AbstractMetadata
asMap, asTree, asTreeTable, equals, equals, getInterface, hashCode, isEmpty, parse, toString
 
Methods inherited from class Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultDistribution

public DefaultDistribution()
Constructs an initially empty distribution.


DefaultDistribution

public DefaultDistribution(Distribution source)
Constructs a metadata entity initialized with the values from the specified metadata.

Parameters:
source - The metadata to copy, or null if none.
Since:
2.4
Method Detail

castOrCopy

public static DefaultDistribution castOrCopy(Distribution object)
Returns a Geotk metadata implementation with the same values than the given arbitrary implementation. If the given object is null, then this method returns null. Otherwise if the given object is already a Geotk implementation, then the given object is returned unchanged. Otherwise a new Geotk implementation is created and initialized to the attribute values of the given object, using a shallow copy operation (i.e. attributes are not cloned).

Parameters:
object - The object to get as a Geotk implementation, or null if none.
Returns:
A Geotk implementation containing the values of the given object (may be the given object itself), or null if the argument was null.
Since:
3.18

getDistributionFormats

public Collection<Format> getDistributionFormats()
Provides a description of the format of the data to be distributed.

Specified by:
getDistributionFormats in interface Distribution

setDistributionFormats

public void setDistributionFormats(Collection<? extends Format> newValues)
Sets a description of the format of the data to be distributed.

Parameters:
newValues - The new distribution formats.

getDistributors

public Collection<Distributor> getDistributors()
Provides information about the distributor.

Specified by:
getDistributors in interface Distribution

setDistributors

public void setDistributors(Collection<? extends Distributor> newValues)
Sets information about the distributor.

Parameters:
newValues - The new distributors.

getTransferOptions

public Collection<DigitalTransferOptions> getTransferOptions()
Provides information about technical means and media by which a resource is obtained from the distributor.

Specified by:
getTransferOptions in interface Distribution

setTransferOptions

public void setTransferOptions(Collection<? extends DigitalTransferOptions> newValues)
Sets information about technical means and media by which a resource is obtained from the distributor.

Parameters:
newValues - The new transfer options.


Copyright © 2009-2012 Geotoolkit.org. All Rights Reserved.