Class NSGlobal

java.lang.Object
org.basex.query.util.NSGlobal

public final class NSGlobal extends Object
Global namespaces.
Author:
BaseX Team 2005-21, BSD License, Christian Gruen
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Atts
    Namespaces: prefixes and namespace URIs.
  • Method Summary

    Modifier and Type
    Method
    Description
    static byte[]
    prefix(byte[] uri)
    Finds the prefix for the specified uri.
    static boolean
    reserved(byte[] uri)
    Checks if the specified uri is a reserved namespace.
    static byte[]
    uri(byte[] pref)
    Finds the specified namespace uri.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • NS

      public static final Atts NS
      Namespaces: prefixes and namespace URIs.
  • Method Details

    • uri

      public static byte[] uri(byte[] pref)
      Finds the specified namespace uri.
      Parameters:
      pref - prefix of the namespace
      Returns:
      uri or null
    • prefix

      public static byte[] prefix(byte[] uri)
      Finds the prefix for the specified uri.
      Parameters:
      uri - namespace uri
      Returns:
      prefix, or empty string
    • reserved

      public static boolean reserved(byte[] uri)
      Checks if the specified uri is a reserved namespace.
      Parameters:
      uri - uri to be checked
      Returns:
      result of check