org.basex.query.util
Class NSGlobal

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

public final class NSGlobal
extends java.lang.Object

Global namespaces.

Author:
BaseX Team 2005-12, BSD License, Christian Gruen

Method Summary
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
 

Method Detail

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