Package org.basex.query.util
Class NSGlobal
- java.lang.Object
-
- org.basex.query.util.NSGlobal
-
public final class NSGlobal extends Object
Global namespaces.- Author:
- BaseX Team 2005-24, BSD License, Christian Gruen
-
-
Method Summary
All Methods Static Methods Concrete Methods 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[] prefix)
Finds the specified namespace uri.
-
-
-
Field Detail
-
NS
public static final Atts NS
Namespaces: prefixes and namespace URIs.
-
-
Method Detail
-
uri
public static byte[] uri(byte[] prefix)
Finds the specified namespace uri.- Parameters:
prefix
- 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
-
-