|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@UML(identifier="ScopedName", specification=ISO_19103) public interface ScopedName
A composite of a local name (as head) for locating
another name space, and a generic name (as
tail) valid in that name space. This definition allows for iteration. The
tail may be either a local name or a scoped name.
If it is a scoped name, then another another step towards a remote local
name is taken. In this way, a scoped name may represent an arbitrarily distant
local name simply by the number of times the 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
Method Summary | |
---|---|
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. |
Methods inherited from interface GenericName |
---|
depth, getParsedNames, push, scope, toFullyQualifiedName, toInternationalString |
Methods inherited from interface Comparable |
---|
compareTo |
Method Detail |
---|
@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 GenericName
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |