Package org.apache.sis.internal.simple
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 Summary
FieldsModifier and TypeFieldDescriptionprivate static final longFor cross-version compatibility.final StringThe title to be returned bygetTitle(). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompares the given object with this citation for equality.Collection<? extends org.opengis.util.InternationalString>Methods inherited from theCitationinterface which are not of interest to thisSimpleCitationimplementation.Collection<? extends org.opengis.metadata.citation.ResponsibleParty>org.opengis.util.InternationalStringDeprecated.Collection<? extends org.opengis.metadata.citation.CitationDate>getDates()org.opengis.util.InternationalStringCollection<? extends org.opengis.metadata.Identifier>getISBN()getISSN()org.opengis.util.InternationalStringCollection<org.opengis.metadata.citation.PresentationForm>org.opengis.metadata.citation.Seriesorg.opengis.util.InternationalStringgetTitle()Returns the title as an international string.inthashCode()Returns a hash code value for this citation.toString()Returns a string representation of this citation for debugging purpose.
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDFor cross-version compatibility.- See Also:
-
title
The title to be returned bygetTitle().
-
-
Constructor Details
-
SimpleCitation
Creates a new object for the given title.- Parameters:
title- the title to be returned bygetTitle().
-
-
Method Details
-
getTitle
public org.opengis.util.InternationalString getTitle()Returns the title as an international string.- Specified by:
getTitlein interfaceorg.opengis.metadata.citation.Citation- Returns:
- the title given at construction time.
-
getAlternateTitles
Methods inherited from theCitationinterface which are not of interest to thisSimpleCitationimplementation.- Specified by:
getAlternateTitlesin interfaceorg.opengis.metadata.citation.Citation- Returns:
- an empty list.
-
getDates
- Specified by:
getDatesin interfaceorg.opengis.metadata.citation.Citation
-
getEdition
public org.opengis.util.InternationalString getEdition()- Specified by:
getEditionin interfaceorg.opengis.metadata.citation.Citation
-
getEditionDate
- Specified by:
getEditionDatein interfaceorg.opengis.metadata.citation.Citation
-
getIdentifiers
- Specified by:
getIdentifiersin interfaceorg.opengis.metadata.citation.Citation
-
getCitedResponsibleParties
public Collection<? extends org.opengis.metadata.citation.ResponsibleParty> getCitedResponsibleParties()- Specified by:
getCitedResponsiblePartiesin interfaceorg.opengis.metadata.citation.Citation
-
getPresentationForms
- Specified by:
getPresentationFormsin interfaceorg.opengis.metadata.citation.Citation
-
getSeries
public org.opengis.metadata.citation.Series getSeries()- Specified by:
getSeriesin interfaceorg.opengis.metadata.citation.Citation
-
getOtherCitationDetails
public org.opengis.util.InternationalString getOtherCitationDetails()- Specified by:
getOtherCitationDetailsin interfaceorg.opengis.metadata.citation.Citation
-
getISBN
- Specified by:
getISBNin interfaceorg.opengis.metadata.citation.Citation
-
getISSN
- Specified by:
getISSNin interfaceorg.opengis.metadata.citation.Citation
-
getCollectiveTitle
Deprecated.- Specified by:
getCollectiveTitlein interfaceorg.opengis.metadata.citation.Citation
-
equals
Compares the given object with this citation for equality. -
hashCode
public int hashCode()Returns a hash code value for this citation. -
toString
Returns a string representation of this citation for debugging purpose.
-