|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.saxon.instruct.SavedNamespaceContext
public final class SavedNamespaceContext
An object representing a list of Namespaces. Used when the namespace controller in the stylesheet needs to be kept for use at run-time. The list of namespaces is maintained in the form of numeric prefix/uri codes, which are only meaningful in the context of a name pool
Constructor Summary | |
---|---|
SavedNamespaceContext(int[] nscodes,
NamePool pool)
Create a NamespaceContext object |
|
SavedNamespaceContext(NamespaceResolver resolver,
NamePool pool)
Create a SavedNamespaceContext that captures all the information in a given NamespaceResolver |
Method Summary | |
---|---|
int[] |
getNamespaceCodes()
Get the list of in-scope namespaces held in this NamespaceContext |
String |
getURIForPrefix(String prefix,
boolean useDefault)
Get the namespace URI corresponding to a given prefix. |
Iterator |
iteratePrefixes()
Get an iterator over all the prefixes declared in this namespace context. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SavedNamespaceContext(int[] nscodes, NamePool pool)
nscodes
- an array of namespace codes. Each namespace code is an integer
in which the first 16 bits represent the prefix (zero if it's the default namespace)
and the next 16 bits represent the uri. These are codes held in the NamePool. The
list will be searched from the "high" end.pool
- the namepoolpublic SavedNamespaceContext(NamespaceResolver resolver, NamePool pool)
resolver
- the NamespaceResolverpool
- the NamePoolMethod Detail |
---|
public int[] getNamespaceCodes()
public String getURIForPrefix(String prefix, boolean useDefault)
getURIForPrefix
in interface NamespaceResolver
prefix
- the namespace prefixuseDefault
- true if the default namespace is to be used when the
prefix is ""
public Iterator iteratePrefixes()
iteratePrefixes
in interface NamespaceResolver
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |