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.SerializableAn 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 privateAlias(java.lang.String name)Creates a new alias.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(org.opengis.util.GenericName o)intdepth()booleanequals(java.lang.Object o)java.util.List<org.opengis.util.LocalName>getParsedNames()inthashCode()org.opengis.util.LocalNamehead()booleanisGlobal()org.opengis.util.GenericNamename(){@return the name of the global name space}.org.opengis.util.ScopedNamepush(org.opengis.util.GenericName scope)org.opengis.util.NameSpacescope(){@return the global namespace}.org.opengis.util.LocalNametip()org.opengis.util.GenericNametoFullyQualifiedName()org.opengis.util.InternationalStringtoInternationalString()java.lang.StringtoString()(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:
scopein interfaceorg.opengis.util.GenericName
-
depth
public int depth()
- Specified by:
depthin interfaceorg.opengis.util.GenericName- Specified by:
depthin interfaceorg.opengis.util.LocalName
-
getParsedNames
public java.util.List<org.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
public java.lang.String toString()
- Specified by:
toStringin interfaceorg.opengis.util.GenericName- Specified by:
toStringin interfaceorg.opengis.util.LocalName- Overrides:
toStringin classjava.lang.Object
-
compareTo
public int compareTo(org.opengis.util.GenericName o)
- Specified by:
compareToin interfacejava.lang.Comparable<org.opengis.util.GenericName>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
isGlobal
public boolean isGlobal()
- Specified by:
isGlobalin interfaceorg.opengis.util.NameSpace
-
name
public org.opengis.util.GenericName name()
{@return the name of the global name space}.- Specified by:
namein interfaceorg.opengis.util.NameSpace
-
-