Class DefaultDistributor

  • All Implemented Interfaces:
    Serializable, Emptiable, Lenient­Comparable, Identified­Object, Distributor

    public class DefaultDistributor
    extends ISOMetadata
    implements 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   ├─distributor­Contact……………………………………… 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.   └─distributor­Format………………………………………… Information about the format used by the distributor.       └─format­Specification­Citation…… 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:
    Serialized Form

    Defined in the sis-metadata module

    • Constructor Detail

      • DefaultDistributor

        public DefaultDistributor()
        Constructs an initially empty distributor.
      • DefaultDistributor

        public DefaultDistributor​(ResponsibleParty distributorContact)
        Creates a distributor with the specified contact.
        Parameters:
        distributor­Contact - party from whom the resource may be obtained, or null.
      • DefaultDistributor

        public DefaultDistributor​(Distributor object)
        Constructs a new instance initialized with the values from the specified metadata object. This is a shallow copy constructor, since the other metadata contained in the given object are not recursively copied.
        Parameters:
        object - the metadata to copy values from, or null if none.
        See Also:
        cast­Or­Copy(Distributor)
    • Method Detail

      • castOrCopy

        public static DefaultDistributor castOrCopy​(Distributor object)
        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 returns null.
        • Otherwise if the given object is already an instance of Default­Distributor, then it is returned unchanged.
        • Otherwise a new Default­Distributor instance is created using the copy constructor and returned. Note that this is a shallow copy operation, since the other metadata contained in the given object are not recursively copied.
        Parameters:
        object - the object to get as a SIS implementation, or null 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.
      • getDistributorContact

        public ResponsibleParty getDistributorContact()
        Party from whom the resource may be obtained.
        Upcoming API change — generalization
        As of ISO 19115:2014, Responsible­Party is replaced by the Responsibility parent interface. This change may be applied in GeoAPI 4.0.
        Specified by:
        get­Distributor­Contact in interface Distributor
        Returns:
        party from whom the resource may be obtained, or null.
      • setDistributorContact

        public void setDistributorContact​(ResponsibleParty newValue)
        Sets the party from whom the resource may be obtained.
        Upcoming API change — generalization
        As of ISO 19115:2014, Responsible­Party is replaced by the Responsibility parent interface. This change may be applied in GeoAPI 4.0.
        Parameters:
        new­Value - the new distributor contact.
      • setDistributionOrderProcesses

        public void setDistributionOrderProcesses​(Collection<? extends StandardOrderProcess> newValues)
        Sets information about how the resource may be obtained, and related instructions and fee information.
        Parameters:
        new­Values - the new distribution order processes.
      • getDistributorFormats

        public Collection<Format> getDistributorFormats()
        Provides information about the format used by the distributor.
        Specified by:
        get­Distributor­Formats in interface Distributor
        Returns:
        information about the format used by the distributor.
      • setDistributorFormats

        public void setDistributorFormats​(Collection<? extends Format> newValues)
        Sets information about the format used by the distributor.
        Parameters:
        new­Values - the new distributor formats.
      • setDistributorTransferOptions

        public void setDistributorTransferOptions​(Collection<? extends DigitalTransferOptions> newValues)
        Provides information about the technical means and media used by the distributor.
        Parameters:
        new­Values - the new distributor transfer options.