@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
NameFactory.createScopedName(org.opengis.util.GenericName, java.lang.String, org.opengis.util.InternationalString)| 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, name, push, scope, toFullyQualifiedName, toInternationalStringcompareTo@UML(identifier="head", obligation=MANDATORY, specification=ISO_19103) LocalName head()
head().scope() equals
this.scope()
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)
@Extension 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)
@Extension 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 © 1996–2019 Geotools. All rights reserved.