Package org.opengis.util
Interface LocalName
-
- All Superinterfaces:
java.lang.Comparable<GenericName>,GenericName
- All Known Subinterfaces:
MemberName,TypeName
@UML(identifier="LocalName", specification=ISO_19103) public interface LocalName extends GenericName
Identifier within a name space for a local object. Local names are names which are directly accessible to and maintained by a name space. Names are local to one and only one name space. The name space within which they are local is indicated by the scope.- Since:
- 2.0
- Version:
- 3.0
- See Also:
NameFactory.createLocalName(NameSpace, CharSequence)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intdepth()Returns the depth, which is always 1 for a local name.java.util.List<? extends LocalName>getParsedNames()Returns the sequence of local name.LocalNamehead()Returnsthissince this object is already a local name.LocalNametip()Returnsthissince this object is already a local name.java.lang.StringtoString()Returns a locale-independent string representation of this local name.-
Methods inherited from interface org.opengis.util.GenericName
push, scope, toFullyQualifiedName, toInternationalString
-
-
-
-
Method Detail
-
depth
int depth()
Returns the depth, which is always 1 for a local name.- Specified by:
depthin interfaceGenericName- Returns:
- The depth of this name.
-
getParsedNames
@UML(identifier="parsedName", obligation=MANDATORY, specification=ISO_19103) java.util.List<? extends LocalName> getParsedNames()
Returns the sequence of local name. Since this object is itself a locale name, this method always returns a singleton containing onlythis.- Specified by:
getParsedNamesin interfaceGenericName- Returns:
- The local names making this generic name, without the scope.
Shall never be
nullneither empty.
-
head
LocalName head()
Returnsthissince this object is already a local name.- Specified by:
headin interfaceGenericName- Returns:
- The first element in the list of parsed names.
- Since:
- 2.2
-
tip
LocalName tip()
Returnsthissince this object is already a local name.- Specified by:
tipin interfaceGenericName- Returns:
- The last element in the list of parsed names.
- Since:
- 2.1
-
toString
@UML(identifier="aName", obligation=MANDATORY, specification=ISO_19103) java.lang.String toString()
Returns a locale-independent string representation of this local name.- Specified by:
toStringin interfaceGenericName- Overrides:
toStringin classjava.lang.Object- Returns:
- A local-independent string representation of this name.
-
-