|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectAbstractName
DefaultLocalName
@Immutable public class DefaultLocalName
Identifier within a name space for a local object. Local names are names which are directly accessible to and maintained by a name space. Names are local to one and only one name space. The name space within which they are local is indicated by the scope.
DefaultLocalName can be instantiated by any of the following methods:
DefaultNameFactory.createLocalName(NameSpace, CharSequence)DefaultNameFactory.createGenericName(NameSpace, CharSequence[]) with an array of length 1DefaultNameFactory.parseGenericName(NameSpace, CharSequence) without separator
| metadata/geotk-metadata (download) | View source code for this class |
| Constructor Summary | |
|---|---|
protected |
DefaultLocalName(NameSpace scope,
CharSequence name)
Constructs a local name from the given character sequence. |
| Method Summary | |
|---|---|
int |
compareTo(GenericName name)
Compares this name with the specified object for order. |
int |
depth()
Returns the depth, which is always 1 for a local name. |
boolean |
equals(Object object)
Compares this local name with the specified object for equality. |
List<DefaultLocalName> |
getParsedNames()
Returns the sequence of local name for this generic name. |
int |
hashCode()
Returns a hash code value for this local name. |
LocalName |
head()
Returns this since this object is already a local name. |
NameSpace |
scope()
Returns the scope (name space) in which this name is local. |
LocalName |
tip()
Returns this since this object is already a local name. |
InternationalString |
toInternationalString()
Returns a local-dependent string representation of this locale name. |
String |
toString()
Returns a locale-independent string representation of this local name. |
| Methods inherited from class AbstractName |
|---|
push, toFullyQualifiedName |
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface GenericName |
|---|
push, toFullyQualifiedName |
| Constructor Detail |
|---|
protected DefaultLocalName(NameSpace scope,
CharSequence name)
InternationalString, then its toString(null) method will be invoked for fetching an unlocalized name. Otherwise
the toString() method will be used.
scope - The scope of this name, or null for a global scope.name - The local name (never null).| Method Detail |
|---|
public NameSpace scope()
scope in interface GenericNamescope in class AbstractNamepublic final int depth()
depth in interface GenericNamedepth in interface LocalNamedepth in class AbstractNamepublic final List<DefaultLocalName> getParsedNames()
this.
getParsedNames in interface GenericNamegetParsedNames in interface LocalNamegetParsedNames in class AbstractNamepublic final LocalName head()
this since this object is already a local name.
head in interface GenericNamehead in interface LocalNamehead in class AbstractNamepublic final LocalName tip()
this since this object is already a local name.
tip in interface GenericNametip in interface LocalNametip in class AbstractNamepublic String toString()
toString in interface GenericNametoString in interface LocalNametoString in class AbstractNamepublic InternationalString toInternationalString()
toInternationalString in interface GenericNametoInternationalString in class AbstractNamepublic int compareTo(GenericName name)
compareTo in interface Comparable<GenericName>compareTo in class AbstractNamename - The other name to compare with this name.
public boolean equals(Object object)
equals in class AbstractNameobject - The object to compare with this name for equality.
true if the given object is equal to this name.public int hashCode()
hashCode in class AbstractName
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||