Package org.apache.sis.util.iso
Class GlobalNameSpace
java.lang.Object
org.apache.sis.util.iso.DefaultNameSpace
org.apache.sis.util.iso.GlobalNameSpace
- All Implemented Interfaces:
Serializable
,org.opengis.util.NameSpace
The global namespace. Only one instance of this class is allowed to exist. We do not expose
any global namespace in public API since ISO 19103 does not define them and users should not
need to handle them explicitly.
Immutability and thread safety
This class is immutable and thus inherently thread-safe.- Since:
- 0.3
- Version:
- 0.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GlobalNameSpace
The unique global namespace.private static final long
For cross-version compatibility.Fields inherited from class org.apache.sis.util.iso.DefaultNameSpace
DEFAULT_SEPARATOR, DEFAULT_SEPARATOR_STRING, separator
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.sis.util.iso.DefaultNameSpace
castOrCopy, child, equals, forName, getSeparator, hashCode, local, name, parent, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDFor cross-version compatibility.- See Also:
-
GLOBAL
The unique global namespace.
-
-
Constructor Details
-
GlobalNameSpace
private GlobalNameSpace()Creates the global namespace.
-
-
Method Details
-
isGlobal
public boolean isGlobal()Indicates that this namespace is a "top level" namespace.- Specified by:
isGlobal
in interfaceorg.opengis.util.NameSpace
- Overrides:
isGlobal
in classDefaultNameSpace
- Returns:
true
if this namespace is the global namespace.
-
readResolve
Returns the unique instance of global name space on deserialization.- Overrides:
readResolve
in classDefaultNameSpace
- Returns:
- the unique instance.
- Throws:
ObjectStreamException
- required by specification but should never be thrown.
-