Class SimpleCitation

java.lang.Object
org.apache.sis.internal.simple.SimpleCitation
All Implemented Interfaces:
Serializable, org.opengis.metadata.citation.Citation
Direct Known Subclasses:
CitationConstant, SimpleFormat

public class SimpleCitation extends Object implements org.opengis.metadata.citation.Citation, Serializable
A trivial implementation of Citation containing only a title.
Design note: we do not put more field than title in this SimpleCitation in order to keep it simple, because the title is the only "universal" property (the need for all other fields will be determined in subclasses on a case-by-case basis) and because SimpleCitation are sometimes only proxy identified by the title.
Since:
0.3
Version:
0.3
See Also:
  • Field Details

    • serialVersionUID

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

      public final String title
      The title to be returned by getTitle().
  • Constructor Details

    • SimpleCitation

      public SimpleCitation(String title)
      Creates a new object for the given title.
      Parameters:
      title - the title to be returned by getTitle().
  • Method Details

    • getTitle

      public org.opengis.util.InternationalString getTitle()
      Returns the title as an international string.
      Specified by:
      getTitle in interface org.opengis.metadata.citation.Citation
      Returns:
      the title given at construction time.
    • getAlternateTitles

      public Collection<? extends org.opengis.util.InternationalString> getAlternateTitles()
      Methods inherited from the Citation interface which are not of interest to this SimpleCitation implementation.
      Specified by:
      getAlternateTitles in interface org.opengis.metadata.citation.Citation
      Returns:
      an empty list.
    • getDates

      public Collection<? extends org.opengis.metadata.citation.CitationDate> getDates()
      Specified by:
      getDates in interface org.opengis.metadata.citation.Citation
    • getEdition

      public org.opengis.util.InternationalString getEdition()
      Specified by:
      getEdition in interface org.opengis.metadata.citation.Citation
    • getEditionDate

      public Date getEditionDate()
      Specified by:
      getEditionDate in interface org.opengis.metadata.citation.Citation
    • getIdentifiers

      public Collection<? extends org.opengis.metadata.Identifier> getIdentifiers()
      Specified by:
      getIdentifiers in interface org.opengis.metadata.citation.Citation
    • getCitedResponsibleParties

      public Collection<? extends org.opengis.metadata.citation.ResponsibleParty> getCitedResponsibleParties()
      Specified by:
      getCitedResponsibleParties in interface org.opengis.metadata.citation.Citation
    • getPresentationForms

      public Collection<org.opengis.metadata.citation.PresentationForm> getPresentationForms()
      Specified by:
      getPresentationForms in interface org.opengis.metadata.citation.Citation
    • getSeries

      public org.opengis.metadata.citation.Series getSeries()
      Specified by:
      getSeries in interface org.opengis.metadata.citation.Citation
    • getOtherCitationDetails

      public org.opengis.util.InternationalString getOtherCitationDetails()
      Specified by:
      getOtherCitationDetails in interface org.opengis.metadata.citation.Citation
    • getISBN

      public String getISBN()
      Specified by:
      getISBN in interface org.opengis.metadata.citation.Citation
    • getISSN

      public String getISSN()
      Specified by:
      getISSN in interface org.opengis.metadata.citation.Citation
    • getCollectiveTitle

      @Deprecated public org.opengis.util.InternationalString getCollectiveTitle()
      Deprecated.
      Specified by:
      getCollectiveTitle in interface org.opengis.metadata.citation.Citation
    • equals

      public boolean equals(Object obj)
      Compares the given object with this citation for equality.
      Overrides:
      equals in class Object
      Parameters:
      obj - the object to compare with this citation.
      Returns:
      true if both objects are equal.
    • hashCode

      public int hashCode()
      Returns a hash code value for this citation.
      Overrides:
      hashCode in class Object
    • toString

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