public class DefaultScopedName extends AbstractName implements ScopedName
DefaultScopedName can be instantiated by any of the following methods:
DefaultNameFactory.createGenericName(NameSpace, CharSequence)with an array of length 2 or more.
DefaultNameFactory.parseGenericName(NameSpace, CharSequence)with at least one occurrence of the separator in the path.
CharSequenceelements in the arguments given to the constructor are also immutable. Subclasses shall make sure that any overridden methods remain safe to call from multiple threads and do not change any public
|Modifier||Constructor and Description|
Constructs a scoped name as the concatenation of the given generic names.
Constructs a scoped name from the specified list of strings.
|Modifier and Type||Method and Description|
Returns the sequence of local name for this generic name.
Returns the scope (name space) in which this name is local.
castOrCopy, compareTo, depth, equals, hashCode, head, push, tip, toFullyQualifiedName, toInternationalString, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
depth, push, toFullyQualifiedName, toInternationalString
protected DefaultScopedName(NameSpace scope, List<? extends CharSequence> names)
InternationalString, then its
toString(Locale.ROOT)method will be invoked for fetching an unlocalized name. Otherwise the
CharSequence.toString()method will be used.
scope- The scope of this name, or
nullfor the global scope.
names- The local names. This list must have at least two elements.
protected DefaultScopedName(GenericName path, GenericName tail)
path- The first part to concatenate.
tail- The second part to concatenate.
public NameSpace scope()
"org.opengis.util.Record"and if this instance is the
"util.Record"part, then its scope is named
Continuing with the above example, the full
"org.opengis.util.Record" name has
no scope. If this method is invoked on such name, then the SIS implementation returns a
global scope instance (i.e. an instance for which
true) which is unique and named
public GenericName tail()
public GenericName path()
Copyright © 2010–2016 The Apache Software Foundation. All rights reserved.