Class DistributionImpl
- Object
-
- AbstractMetadata
-
- ModifiableMetadata
-
- MetadataEntity
-
- DistributionImpl
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Distribution
public class DistributionImpl extends MetadataEntity implements Distribution
Information about the distributor of and options for obtaining the resource.- Since:
- 2.1
- Author:
- Martin Desruisseaux (IRD), Touraïvane
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class AbstractMetadata
LOGGER
-
-
Constructor Summary
Constructors Constructor Description DistributionImpl()
Constructs an initially empty distribution.DistributionImpl(Distribution source)
Constructs a metadata entity initialized with the values from the specified metadata.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
Set a description of the format of the data to be distributed.void
setDistributors(Collection<? extends Distributor> newValues)
Set information about the distributor.void
setTransferOptions(Collection<? extends DigitalTransferOptions> newValues)
Set information about technical means and media by which a resource is obtained from the distributor.-
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
-
-
-
-
Constructor Detail
-
DistributionImpl
public DistributionImpl()
Constructs an initially empty distribution.
-
DistributionImpl
public DistributionImpl(Distribution source)
Constructs a metadata entity initialized with the values from the specified metadata.- Since:
- 2.4
-
-
Method Detail
-
getDistributionFormats
public Collection<Format> getDistributionFormats()
Provides a description of the format of the data to be distributed.- Specified by:
getDistributionFormats
in interfaceDistribution
- Returns:
- Description of the format of the data to be distributed.
-
setDistributionFormats
public void setDistributionFormats(Collection<? extends Format> newValues)
Set a description of the format of the data to be distributed.
-
getDistributors
public Collection<Distributor> getDistributors()
Provides information about the distributor.- Specified by:
getDistributors
in interfaceDistribution
- Returns:
- Information about the distributor.
-
setDistributors
public void setDistributors(Collection<? extends Distributor> newValues)
Set information about the distributor.
-
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 interfaceDistribution
- Returns:
- Technical means and media by which a resource is obtained from the distributor.
-
setTransferOptions
public void setTransferOptions(Collection<? extends DigitalTransferOptions> newValues)
Set information about technical means and media by which a resource is obtained from the distributor.
-
-