Class DefaultScopedName

Object
AbstractName
DefaultScopedName
All Implemented Interfaces:
Serializable, Comparable<Generic­Name>, Generic­Name, Scoped­Name

public class DefaultScopedName extends AbstractName implements ScopedName
A composite of a name space (as a local name) and a generic name valid in that name space. See the GeoAPI javadoc for more information.

Default­Scoped­Name can be instantiated by any of the following methods:

Immutability and thread safety

This class is immutable and thus inherently thread-safe if the Name­Space and all Char­Sequence elements 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 Local­Name state.
Since:
0.3
See Also:
  • Constructor Details

    • DefaultScopedName

      protected DefaultScopedName(NameSpace scope, List<? extends CharSequence> names)
      Constructs a scoped name from the specified list of strings. If any of the given names is an instance of International­String, then its to­String(Locale​.ROOT) method will be invoked for fetching an unlocalized name. Otherwise the Char­Sequence​.to­String() method will be used.
      Parameters:
      scope - the scope of this name, or null for the global scope.
      names - the local names. This list must have at least two elements.
    • DefaultScopedName

      protected DefaultScopedName(GenericName path, GenericName tail)
      Constructs a scoped name as the concatenation of the given generic names. The scope of the new name will be the scope of the path argument.
      Parameters:
      path - the first part to concatenate.
      tail - the second part to concatenate.
    • DefaultScopedName

      protected DefaultScopedName(GenericName path, String separator, CharSequence tail)
      Constructs a scoped name as the concatenation of the given generic name with a single character sequence. The scope of the new name will be the scope of the path argument. The tail is a local name created from the given character sequence.
      Parameters:
      path - the first part to concatenate.
      separator - the separator between the head and the tail, or null for inheriting the same separator as the given path.
      tail - the second part to concatenate.
      Since:
      0.8
      See Also:
  • Method Details