Class Alias

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<org.opengis.util.GenericName>, org.opengis.util.GenericName, org.opengis.util.LocalName, org.opengis.util.NameSpace

    final class Alias
    extends java.lang.Object
    implements org.opengis.util.LocalName, org.opengis.util.NameSpace, java.io.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 Alias GLOBAL
      Name of the global name space.
      private java.lang.String name
      The name to provide as an alias.
    • Constructor Summary

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

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(org.opengis.util.GenericName o)  
      int depth()  
      boolean equals​(java.lang.Object o)  
      java.util.List<org.opengis.util.LocalName> getParsedNames()  
      int hashCode()  
      org.opengis.util.LocalName head()  
      boolean isGlobal()  
      org.opengis.util.GenericName name()
      {@return the name of the global name space}.
      org.opengis.util.ScopedName push​(org.opengis.util.GenericName scope)  
      org.opengis.util.NameSpace scope()
      {@return the global namespace}.
      org.opengis.util.LocalName tip()  
      org.opengis.util.GenericName toFullyQualifiedName()  
      org.opengis.util.InternationalString toInternationalString()  
      java.lang.String toString()  
      (package private) static java.util.Collection<org.opengis.util.GenericName> wrap​(java.lang.String name)
      Returns the given name as an alias.
      • Methods inherited from class java.lang.Object

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

      • GLOBAL

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

        private final java.lang.String name
        The name to provide as an alias.
    • Constructor Detail

      • Alias

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

      • wrap

        static java.util.Collection<org.opengis.util.GenericName> wrap​(java.lang.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()
        {@return the global namespace}.
        Specified by:
        scope in interface org.opengis.util.GenericName
      • depth

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

        public java.util.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 java.lang.String toString()
        Specified by:
        toString in interface org.opengis.util.GenericName
        Specified by:
        toString in interface org.opengis.util.LocalName
        Overrides:
        toString in class java.lang.Object
      • compareTo

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

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

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

        public org.opengis.util.GenericName name()
        {@return the name of the global name space}.
        Specified by:
        name in interface org.opengis.util.NameSpace