|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@UML(identifier="GenericName", specification=ISO_19103) public interface GenericName
Base interface for scoped and local name structure for type and attribute name in the context of name spaces. All generic names:
The same name object may not be registered in different name space. If the same character string is registered in two name spaces, two different name objects will result.
The natural ordering for generic names is implementation dependent. A recommended practice is to compare lexicographically each element in the list of parsed names. Specific attributes of the name, such as how it treats case, may affect the ordering. In general, two names of different classes may not be compared.
Name
Method Summary | |
---|---|
LocalName |
asLocalName()
Deprecated. Renamed as name() . |
ScopedName |
asScopedName()
Deprecated. Replaced by toFullyQualifiedName() . |
int |
depth()
Returns the depth of this name within the namespace hierarchy. |
List<LocalName> |
getParsedNames()
Returns the sequence of local names making this generic name. |
GenericName |
getScope()
Deprecated. Replaced by scope() . |
LocalName |
name()
Returns the last element in the sequence of parsed names. |
ScopedName |
push(GenericName name)
Returns this name expanded with the specified scope. |
NameSpace |
scope()
Returns the scope (name space) in which this name is local. |
GenericName |
toFullyQualifiedName()
Returns a view of this name as a fully-qualified name. |
InternationalString |
toInternationalString()
Returns a local-dependent string representation of this generic name. |
String |
toString()
Returns a string representation of this generic name. |
Methods inherited from interface Comparable |
---|
compareTo |
Method Detail |
---|
@UML(identifier="scope", obligation=MANDATORY, specification=ISO_19103) NameSpace scope()
"util.GenericName"
)
and is associated with a name space having the name
"org.opengis"
, then the fully qualified name would be
"org.opengis.util.GenericName"
.
@UML(identifier="scope", obligation=OPTIONAL, specification=ISO_19103) GenericName getScope()
scope()
.
null
.
@UML(identifier="depth", obligation=MANDATORY, specification=ISO_19103) int depth()
LocalName
, it is always one. For a
ScopedName
it is some number greater than or equal to 2.
The depth is the length of the list returned by the getParsedNames()
method.
As such it is a derived parameter.
@UML(identifier="parsedName", obligation=MANDATORY, specification=ISO_19103) List<LocalName> getParsedNames()
@Extension LocalName asLocalName()
name()
.
@Extension LocalName name()
LocalName
, this is always this
.
LocalName.name()
,
ScopedName.name()
@Extension ScopedName asScopedName()
toFullyQualifiedName()
.
null
if none.
The scope of a fully qualified name must be
global.
If this name is a local name and the scope
is already global, returns null
since it is not
possible to derive a scoped name.
@Extension GenericName toFullyQualifiedName()
null
.
@UML(identifier="push", obligation=MANDATORY, specification=ISO_19103) ScopedName push(GenericName name)
name
with this
. In pseudo-code,
the following relationships must hold (the last one is specific to ScopedName
):
push(name).getParsedList() ==
name.getParsedList().addAll(getParsedNames())
push(name).scope() == name.scope()
push(head()).tail() == this
Note: Those conditions can be understood in terms of the Java
equals
method instead of the Java identity comparator ==
.
@Extension String toString()
getParsedNames()
separated by an arbitrary character (usually :
or /
).
toString
in class Object
@Extension InternationalString toInternationalString()
toString()
except that each element has
been localized in the specified locale. If no international string is available, then this method should
returns an implementation mapping to toString()
for all locales.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |