|
||||||||||
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.
NameFactory.createScopedName(org.opengis.util.GenericName, java.lang.String, org.opengis.util.InternationalString)
Method Summary | |
---|---|
LocalName |
head()
Returns the head of this scoped name. |
LocalName |
name()
Returns the last element in the sequence of parsed names. |
GenericName |
path()
Returns a name which contains every element of the parsed names list except for the last element. |
GenericName |
tail()
Returns the tail of this scoped name. |
String |
toString()
Returns a locale-independent string representation of this scoped name. |
Methods inherited from interface GenericName |
---|
asLocalName, asScopedName, depth, getParsedNames, getScope, push, scope, toFullyQualifiedName, toInternationalString |
Methods inherited from interface Comparable |
---|
compareTo |
Method Detail |
---|
@UML(identifier="head", obligation=MANDATORY, specification=ISO_19103) LocalName head()
head().scope() == this.scope()
@UML(identifier="tail", obligation=MANDATORY, specification=ISO_19103) GenericName tail()
tail().getParsedNames() == this.getParsedNames().sublist(1,end)
Note: This condition can be understood in terms of the Java
equals
method instead of the Java identity
comparator ==
.
@Extension GenericName path()
File.getPath()
@Extension LocalName name()
name
in interface GenericName
File.getName()
@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 |