|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.util.GenericName
public abstract class GenericName
Base class for generic scoped and local name structure for type and attribute name in the context of name spaces.
Note: this class has a natural ordering that is inconsistent with equals
.
The natural ordering may be case-insensitive and ignores the character separator between name elements.
NameFactory
,
Serialized FormField Summary | |
---|---|
static char |
DEFAULT_SEPARATOR
The default separator character. |
Constructor Summary | |
---|---|
protected |
GenericName()
Creates a new instance of generic name. |
Method Summary | |
---|---|
org.opengis.util.LocalName |
asLocalName()
Deprecated. Renamed as tip() . |
abstract org.opengis.util.ScopedName |
asScopedName()
Deprecated. Replaced by GenericName.toFullyQualifiedName() . |
int |
compareTo(org.opengis.util.GenericName that)
Compares this name with the specified object for order. |
int |
depth()
Returns the depth of this name within the namespace hierarchy. |
boolean |
equals(java.lang.Object object)
Compares this generic name with the specified object for equality. |
abstract java.util.List<org.opengis.util.LocalName> |
getParsedNames()
Returns the sequence of local names making this generic name. |
abstract org.opengis.util.GenericName |
getScope()
Deprecated. Replaced by scope() . |
int |
hashCode()
Returns a hash code value for this generic name. |
org.opengis.util.LocalName |
head()
Returns the first element in the sequence of parsed names. |
org.opengis.util.LocalName |
name()
Deprecated. Renamed as tip() . |
org.opengis.util.NameSpace |
scope()
Returns the scope (name space) in which this name is local. |
org.opengis.util.LocalName |
tip()
Returns the last element in the sequence of parsed names. |
org.opengis.util.InternationalString |
toInternationalString()
Returns a local-dependent string representation of this generic name. |
java.lang.String |
toString()
Returns a string representation of this generic name. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.opengis.util.GenericName |
---|
push, toFullyQualifiedName |
Field Detail |
---|
public static final char DEFAULT_SEPARATOR
Constructor Detail |
---|
protected GenericName()
Method Detail |
---|
public org.opengis.util.NameSpace scope()
"util.GenericName"
) and is
associated with a name space having the name "org.opengis"
,
then the fully qualified name would be "org.opengis.util.GenericName"
.
scope
in interface org.opengis.util.GenericName
@Deprecated public abstract org.opengis.util.GenericName getScope()
scope()
.
null
.
public int depth()
LocalName
, it is always one. For a
ScopedName
it is some number greater than or equal to 2.
The depth is the length of the list returned by the getParsedNames()
method.
As such it is a derived parameter.
depth
in interface org.opengis.util.GenericName
public abstract java.util.List<org.opengis.util.LocalName> getParsedNames()
getParsedNames
in interface org.opengis.util.GenericName
public org.opengis.util.LocalName head()
LocalName
, this is always this
.
head
in interface org.opengis.util.GenericName
public org.opengis.util.LocalName tip()
LocalName
, this is always this
.
tip
in interface org.opengis.util.GenericName
@Deprecated public org.opengis.util.LocalName asLocalName()
tip()
.
@Deprecated public org.opengis.util.LocalName name()
tip()
.
name
in interface org.opengis.util.GenericName
@Deprecated public abstract org.opengis.util.ScopedName asScopedName()
GenericName.toFullyQualifiedName()
.
null
if none.
The scope of a fully qualified name must be
global.
If this name is a local name and the scope
is already global, returns null
since it is not
possible to derive a scoped name.
public java.lang.String toString()
getParsedNames()
separated by an arbitrary character (usually :
or /
).
This rule implies that the toString()
method for a
scoped name will contains the scope, while the
toString()
method for the local version of
the same name will not contains the scope.
toString
in interface org.opengis.util.GenericName
toString
in class java.lang.Object
public org.opengis.util.InternationalString toInternationalString()
toString()
except that each element has
been localized in the specified locale. If no international string is available, then this method should
returns an implementation mapping to toString()
for all locales.
toInternationalString
in interface org.opengis.util.GenericName
public int compareTo(org.opengis.util.GenericName that)
compareTo
in interface java.lang.Comparable<org.opengis.util.GenericName>
that
- The name to compare with this name.
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
object
- The object to compare with this name.
true
if the given object is equals to this one.public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |