Class DefaultScopedName

    • Constructor Detail

      • 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 than the given path.
        tail - the second part to concatenate.
        Since:
        0.8
        See Also:
        Names​.create­Scoped­Name(Generic­Name, String, Char­Sequence)
    • Method Detail

      • scope

        public NameSpace scope()
        Returns the scope (name space) in which this name is local. For example if a fully qualified name is "org​.opengis​.util​.Record" and if this instance is the "util​.Record" part, then its scope is named "org​.opengis".

        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 Default­Name­Space​.is­Global() returns true) which is unique and named "global".

        Specified by:
        scope in interface Generic­Name
        Specified by:
        scope in class Abstract­Name
        Returns:
        the scope of this name.