public class QNameUtils
extends java.lang.Object
Constructor and Description |
---|
QNameUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
localNameFromQName(java.lang.Object name) |
static java.lang.String |
lookupPrefix(java.lang.String prefix,
NamespaceBinding constructorNamespaces,
NamespaceBinding prologNamespaces)
Search for a uri matching the given prefix.
|
static Symbol |
makeQName(java.lang.Object paramURI,
java.lang.String paramQName)
This implements the
fn:QName standard function. |
static java.lang.Object |
namespaceURIForPrefix(java.lang.Object 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.String |
resolvePrefix(java.lang.String prefix,
NamespaceBinding constructorNamespaces,
NamespaceBinding prologNamespaces)
Search for a uri matching the given prefix.
|
static java.lang.Object |
resolveQName(java.lang.Object qname,
NamespaceBinding constructorNamespaces,
NamespaceBinding prologNamespaces)
Method called from compiled code to "cast" to a QName.
|
static java.lang.Object |
resolveQNameUsingElement(java.lang.Object qname,
KElement node) |
static java.lang.Object |
resolveURI(java.lang.Object relative,
java.lang.Object base) |
static boolean |
validNCName(java.lang.String name) |
public static java.lang.Object resolveQNameUsingElement(java.lang.Object qname, KElement node)
public static java.lang.Object resolveQName(java.lang.Object qname, NamespaceBinding constructorNamespaces, NamespaceBinding prologNamespaces)
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.public static java.lang.String lookupPrefix(java.lang.String prefix, NamespaceBinding constructorNamespaces, NamespaceBinding prologNamespaces)
public static java.lang.String resolvePrefix(java.lang.String prefix, NamespaceBinding constructorNamespaces, NamespaceBinding prologNamespaces)
public static boolean validNCName(java.lang.String name)
public static Symbol makeQName(java.lang.Object paramURI, java.lang.String paramQName)
fn:QName
standard function.public static java.lang.Object localNameFromQName(java.lang.Object name)
public static java.lang.Object prefixFromQName(java.lang.Object name)
public static java.lang.Object namespaceURIFromQName(java.lang.Object name)
public static java.lang.Object namespaceURIForPrefix(java.lang.Object prefix, java.lang.Object element)
public static java.lang.Object resolveURI(java.lang.Object relative, java.lang.Object base) throws java.net.URISyntaxException
java.net.URISyntaxException