Class Alias

java.lang.Object
org.locationtech.proj4j.geoapi.Alias
All Implemented Interfaces:
Serializable, Comparable<org.opengis.util.GenericName>, org.opengis.util.GenericName, org.opengis.util.LocalName, org.opengis.util.NameSpace

final class Alias extends Object implements org.opengis.util.LocalName, org.opengis.util.NameSpace, Serializable
An alternative name for an object. Note that the EPSG database puts short names in aliases. The long names are rather the primary object names.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final Alias
    Name of the global name space.
    private final String
    The name to provide as an alias.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    Alias(String name)
    Creates a new alias.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    compareTo(org.opengis.util.GenericName o)
     
    int
     
    boolean
     
    List<org.opengis.util.LocalName>
     
    int
     
    org.opengis.util.LocalName
     
    boolean
     
    org.opengis.util.GenericName
    Returns the name of the global name space.
    org.opengis.util.ScopedName
    push(org.opengis.util.GenericName scope)
     
    org.opengis.util.NameSpace
    Returns the global namespace.
    org.opengis.util.LocalName
    tip()
     
    org.opengis.util.GenericName
     
    org.opengis.util.InternationalString
     
     
    (package private) static Collection<org.opengis.util.GenericName>
    wrap(String name)
    Returns the given name as an alias.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • GLOBAL

      private static final Alias GLOBAL
      Name of the global name space.
    • name

      private final String name
      The name to provide as an alias.
  • Constructor Details

    • Alias

      private Alias(String name)
      Creates a new alias.
      Parameters:
      name - the name to provide as an alias.
  • Method Details

    • wrap

      static Collection<org.opengis.util.GenericName> wrap(String name)
      Returns the given name as an alias.
      Parameters:
      name - the alias, or null
      Returns:
      the alias, or an empty collection if the given name was null
    • scope

      public org.opengis.util.NameSpace scope()
      Returns the global namespace..
      Specified by:
      scope in interface org.opengis.util.GenericName
      Returns:
      the global namespace
    • depth

      public int depth()
      Specified by:
      depth in interface org.opengis.util.GenericName
      Specified by:
      depth in interface org.opengis.util.LocalName
    • getParsedNames

      public List<org.opengis.util.LocalName> getParsedNames()
      Specified by:
      getParsedNames in interface org.opengis.util.GenericName
      Specified by:
      getParsedNames in interface org.opengis.util.LocalName
    • head

      public org.opengis.util.LocalName head()
      Specified by:
      head in interface org.opengis.util.GenericName
      Specified by:
      head in interface org.opengis.util.LocalName
    • tip

      public org.opengis.util.LocalName tip()
      Specified by:
      tip in interface org.opengis.util.GenericName
      Specified by:
      tip in interface org.opengis.util.LocalName
    • toFullyQualifiedName

      public org.opengis.util.GenericName toFullyQualifiedName()
      Specified by:
      toFullyQualifiedName in interface org.opengis.util.GenericName
    • push

      public org.opengis.util.ScopedName push(org.opengis.util.GenericName scope)
      Specified by:
      push in interface org.opengis.util.GenericName
    • toInternationalString

      public org.opengis.util.InternationalString toInternationalString()
      Specified by:
      toInternationalString in interface org.opengis.util.GenericName
    • toString

      public String toString()
      Specified by:
      toString in interface org.opengis.util.GenericName
      Specified by:
      toString in interface org.opengis.util.LocalName
      Overrides:
      toString in class Object
    • compareTo

      public int compareTo(org.opengis.util.GenericName o)
      Specified by:
      compareTo in interface Comparable<org.opengis.util.GenericName>
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • isGlobal

      public boolean isGlobal()
      Specified by:
      isGlobal in interface org.opengis.util.NameSpace
    • name

      public org.opengis.util.GenericName name()
      Returns the name of the global name space..
      Specified by:
      name in interface org.opengis.util.NameSpace
      Returns:
      the name of the global name space