Package org.geotools.api.util
Interface NameSpace
-
public interface NameSpace
A domain in which names given by character strings are defined.- Since:
- GeoAPI 2.1
- Author:
- Bryce Nordgren (USDA), Martin Desruisseaux (IRD)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isGlobal()
Indicates whether this namespace is a "top level" namespace.GenericName
name()
Represents the identifier of this namespace.
-
-
-
Method Detail
-
isGlobal
boolean isGlobal()
Indicates whether this namespace is a "top level" namespace. Global, or top-level namespaces are not contained within another namespace. There is no namespace called "global" or "root" which contains all of the top-level namespaces. Hence, this flag indicates whether the namespace has a parent.- Returns:
true
if this namespace has no parent.
-
name
GenericName name()
Represents the identifier of this namespace. If the global attribute istrue
, indicating that this is a top levelNameSpace
, then the name should be a local name. Iffalse
, name should be a fully-qualified name wherename.scope().isGlobal() == true
.- Returns:
- The identifier of this namespace.
-
-