Class 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:
  • Field Details

    • serialVersionUID

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

    • Authority

      public Authority(String namespace)
      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

      public Authority(String name, String namespace)
      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

      public final String 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 interface IdentifierSpace<T>
      Returns:
      the name of this identifier space (may be XML attribute name).
    • toString

      public final String toString()
      Returns a string representation of this identifier space.
      Overrides:
      toString in class SimpleCitation