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

final class GlobalNameSpace extends DefaultNameSpace
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 Details

    • serialVersionUID

      private static final long serialVersionUID
      For cross-version compatibility.
      See Also:
    • GLOBAL

      public static final GlobalNameSpace 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 interface org.opengis.util.NameSpace
      Overrides:
      isGlobal in class DefaultNameSpace
      Returns:
      true if this namespace is the global namespace.
    • readResolve

      Object readResolve() throws ObjectStreamException
      Returns the unique instance of global name space on deserialization.
      Overrides:
      readResolve in class DefaultNameSpace
      Returns:
      the unique instance.
      Throws:
      ObjectStreamException - required by specification but should never be thrown.