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 long
For cross-version compatibility.final String
The title to be returned bygetTitle()
. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compares the given object with this citation for equality.Collection<? extends org.opengis.util.InternationalString>
Methods inherited from theCitation
interface which are not of interest to thisSimpleCitation
implementation.Collection<? extends org.opengis.metadata.citation.ResponsibleParty>
org.opengis.util.InternationalString
Deprecated.Collection<? extends org.opengis.metadata.citation.CitationDate>
getDates()
org.opengis.util.InternationalString
Collection<? extends org.opengis.metadata.Identifier>
getISBN()
getISSN()
org.opengis.util.InternationalString
Collection<org.opengis.metadata.citation.PresentationForm>
org.opengis.metadata.citation.Series
org.opengis.util.InternationalString
getTitle()
Returns the title as an international string.int
hashCode()
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:
getTitle
in interfaceorg.opengis.metadata.citation.Citation
- Returns:
- the title given at construction time.
-
getAlternateTitles
Methods inherited from theCitation
interface which are not of interest to thisSimpleCitation
implementation.- Specified by:
getAlternateTitles
in interfaceorg.opengis.metadata.citation.Citation
- Returns:
- an empty list.
-
getDates
- Specified by:
getDates
in interfaceorg.opengis.metadata.citation.Citation
-
getEdition
public org.opengis.util.InternationalString getEdition()- Specified by:
getEdition
in interfaceorg.opengis.metadata.citation.Citation
-
getEditionDate
- Specified by:
getEditionDate
in interfaceorg.opengis.metadata.citation.Citation
-
getIdentifiers
- Specified by:
getIdentifiers
in interfaceorg.opengis.metadata.citation.Citation
-
getCitedResponsibleParties
public Collection<? extends org.opengis.metadata.citation.ResponsibleParty> getCitedResponsibleParties()- Specified by:
getCitedResponsibleParties
in interfaceorg.opengis.metadata.citation.Citation
-
getPresentationForms
- Specified by:
getPresentationForms
in interfaceorg.opengis.metadata.citation.Citation
-
getSeries
public org.opengis.metadata.citation.Series getSeries()- Specified by:
getSeries
in interfaceorg.opengis.metadata.citation.Citation
-
getOtherCitationDetails
public org.opengis.util.InternationalString getOtherCitationDetails()- Specified by:
getOtherCitationDetails
in interfaceorg.opengis.metadata.citation.Citation
-
getISBN
- Specified by:
getISBN
in interfaceorg.opengis.metadata.citation.Citation
-
getISSN
- Specified by:
getISSN
in interfaceorg.opengis.metadata.citation.Citation
-
getCollectiveTitle
Deprecated.- Specified by:
getCollectiveTitle
in 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.
-