Names are immutables. They may be {@linkplain #toFullyQualifiedName fully qualified}like {@code "org.opengis.util.Record"}, or they may be relative to a {@linkplain #scope scope}like {@code "util.Record"} in the {@code "org.opengis"} scope. The illustration below shows allpossible constructions for {@code "org.opengis.util.Record"}.
org . opengis . util . Record {@link #scope} {@link #getParsedNames} {@linkplain #head head} {@linkplain ScopedName#tail tail} {@linkplain NameSpace#isGlobal global} {@literal} "org", "opengis", "util", "Record"}} {@linkplain ScopedName#path path} {@linkplain #tip tip} {@linkplain ScopedName} {@linkplain #scope scope} head tail {@literal "org"} {@literal} "opengis", "util", "Record"}} path tip ScopedName scope head tail {@literal "org.opengis"} {@literal} "util", "Record"}} path tip ScopedName scope head {@literal "org.opengis.util"} {@literal} "Record"}} tip {@linkplain LocalName}
The {@linkplain Comparable natural ordering} for generic names is implementation dependent.A recommended practice is to {@linkplain String#compareTo compare lexicographically} eachelement in the {@linkplain #getParsedNames 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. @author Martin Desruisseaux (IRD) @author Bryce Nordgren (USDA) @since GeoAPI 1.0 @see javax.naming.Name @source $URL$
|
|
|
|
|
|
|
|
|
|