gnu.xquery.util
Class QNameUtils

java.lang.Object
  extended by gnu.xquery.util.QNameUtils

public class QNameUtils
extends java.lang.Object


Constructor Summary
QNameUtils()
           
 
Method Summary
static java.lang.Object localNameFromQName(java.lang.Object name)
           
static SName makeQName(java.lang.Object paramURI, java.lang.String paramQName)
          This implements the fn:QName standard function.
static java.lang.Object namespaceURIForPrefix(java.lang.String prefix, java.lang.Object element)
           
static java.lang.Object namespaceURIFromQName(java.lang.Object name)
           
static java.lang.Object prefixFromQName(java.lang.Object name)
           
static java.lang.Object resolveQName(java.lang.Object qname, NamespaceBinding constructorNamespaces, NamespaceBinding prologNamespaces)
          Method called from compiled code to "cast" to a QName.
static boolean validNCName(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QNameUtils

public QNameUtils()
Method Detail

resolveQName

public static java.lang.Object resolveQName(java.lang.Object qname,
                                            NamespaceBinding constructorNamespaces,
                                            NamespaceBinding prologNamespaces)
Method called from compiled code to "cast" to a QName.

Parameters:
qname - The value to cast to QName.
constructorNamespaces - Namespace bindings from namespace attributes in direct element constructors.
prologNamespaces - Namespac bindings from query prolog, as well as builtin namespace prefixes.

validNCName

public static boolean validNCName(java.lang.String name)

makeQName

public static SName makeQName(java.lang.Object paramURI,
                              java.lang.String paramQName)
This implements the fn:QName standard function.


localNameFromQName

public static java.lang.Object localNameFromQName(java.lang.Object name)

prefixFromQName

public static java.lang.Object prefixFromQName(java.lang.Object name)

namespaceURIFromQName

public static java.lang.Object namespaceURIFromQName(java.lang.Object name)

namespaceURIForPrefix

public static java.lang.Object namespaceURIForPrefix(java.lang.String prefix,
                                                     java.lang.Object element)