Class DefaultDistributor
java.lang.Object
org.apache.sis.metadata.AbstractMetadata
org.apache.sis.metadata.ModifiableMetadata
org.apache.sis.metadata.iso.ISOMetadata
org.apache.sis.metadata.iso.distribution.DefaultDistributor
- All Implemented Interfaces:
Serializable
,Emptiable
,LenientComparable
,IdentifiedObject
,org.opengis.metadata.distribution.Distributor
public class DefaultDistributor
extends ISOMetadata
implements org.opengis.metadata.distribution.Distributor
Information about the distributor.
The following properties are mandatory or conditional (i.e. mandatory under some circumstances)
in a well-formed metadata according ISO 19115:
MD_Distributor
├─distributorContact………………………………………
Party from whom the resource may be obtained. This list need not be exhaustive.
│ ├─party………………………………………………………………
Information about the parties.
│ │ └─name………………………………………………………
Name of the party.
│ └─role…………………………………………………………………
Function performed by the responsible party.
└─distributorFormat…………………………………………
Information about the format used by the distributor.
└─formatSpecificationCitation……
Citation/URL of the specification format.
├─title……………………………………………………
Name by which the cited resource is known.
└─date………………………………………………………
Reference date for the cited resource.Limitations
- Instances of this class are not synchronized for multi-threading. Synchronization, if needed, is caller's responsibility.
- Serialized objects of this class are not guaranteed to be compatible with future Apache SIS releases.
Serialization support is appropriate for short term storage or RMI between applications running the
same version of Apache SIS. For long term storage, use
XML
instead.
- Since:
- 0.3
- Version:
- 1.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.sis.metadata.ModifiableMetadata
ModifiableMetadata.State
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Collection
<org.opengis.metadata.distribution.StandardOrderProcess> Provides information about how the resource may be obtained, and related instructions and fee information.private org.opengis.metadata.citation.ResponsibleParty
Party from whom the resource may be obtained.private Collection
<org.opengis.metadata.distribution.Format> Provides information about the format used by the distributor.private Collection
<org.opengis.metadata.distribution.DigitalTransferOptions> Provides information about the technical means and media used by the distributor.private static final long
Serial number for inter-operability with different versions.Fields inherited from class org.apache.sis.metadata.iso.ISOMetadata
identifiers
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an initially empty distributor.DefaultDistributor
(org.opengis.metadata.citation.ResponsibleParty distributorContact) Creates a distributor with the specified contact.DefaultDistributor
(org.opengis.metadata.distribution.Distributor object) Constructs a new instance initialized with the values from the specified metadata object. -
Method Summary
Modifier and TypeMethodDescriptionstatic DefaultDistributor
castOrCopy
(org.opengis.metadata.distribution.Distributor object) Returns a SIS metadata implementation with the values of the given arbitrary implementation.Collection
<org.opengis.metadata.distribution.StandardOrderProcess> Provides information about how the resource may be obtained, and related instructions and fee information.org.opengis.metadata.citation.ResponsibleParty
Party from whom the resource may be obtained.Collection
<org.opengis.metadata.distribution.Format> Provides information about the format used by the distributor.Collection
<org.opengis.metadata.distribution.DigitalTransferOptions> Provides information about the technical means and media used by the distributor.void
setDistributionOrderProcesses
(Collection<? extends org.opengis.metadata.distribution.StandardOrderProcess> newValues) Sets information about how the resource may be obtained, and related instructions and fee information.void
setDistributorContact
(org.opengis.metadata.citation.ResponsibleParty newValue) Sets the party from whom the resource may be obtained.void
setDistributorFormats
(Collection<? extends org.opengis.metadata.distribution.Format> newValues) Sets information about the format used by the distributor.void
setDistributorTransferOptions
(Collection<? extends org.opengis.metadata.distribution.DigitalTransferOptions> newValues) Provides information about the technical means and media used by the distributor.Methods inherited from class org.apache.sis.metadata.iso.ISOMetadata
getIdentifier, getIdentifierMap, getIdentifiers, getStandard, setIdentifier, transitionTo
Methods inherited from class org.apache.sis.metadata.ModifiableMetadata
checkWritePermission, collectionType, copyCollection, copyList, copyMap, copySet, deepCopy, nonNullCollection, nonNullList, nonNullMap, nonNullSet, singleton, state, writeCollection, writeList, writeMap, writeSet
Methods inherited from class org.apache.sis.metadata.AbstractMetadata
asMap, asTreeTable, equals, equals, getInterface, hashCode, isEmpty, prune, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerial number for inter-operability with different versions.- See Also:
-
distributorContact
private org.opengis.metadata.citation.ResponsibleParty distributorContactParty from whom the resource may be obtained. This list need not be exhaustive. -
distributionOrderProcesses
private Collection<org.opengis.metadata.distribution.StandardOrderProcess> distributionOrderProcessesProvides information about how the resource may be obtained, and related instructions and fee information. -
distributorFormats
Provides information about the format used by the distributor. -
distributorTransferOptions
private Collection<org.opengis.metadata.distribution.DigitalTransferOptions> distributorTransferOptionsProvides information about the technical means and media used by the distributor.
-
-
Constructor Details
-
DefaultDistributor
public DefaultDistributor()Constructs an initially empty distributor. -
DefaultDistributor
public DefaultDistributor(org.opengis.metadata.citation.ResponsibleParty distributorContact) Creates a distributor with the specified contact.- Parameters:
distributorContact
- party from whom the resource may be obtained, ornull
.
-
DefaultDistributor
public DefaultDistributor(org.opengis.metadata.distribution.Distributor object) Constructs a new instance initialized with the values from the specified metadata object. This is a shallow copy constructor, because the other metadata contained in the given object are not recursively copied.- Parameters:
object
- the metadata to copy values from, ornull
if none.- See Also:
-
-
Method Details
-
castOrCopy
Returns a SIS metadata implementation with the values of the given arbitrary implementation. This method performs the first applicable action in the following choices:- If the given object is
null
, then this method returnsnull
. - Otherwise if the given object is already an instance of
DefaultDistributor
, then it is returned unchanged. - Otherwise a new
DefaultDistributor
instance is created using the copy constructor and returned. Note that this is a shallow copy operation, because the other metadata contained in the given object are not recursively copied.
- Parameters:
object
- the object to get as a SIS implementation, ornull
if none.- Returns:
- a SIS implementation containing the values of the given object (may be the
given object itself), or
null
if the argument was null.
- If the given object is
-
getDistributorContact
public org.opengis.metadata.citation.ResponsibleParty getDistributorContact()Party from whom the resource may be obtained.Upcoming API change — generalization
As of ISO 19115:2014,ResponsibleParty
is replaced by theResponsibility
parent interface. This change may be applied in GeoAPI 4.0.- Specified by:
getDistributorContact
in interfaceorg.opengis.metadata.distribution.Distributor
- Returns:
- party from whom the resource may be obtained, or
null
.
-
setDistributorContact
public void setDistributorContact(org.opengis.metadata.citation.ResponsibleParty newValue) Sets the party from whom the resource may be obtained.Upcoming API change — generalization
As of ISO 19115:2014,ResponsibleParty
is replaced by theResponsibility
parent interface. This change may be applied in GeoAPI 4.0.- Parameters:
newValue
- the new distributor contact.
-
getDistributionOrderProcesses
public Collection<org.opengis.metadata.distribution.StandardOrderProcess> getDistributionOrderProcesses()Provides information about how the resource may be obtained, and related instructions and fee information.- Specified by:
getDistributionOrderProcesses
in interfaceorg.opengis.metadata.distribution.Distributor
- Returns:
- information about how the resource may be obtained.
-
setDistributionOrderProcesses
public void setDistributionOrderProcesses(Collection<? extends org.opengis.metadata.distribution.StandardOrderProcess> newValues) Sets information about how the resource may be obtained, and related instructions and fee information.- Parameters:
newValues
- the new distribution order processes.
-
getDistributorFormats
Provides information about the format used by the distributor.- Specified by:
getDistributorFormats
in interfaceorg.opengis.metadata.distribution.Distributor
- Returns:
- information about the format used by the distributor.
-
setDistributorFormats
public void setDistributorFormats(Collection<? extends org.opengis.metadata.distribution.Format> newValues) Sets information about the format used by the distributor.- Parameters:
newValues
- the new distributor formats.
-
getDistributorTransferOptions
public Collection<org.opengis.metadata.distribution.DigitalTransferOptions> getDistributorTransferOptions()Provides information about the technical means and media used by the distributor.- Specified by:
getDistributorTransferOptions
in interfaceorg.opengis.metadata.distribution.Distributor
- Returns:
- information about the technical means and media used by the distributor.
-
setDistributorTransferOptions
public void setDistributorTransferOptions(Collection<? extends org.opengis.metadata.distribution.DigitalTransferOptions> newValues) Provides information about the technical means and media used by the distributor.- Parameters:
newValues
- the new distributor transfer options.
-