|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectSimpleCitation
public class SimpleCitation
A Citation containing only a title attribute as an
InternationalString. All other citation attributes are null or empty
collections.
This class can also be used as an InternationalString implementation. Because
there is only one attribute - the title - there is no ambiguity
about the value represented by the citation or the international string.
| Field Summary | |
|---|---|
static SimpleCitation |
EPSG
The European Petroleum Survey Group authority. |
static SimpleCitation |
OGC
The Open Geospatial Consortium authority. |
protected String |
title
The citation title to be returned by getTitle() as an InternationalString. |
| Constructor Summary | |
|---|---|
SimpleCitation(String title)
Creates a new citation having the given title. |
|
| Method Summary | |
|---|---|
char |
charAt(int index)
Returns the title character at the given index |
int |
compareTo(InternationalString object)
Compares the title with the string representation of the given object for order. |
boolean |
equals(Object object)
Returns true if the given object is a SimpleCitation having a title
equals to this title. |
Set<InternationalString> |
getAlternateTitles()
Short name or other language name by which the cited information is known. |
Set<ResponsibleParty> |
getCitedResponsibleParties()
Name and position information for an individual or organization that is responsible for the resource. |
InternationalString |
getCollectiveTitle()
Common title with holdings note. |
Set<CitationDate> |
getDates()
Reference date for the cited resource. |
InternationalString |
getEdition()
Version of the cited resource. |
Date |
getEditionDate()
Date of the edition, or null if none. |
Set<Identifier> |
getIdentifiers()
Unique identifier for the resource. |
String |
getISBN()
International Standard Book Number, or null if none. |
String |
getISSN()
International Standard Serial Number, or null if none. |
InternationalString |
getOtherCitationDetails()
Other information required to complete the citation that is not recorded elsewhere. |
Set<PresentationForm> |
getPresentationForms()
Mode in which the resource is represented, or an empty set if none. |
Series |
getSeries()
Information about the series, or aggregate dataset, of which the dataset is a part. |
InternationalString |
getTitle()
|
int |
hashCode()
Returns a hash code value for this citation. |
int |
length()
Returns the number of characters in the title. |
String |
subSequence(int start,
int end)
Returns a substring of the title for the given range of index. |
String |
toString()
Returns the title as an unlocalized string. |
String |
toString(Locale locale)
Returns the title, ignoring the given locale. |
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final SimpleCitation OGC
Factory.getVendor()public static final SimpleCitation EPSG
Identifier.getAuthority(),
AuthorityFactory.getAuthority()protected final String title
getTitle() as an InternationalString.
This is also the value returned by the InternationalString methods like
toString(Locale) and toString().
getTitle(),
toString(),
toString(Locale)| Constructor Detail |
|---|
public SimpleCitation(String title)
getTitle(), toString() and
toString(Locale) methods.
title - The citation title to be returned indirectly by getTitle().| Method Detail |
|---|
public int length()
length in interface CharSequencechars in the title.public char charAt(int index)
charAt in interface CharSequenceindex - The index of the char value to be returned.
char value.
public String subSequence(int start,
int end)
subSequence in interface CharSequencestart - The start index, inclusive.end - The end index, exclusive.
public String toString()
toString in interface CharSequencetoString in interface InternationalStringtoString in class ObjectgetTitle()public String toString(Locale locale)
SimpleCitation class) is required.
toString in interface InternationalStringlocale - Ignored by the SimpleCitation implementation.
getTitle()public InternationalString getTitle()
getTitle in interface Citationpublic Set<InternationalString> getAlternateTitles()
getAlternateTitles in interface Citationpublic Set<CitationDate> getDates()
getDates in interface Citationpublic InternationalString getEdition()
null.
getEdition in interface Citationpublic Date getEditionDate()
null if none.
The default implementation returns null.
getEditionDate in interface Citationpublic Set<Identifier> getIdentifiers()
getIdentifiers in interface Citationpublic Set<ResponsibleParty> getCitedResponsibleParties()
getCitedResponsibleParties in interface Citationpublic Set<PresentationForm> getPresentationForms()
getPresentationForms in interface Citationpublic Series getSeries()
null.
getSeries in interface Citationpublic InternationalString getOtherCitationDetails()
null.
getOtherCitationDetails in interface Citationpublic InternationalString getCollectiveTitle()
null.
getCollectiveTitle in interface Citationpublic String getISBN()
null if none.
The default implementation returns null.
getISBN in interface Citationpublic String getISSN()
null if none.
The default implementation returns null.
getISSN in interface Citationpublic int compareTo(InternationalString object)
compareTo in interface Comparable<InternationalString>object - The object to be compared.
public boolean equals(Object object)
true if the given object is a SimpleCitation having a title
equals to this title.
equals in class Objectobject - The object to compare with this SimpleCitation, or null.
true If the given object is equals to this SimpleCitation.public int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||