- All Superinterfaces:
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
NameSpace.
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
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault intdepth()Returns the number of levels specified by this name, which is always 1 for a local name.Returns the sequence of local names.default LocalNamehead()Returnsthissince this object is already a local name.default LocalNametip()Returnsthissince this object is already a local name.toString()Returns a locale-independent string representation of this local name.Methods inherited from interface org.opengis.util.GenericName
compareTo, push, scope, toFullyQualifiedName, toInternationalString
-
Method Details
-
depth
Returns the number of levels specified by this name, which is always 1 for a local name.- Specified by:
depthin interfaceGenericName- Returns:
- always 1 for a local name.
-
getParsedNames
@UML(identifier="parsedName", obligation=MANDATORY, specification=ISO_19103) default List<? extends LocalName> getParsedNames()Returns the sequence of local names. Since this object is itself a locale name, this method always returns a singleton list containing onlythis.- Specified by:
getParsedNamesin interfaceGenericName- Returns:
- a singleton containing only
this.
-
head
Returnsthissince this object is already a local name.- Specified by:
headin interfaceGenericName- Returns:
- the first element in the list of parsed names.
-
tip
Returnsthissince this object is already a local name.- Specified by:
tipin interfaceGenericName- Returns:
- the last element in the list of parsed names.
-
toString
Returns a locale-independent string representation of this local name.- Specified by:
toStringin interfaceGenericName- Overrides:
toStringin classObject- Returns:
- the local-independent string representation of this name.
-