com.ibm.xml.xapi
Interface XCollectionResolver
- public interface XCollectionResolver
fn:collection
to a sequence of nodes.
If no collection resolver is registered with the XDynamicContext
then calls to fn:collection
will result in a recoverable error
and the empty sequence is used for the collection.
See Also:
Method Summary
Modifier and Type | Method and Description |
---|---|
getCollection(java.lang.String uri,java.lang.String base)
Get the collection for the given URI and base.
|
Method Detail
getCollection
- XSequenceCursor getCollection(java.lang.String uri,
- java.lang.String base)
Parameters:
uri
- The URI provided on the fn:collection
call. base
- The base URI from the static context. Returns:
The sequence of nodes as an
XSequenceCursor
See Also:
XItemFactory
can be used to create anXSequenceCursor
from other types such as DOMNodeList
or an array ofXItemView
. Note that the resulting sequence must be a sequence of nodes. If the URI cannot be resolved then the implementation may throw an uncaught exception. Empty sequences are represented bynull
so a return value ofnull
will be treated as an empty sequence.