gnu.xquery.util
Class QNameUtils
java.lang.Object
gnu.xquery.util.QNameUtils
public class QNameUtils
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QNameUtils
public QNameUtils()
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)