Package org.apache.sis.internal.simple
Class CitationConstant.Authority<T>
java.lang.Object
org.apache.sis.internal.simple.SimpleCitation
org.apache.sis.internal.simple.CitationConstant
org.apache.sis.internal.simple.CitationConstant.Authority<T>
- Type Parameters:
T
- the type of object used as identifier values.
- All Implemented Interfaces:
Serializable
,IdentifierSpace<T>
,org.opengis.metadata.citation.Citation
- Direct Known Subclasses:
NonMarshalledAuthority
- Enclosing class:
CitationConstant
public static class CitationConstant.Authority<T>
extends CitationConstant
implements IdentifierSpace<T>
Class of
public static final Citation
constants which are also used as namespace for identifiers.
The most typical example is the "EPSG" authority which manage the codes identifying Coordinate Reference
System (CRS) objects in the EPSG namespace.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.sis.internal.simple.CitationConstant
CitationConstant.Authority<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long
For cross-version compatibility.Fields inherited from class org.apache.sis.internal.simple.CitationConstant
namespace
Fields inherited from class org.apache.sis.internal.simple.SimpleCitation
title
Fields inherited from interface org.apache.sis.xml.IdentifierSpace
HREF, ID, UUID, XLINK
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.sis.internal.simple.CitationConstant
getAlternateTitles, getCitedResponsibleParties, getDates, getEdition, getEditionDate, getIdentifiers, getISBN, getISSN, getOtherCitationDetails, getPresentationForms, getSeries, getTitle, readResolve, refresh
Methods inherited from class org.apache.sis.internal.simple.SimpleCitation
equals, getCollectiveTitle, hashCode
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.opengis.metadata.citation.Citation
getAlternateTitles, getCitedResponsibleParties, getCollectiveTitle, getDates, getEdition, getEditionDate, getIdentifiers, getISBN, getISSN, getOtherCitationDetails, getPresentationForms, getSeries, getTitle
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDFor cross-version compatibility.- See Also:
-
-
Constructor Details
-
Authority
Creates a new citation for an authority managing codes in the given namespace. This constructor assumes that the namespace is the same as the abbreviation given as citation title.- Parameters:
namespace
- the namespace of codes managed by this authority (e.g. "EPSG").
-
Authority
Creates a new citation for an authority managing codes in the given namespace.- Parameters:
name
- a human-understandable primary key for fetching more information.namespace
- the namespace of codes managed by this authority (e.g. "EPSG").
-
-
Method Details
-
getName
Returns the name space given at construction time. Can be one of the following:- Abbreviation of the authority managing the codes (e.g.
"EPSG"
or"ISBN"
). - XML attribute name with its prefix (e.g.
"gml:id"
,"gco:uuid"
or"xlink:href"
).
- Specified by:
getName
in interfaceIdentifierSpace<T>
- Returns:
- the name of this identifier space (may be XML attribute name).
- Abbreviation of the authority managing the codes (e.g.
-
toString
Returns a string representation of this identifier space.- Overrides:
toString
in classSimpleCitation
-