|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectAbstractName
DefaultScopedName
@Immutable public class DefaultScopedName
A composite of a name space (as a local name) and a generic name valid in that name space. See the GeoAPI javadoc for more information.
DefaultScopedName can be instantiated by any of the following methods:
DefaultNameFactory.createGenericName(NameSpace, CharSequence[]) with an array of length 2 or moreDefaultNameFactory.parseGenericName(NameSpace, CharSequence) with at least one separator
| metadata/geotk-metadata (download) | View source code for this class |
| Constructor Summary | |
|---|---|
protected |
DefaultScopedName(GenericName path,
GenericName tail)
Constructs a scoped name as the concatenation of the given generic names. |
protected |
DefaultScopedName(NameSpace scope,
List<? extends CharSequence> names)
Constructs a scoped name from the specified list of strings. |
| Method Summary | |
|---|---|
List<? extends LocalName> |
getParsedNames()
Returns the sequence of local name for this generic name. |
GenericName |
path()
Returns every element of the parsed names list except for the tip. |
NameSpace |
scope()
Returns the scope (name space) in which this name is local. |
GenericName |
tail()
Returns every elements of the parsed names list except for the head. |
| Methods inherited from class AbstractName |
|---|
compareTo, depth, equals, hashCode, head, push, tip, toFullyQualifiedName, toInternationalString, toString |
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ScopedName |
|---|
head, tip, toString |
| Methods inherited from interface GenericName |
|---|
depth, push, toFullyQualifiedName, toInternationalString |
| Methods inherited from interface Comparable |
|---|
compareTo |
| Constructor Detail |
|---|
protected DefaultScopedName(NameSpace scope,
List<? extends CharSequence> names)
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 the global scope.names - The local names. This list must have at least two elements.
protected DefaultScopedName(GenericName path,
GenericName tail)
path argument.
path - The first part to concatenate.tail - The second part to concatenate.| Method Detail |
|---|
public NameSpace scope()
"org.opengis.util.Record" and if
this instance is the "util.Record" part, then its scope is
named "org.opengis".
Continuing with the above example, the full "org.opengis.util.Record" name has
no scope. If this method is invoked on such name, then the Geotk implementation returns
a global scope instance (i.e. an instance for which NameSpace.isGlobal() returns
true) which is unique and named "global".
scope in interface GenericNamescope in class AbstractNamepublic GenericName tail()
tail in interface ScopedNamepublic GenericName path()
path in interface ScopedNamepublic List<? extends LocalName> getParsedNames()
getParsedNames in interface GenericNamegetParsedNames in class AbstractName
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||