Package org.opengis.util
Interface LocalName
-
- 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 aNameSpace. 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:
NameFactory.createLocalName(NameSpace, CharSequence)
-
-
Method Summary
Modifier and Type Method Description intdepth()Returns always 1 for a local name.List<? extends LocalName>getParsedNames()Returns a singleton containing onlythis, since this name is itself a local name.LocalNamehead()Returnsthissince this object is already a local name.LocalNametip()Returnsthissince this object is already a local name.StringtoString()Returns a locale-independent string representation of this local name.-
Methods inherited from interface GenericName
compareTo, push, scope, toFullyQualifiedName, toInternationalString
-
-
-
-
Method Detail
-
depth
int depth()
Returns 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) List<? extends LocalName> getParsedNames()
Returns a singleton containing onlythis, since this name is itself a local name.- Specified by:
getParsedNamesin interfaceGenericName- Returns:
- a singleton containing only
this.
-
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.
-
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.
-
toString
@UML(identifier="aName", obligation=MANDATORY, specification=ISO_19103) String 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.
-
-