|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.util.GenericName
org.geotools.util.LocalName
public class LocalName
Identifier within a name space for a local object. This could be the target object of the
GenericName
, or a pointer to another name space (with a new GenericName
)
one step closer to the target of the identifier.
NameFactory
,
Serialized FormField Summary |
---|
Fields inherited from class org.geotools.util.GenericName |
---|
DEFAULT_SEPARATOR |
Constructor Summary | |
---|---|
LocalName(java.lang.CharSequence name)
Constructs a local name from the specified string with no scope. |
Method Summary | |
---|---|
org.opengis.util.ScopedName |
asScopedName()
Deprecated. Replaced by toFullyQualifiedName() . |
int |
compareTo(org.opengis.util.GenericName object)
Compares this name with the specified object for order. |
int |
depth()
Returns the depth, which is always 1 for a local name. |
boolean |
equals(java.lang.Object object)
Compares this local name with the specified object for equality. |
java.util.List<org.opengis.util.LocalName> |
getParsedNames()
Returns the sequence of local name for this generic name. |
org.opengis.util.GenericName |
getScope()
Deprecated. Replaced by scope() . |
int |
hashCode()
Returns a hash code value for this local name. |
org.opengis.util.LocalName |
head()
Since this object is already a local name, this method always returns this . |
org.opengis.util.ScopedName |
push(org.opengis.util.GenericName scope)
Returns this name expanded with the specified scope. |
org.opengis.util.NameSpace |
scope()
Returns the scope (name space) in which this name is local. |
org.opengis.util.LocalName |
tip()
Since this object is already a local name, this method always returns this . |
org.opengis.util.GenericName |
toFullyQualifiedName()
Returns a view of this name as a fully-qualified name. |
org.opengis.util.InternationalString |
toInternationalString()
Returns a local-dependent string representation of this locale name. |
java.lang.String |
toString()
Returns a locale-independant string representation of this local name. |
Methods inherited from class org.geotools.util.GenericName |
---|
asLocalName, name |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.opengis.util.GenericName |
---|
name |
Constructor Detail |
---|
public LocalName(java.lang.CharSequence name)
InternationalString
, then the
toString(null)
method will be used in order to fetch an unlocalized name. Otherwise, the
toString()
method will be used.
name
- The local name (never null
).Method Detail |
---|
@Deprecated public org.opengis.util.GenericName getScope()
scope()
.
getScope
in class GenericName
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
scope
in class GenericName
public int depth()
depth
in interface org.opengis.util.GenericName
depth
in interface org.opengis.util.LocalName
depth
in class GenericName
public java.util.List<org.opengis.util.LocalName> getParsedNames()
this
.
getParsedNames
in interface org.opengis.util.GenericName
getParsedNames
in interface org.opengis.util.LocalName
getParsedNames
in class GenericName
public org.opengis.util.LocalName head()
this
.
head
in interface org.opengis.util.GenericName
head
in interface org.opengis.util.LocalName
head
in class GenericName
public org.opengis.util.LocalName tip()
this
.
tip
in interface org.opengis.util.GenericName
tip
in interface org.opengis.util.LocalName
tip
in class GenericName
@Deprecated public org.opengis.util.ScopedName asScopedName()
toFullyQualifiedName()
.
null
if this name has no scope.
asScopedName
in class GenericName
public org.opengis.util.GenericName toFullyQualifiedName()
null
.
toFullyQualifiedName
in interface org.opengis.util.GenericName
public org.opengis.util.ScopedName push(org.opengis.util.GenericName scope)
name
with this
. In pseudo-code,
the following relationships must hold:
push(name).getParsedList() ==
name.getParsedList().addAll(getParsedNames())
push(name).scope() == name.scope()
Note: Those conditions can be understood in terms of the Java
equals
method instead of the Java identity comparator ==
.
push
in interface org.opengis.util.GenericName
public java.lang.String toString()
toString
in interface org.opengis.util.GenericName
toString
in interface org.opengis.util.LocalName
toString
in class GenericName
public org.opengis.util.InternationalString toInternationalString()
toInternationalString
in interface org.opengis.util.GenericName
toInternationalString
in class GenericName
public int compareTo(org.opengis.util.GenericName object)
compareTo
in interface java.lang.Comparable<org.opengis.util.GenericName>
compareTo
in class GenericName
object
- The name to compare with this name.
public boolean equals(java.lang.Object object)
equals
in class GenericName
object
- The object to compare with this name.
true
if the given object is equals to this one.public int hashCode()
hashCode
in class GenericName
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |