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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(org.opengis.util.GenericName o) intdepth()booleanList<org.opengis.util.LocalName> inthashCode()org.opengis.util.LocalNamehead()booleanisGlobal()org.opengis.util.GenericNamename()Returns the name of the global name space.org.opengis.util.ScopedNamepush(org.opengis.util.GenericName scope) org.opengis.util.NameSpacescope()Returns the global namespace.org.opengis.util.LocalNametip()org.opengis.util.GenericNameorg.opengis.util.InternationalStringtoString()(package private) static Collection<org.opengis.util.GenericName> Returns the given name as an alias.
-
Field Details
-
GLOBAL
Name of the global name space. -
name
The name to provide as an alias.
-
-
Constructor Details
-
Alias
-
-
Method Details
-
wrap
Returns the given name as an alias.- Parameters:
name- the alias, ornull- 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:
scopein interfaceorg.opengis.util.GenericName- Returns:
- the global namespace
-
depth
public int depth()- Specified by:
depthin interfaceorg.opengis.util.GenericName- Specified by:
depthin interfaceorg.opengis.util.LocalName
-
getParsedNames
- Specified by:
getParsedNamesin interfaceorg.opengis.util.GenericName- Specified by:
getParsedNamesin interfaceorg.opengis.util.LocalName
-
head
public org.opengis.util.LocalName head()- Specified by:
headin interfaceorg.opengis.util.GenericName- Specified by:
headin interfaceorg.opengis.util.LocalName
-
tip
public org.opengis.util.LocalName tip()- Specified by:
tipin interfaceorg.opengis.util.GenericName- Specified by:
tipin interfaceorg.opengis.util.LocalName
-
toFullyQualifiedName
public org.opengis.util.GenericName toFullyQualifiedName()- Specified by:
toFullyQualifiedNamein interfaceorg.opengis.util.GenericName
-
push
public org.opengis.util.ScopedName push(org.opengis.util.GenericName scope) - Specified by:
pushin interfaceorg.opengis.util.GenericName
-
toInternationalString
public org.opengis.util.InternationalString toInternationalString()- Specified by:
toInternationalStringin interfaceorg.opengis.util.GenericName
-
toString
-
compareTo
public int compareTo(org.opengis.util.GenericName o) - Specified by:
compareToin interfaceComparable<org.opengis.util.GenericName>
-
equals
-
hashCode
-
isGlobal
public boolean isGlobal()- Specified by:
isGlobalin interfaceorg.opengis.util.NameSpace
-
name
public org.opengis.util.GenericName name()Returns the name of the global name space..- Specified by:
namein interfaceorg.opengis.util.NameSpace- Returns:
- the name of the global name space
-