Class SimpleFormat

java.lang.Object
org.apache.sis.internal.simple.SimpleCitation
org.apache.sis.internal.simple.SimpleFormat
All Implemented Interfaces:
Serializable, org.opengis.metadata.citation.Citation, org.opengis.metadata.distribution.Format

public class SimpleFormat extends SimpleCitation implements org.opengis.metadata.distribution.Format
A trivial implementation of Format containing only the format name.
Since:
0.8
Version:
0.8
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      For cross-version compatibility.
      See Also:
  • Constructor Details

    • SimpleFormat

      public SimpleFormat(String name)
      Creates a new format of the given short name or abbreviation.
      Parameters:
      name - a short name or abbreviation for the format.
  • Method Details

    • getTitle

      public org.opengis.util.InternationalString getTitle()
      Returns the format specification title, which is null by default.
      Specified by:
      getTitle in interface org.opengis.metadata.citation.Citation
      Overrides:
      getTitle in class SimpleCitation
      Returns:
      the format specification.
    • getAlternateTitles

      public Collection<org.opengis.util.InternationalString> getAlternateTitles()
      Returns the format name given at construction time.
      Specified by:
      getAlternateTitles in interface org.opengis.metadata.citation.Citation
      Overrides:
      getAlternateTitles in class SimpleCitation
      Returns:
      the name given at construction time.
    • getSpecification

      @Deprecated public org.opengis.util.InternationalString getSpecification()
      Deprecated.
      Replaced by getTitle()
      Specified by:
      getSpecification in interface org.opengis.metadata.distribution.Format
      Returns:
      name of a subset, profile, or product specification of the format, or null.
    • getName

      @Deprecated public org.opengis.util.InternationalString getName()
      Deprecated.
      Specified by:
      getName in interface org.opengis.metadata.distribution.Format
      Returns:
      name of the data transfer format(s).
    • getVersion

      @Deprecated public org.opengis.util.InternationalString getVersion()
      Deprecated.
      Specified by:
      getVersion in interface org.opengis.metadata.distribution.Format
      Returns:
      version of the format.
    • getAmendmentNumber

      public org.opengis.util.InternationalString getAmendmentNumber()
      Amendment number of the format version.
      Specified by:
      getAmendmentNumber in interface org.opengis.metadata.distribution.Format
      Returns:
      amendment number of the format version, or null.
    • getFileDecompressionTechnique

      public org.opengis.util.InternationalString getFileDecompressionTechnique()
      Recommendations of algorithms or processes that can be applied to read or expand resources to which compression techniques have been applied.
      Specified by:
      getFileDecompressionTechnique in interface org.opengis.metadata.distribution.Format
      Returns:
      processes that can be applied to read resources to which compression techniques have been applied, or null.
    • getFormatDistributors

      public Collection<? extends org.opengis.metadata.distribution.Distributor> getFormatDistributors()
      Provides information about the distributor's format.
      Specified by:
      getFormatDistributors in interface org.opengis.metadata.distribution.Format
      Returns:
      information about the distributor's format.
    • toString

      public String toString()
      Returns a string representation of this format for debugging purpose.
      Overrides:
      toString in class SimpleCitation