|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.saxonica.importer.SchemaNamespaceContext
A class for handling Namespace declaration and scoping
| Constructor Summary | |
SchemaNamespaceContext()
Creates a new NamespaceContext instance |
|
SchemaNamespaceContext(SchemaNamespaceContext parent)
|
|
| Method Summary | |
void |
addNamespace(java.lang.String prefix,
java.lang.String uri)
Adds the given namespace declaration to this Namespaces |
SchemaNamespaceContext |
createNamespaceContext()
Creates a new NamespaceContext instance with this context as the parent |
int |
getFingerprint(java.lang.String qname,
boolean useDefault,
NamePool pool)
Use this NamespaceContext to resolve a lexical QName |
java.lang.String |
getNamespaceURI(java.lang.String prefix)
Returns the Namespace URI associated with the given prefix |
SchemaNamespaceContext |
getParent()
Returns the parent Namespaces for this Namespaces instance. |
java.lang.String |
getURIForPrefix(java.lang.String prefix,
boolean useDefault)
Get the namespace URI corresponding to a given prefix. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SchemaNamespaceContext()
public SchemaNamespaceContext(SchemaNamespaceContext parent)
| Method Detail |
public void addNamespace(java.lang.String prefix,
java.lang.String uri)
prefix - the namespace prefixuri - the namespace URI to be associated with the given prefixpublic SchemaNamespaceContext createNamespaceContext()
public java.lang.String getNamespaceURI(java.lang.String prefix)
prefix - the namespace prefix to lookup
public SchemaNamespaceContext getParent()
public java.lang.String getURIForPrefix(java.lang.String prefix,
boolean useDefault)
getURIForPrefix in interface NamespaceResolverprefix - the namespace prefixuseDefault - true if the default namespace is to be used when the
prefix is ""
public int getFingerprint(java.lang.String qname,
boolean useDefault,
NamePool pool)
throws XPathException
getFingerprint in interface NamespaceResolverqname - the lexical QName; this must have already been lexically validateduseDefault - true if the default namespace is to be used to resolve an unprefixed QNamepool - the NamePool to be used
XPathException.Dynamic - if the string is not a valid lexical QName or
if the namespace prefix has not been declared
XPathException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||