GeoAPI 2.0
Build 2005-06-08

org.opengis.util
Interface ScopedName

All Superinterfaces:
Comparable, GenericName

@UML(identifier="ScopedName",
     specification=ISO_19103)
public interface ScopedName
extends GenericName

Fully qualified identifier for an object. A ScopedName contains a LocalName as head and a GenericName, which may be a LocalName or an other ScopedName, as tail.

Since:
GeoAPI 2.0
See Also:
NameFactory.createScopedName(org.opengis.util.GenericName, java.lang.String, org.opengis.util.InternationalString)

Method Summary
 LocalName asLocalName()
          Returns a view of this object as a local name.
 GenericName getScope()
          Returns the scope of this name.
 String toString()
          Returns a locale-independent string representation of this name, including its scope.
 
Methods inherited from interface GenericName
asScopedName, getParsedNames, toInternationalString
 
Methods inherited from interface Comparable
compareTo
 

Method Detail

getScope

@UML(identifier="tail",
     obligation=OPTIONAL,
     specification=ISO_19103)
GenericName getScope()
Returns the scope of this name.

Specified by:
getScope in interface GenericName

asLocalName

@UML(identifier="head",
     obligation=MANDATORY,
     specification=ISO_19103)
LocalName asLocalName()
Returns a view of this object as a local name. This is the last element in the sequence of parsed names. The local name returned by this method will still have the same scope than this scoped name. Note however that the string returned by LocalName.toString() will differs.

Specified by:
asLocalName in interface GenericName

toString

@UML(identifier="scopedName",
     obligation=MANDATORY,
     specification=ISO_19103)
String toString()
Returns a locale-independent string representation of this name, including its scope.

Specified by:
toString in interface GenericName
Overrides:
toString in class Object

GeoAPI 2.0
Build 2005-06-08

Symbols, terms and definitions
Copyright OpenGIS® Consortium