org.basex.query.xquery.util
Class NSIndex

java.lang.Object
  extended by org.basex.query.xquery.util.NSIndex

public final class NSIndex
extends java.lang.Object

Global expression context.

Author:
Workgroup DBIS, University of Konstanz 2005-07, ISC License, Christian Gruen

Constructor Summary
NSIndex()
           
 
Method Summary
static NSIndex get()
          Gets the function instance.
 byte[] prefix(URI uri)
          Finds the specified URI prefix.
 boolean standard(URI uri)
          Checks if the specified uri is a default uri.
 URI uri(byte[] pre)
          Finds the specified namespace uri.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NSIndex

public NSIndex()
Method Detail

get

public static NSIndex get()
Gets the function instance.

Returns:
instance

prefix

public byte[] prefix(URI uri)
Finds the specified URI prefix.

Parameters:
uri - URI
Returns:
prefix

standard

public boolean standard(URI uri)
Checks if the specified uri is a default uri.

Parameters:
uri - uri to be checked
Returns:
result of check

uri

public URI uri(byte[] pre)
Finds the specified namespace uri.

Parameters:
pre - prefix of the namespace
Returns:
uri