@UML(identifier="ScopedName", specification=ISO_19103) public interface ScopedName extends GenericName
tail() method
evaluates to a ScopedName before finally terminating on a LocalName.
It may be seen that ScopedName is the means by which fully-qualified names are expressed.
However, a ScopedName is not, in itself, what is commonly thought of as a fully
qualified name. The ScopedName type is one link in the chain, not the entire chain.
A scoped name is a fully qualified name only if its scope is
global.
Example:
The illustration below shows the head, tail, path and name of "org.opengis.util.Record".
org . opengis . util . Record head tail path tip
| Modifier and Type | Method and Description |
|---|---|
LocalName |
head()
Returns the first element in the sequence of parsed names.
|
GenericName |
path()
Returns every elements of the parsed names list except for
the tip.
|
GenericName |
tail()
Returns every elements of the parsed names list except for
the head.
|
LocalName |
tip()
Returns the last element in the sequence of parsed names.
|
String |
toString()
Returns a locale-independent string representation of this scoped name.
|
depth, getParsedNames, push, scope, toFullyQualifiedName, toInternationalStringcompareTo@UML(identifier="head", obligation=MANDATORY, specification=ISO_19103) LocalName head()
This method is similar in purpose to Name.get(0)
from the Java Naming and Directory Interface.
Example:
If this name is "org.opengis.util.Record", then this method
shall returns "org".
head in interface GenericName@UML(identifier="tail", obligation=MANDATORY, specification=ISO_19103) GenericName tail()
tail().getParsedNames() equals
this.getParsedNames().sublist(1,
depth)
This method is similar in purpose to from the Java Naming and Directory Interface.Name.getSuffix(1)
GenericName path()
tip().getParsedNames() equals
this.getParsedNames().sublist(0,
depth-1)
This method is similar in purpose to from the Java Naming and Directory Interface.Name.getPrefix(size-1)
Departure from OGC/ISO specification:
This method is not part of ISO specification. It has been added in GeoAPI as a complement of the ISOtail()method.
LocalName tip()
This method is similar in purpose to Name.get(size-1) from the Java Naming and Directory Interface.
tip in interface GenericName@UML(identifier="scopedName", obligation=MANDATORY, specification=ISO_19103) String toString()
Authority:Identifier notation.toString in interface GenericNametoString in class ObjectCopyright © 1994–2019 Open Geospatial Consortium. All rights reserved.