Package org.locationtech.proj4j.geoapi
Class Alias
- java.lang.Object
-
- org.locationtech.proj4j.geoapi.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.
-
-
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.
-
-
-
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.
-
-
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, ornull
- 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 interfaceorg.opengis.util.GenericName
-
depth
public int depth()
- Specified by:
depth
in interfaceorg.opengis.util.GenericName
- Specified by:
depth
in interfaceorg.opengis.util.LocalName
-
getParsedNames
public java.util.List<org.opengis.util.LocalName> getParsedNames()
- Specified by:
getParsedNames
in interfaceorg.opengis.util.GenericName
- Specified by:
getParsedNames
in interfaceorg.opengis.util.LocalName
-
head
public org.opengis.util.LocalName head()
- Specified by:
head
in interfaceorg.opengis.util.GenericName
- Specified by:
head
in interfaceorg.opengis.util.LocalName
-
tip
public org.opengis.util.LocalName tip()
- Specified by:
tip
in interfaceorg.opengis.util.GenericName
- Specified by:
tip
in interfaceorg.opengis.util.LocalName
-
toFullyQualifiedName
public org.opengis.util.GenericName toFullyQualifiedName()
- Specified by:
toFullyQualifiedName
in interfaceorg.opengis.util.GenericName
-
push
public org.opengis.util.ScopedName push(org.opengis.util.GenericName scope)
- Specified by:
push
in interfaceorg.opengis.util.GenericName
-
toInternationalString
public org.opengis.util.InternationalString toInternationalString()
- Specified by:
toInternationalString
in interfaceorg.opengis.util.GenericName
-
toString
public java.lang.String toString()
- Specified by:
toString
in interfaceorg.opengis.util.GenericName
- Specified by:
toString
in interfaceorg.opengis.util.LocalName
- Overrides:
toString
in classjava.lang.Object
-
compareTo
public int compareTo(org.opengis.util.GenericName o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<org.opengis.util.GenericName>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
isGlobal
public boolean isGlobal()
- Specified by:
isGlobal
in interfaceorg.opengis.util.NameSpace
-
name
public org.opengis.util.GenericName name()
{@return the name of the global name space}.- Specified by:
name
in interfaceorg.opengis.util.NameSpace
-
-