Module org.apache.sis.metadata
Class DefaultDistributor
Object
AbstractMetadata
ModifiableMetadata
ISOMetadata
DefaultDistributor
- All Implemented Interfaces:
Serializable
,Emptiable
,LenientComparable
,IdentifiedObject
,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
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class ModifiableMetadata
ModifiableMetadata.State
-
Field Summary
Fields inherited from class ISOMetadata
identifiers
-
Constructor Summary
ConstructorDescriptionConstructs an initially empty distributor.DefaultDistributor
(ResponsibleParty distributorContact) Creates a distributor with the specified contact.DefaultDistributor
(Distributor object) Constructs a new instance initialized with the values from the specified metadata object. -
Method Summary
Modifier and TypeMethodDescriptionstatic DefaultDistributor
castOrCopy
(Distributor object) Returns a SIS metadata implementation with the values of the given arbitrary implementation.Provides information about how the resource may be obtained, and related instructions and fee information.Party from whom the resource may be obtained.Provides information about the format used by the distributor.Provides information about the technical means and media used by the distributor.void
setDistributionOrderProcesses
(Collection<? extends StandardOrderProcess> newValues) Sets information about how the resource may be obtained, and related instructions and fee information.void
setDistributorContact
(ResponsibleParty newValue) Sets the party from whom the resource may be obtained.void
setDistributorFormats
(Collection<? extends Format> newValues) Sets information about the format used by the distributor.void
setDistributorTransferOptions
(Collection<? extends DigitalTransferOptions> newValues) Provides information about the technical means and media used by the distributor.Methods inherited from class ISOMetadata
getIdentifier, getIdentifierMap, getIdentifiers, getStandard, setIdentifier, transitionTo
Methods inherited from class ModifiableMetadata
checkWritePermission, collectionType, copyCollection, copyList, copyMap, copySet, deepCopy, nonNullCollection, nonNullList, nonNullMap, nonNullSet, singleton, state, writeCollection, writeList, writeMap, writeSet
Methods inherited from class AbstractMetadata
asMap, asTreeTable, equals, equals, getInterface, hashCode, isEmpty, prune, toString
-
Constructor Details
-
DefaultDistributor
public DefaultDistributor()Constructs an initially empty distributor. -
DefaultDistributor
Creates a distributor with the specified contact.- Parameters:
distributorContact
- party from whom the resource may be obtained, ornull
.
-
DefaultDistributor
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
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 interfaceDistributor
- Returns:
- party from whom the resource may be obtained, or
null
.
-
setDistributorContact
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
Provides information about how the resource may be obtained, and related instructions and fee information.- Specified by:
getDistributionOrderProcesses
in interfaceDistributor
- Returns:
- information about how the resource may be obtained.
-
setDistributionOrderProcesses
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 interfaceDistributor
- Returns:
- information about the format used by the distributor.
-
setDistributorFormats
Sets information about the format used by the distributor.- Parameters:
newValues
- the new distributor formats.
-
getDistributorTransferOptions
Provides information about the technical means and media used by the distributor.- Specified by:
getDistributorTransferOptions
in interfaceDistributor
- Returns:
- information about the technical means and media used by the distributor.
-
setDistributorTransferOptions
Provides information about the technical means and media used by the distributor.- Parameters:
newValues
- the new distributor transfer options.
-