net.sf.saxon.tinytree
public class TinyTreeEventIterator extends Object implements EventIterator, LocationProvider
Constructor Summary | |
---|---|
TinyTreeEventIterator(TinyNodeImpl startNode, PipelineConfiguration pipe)
Create a TinyTreeEventIterator to return events associated with a tree or subtree |
Method Summary | |
---|---|
int | getColumnNumber(long locationId)
Get location information: the column number of the current start element event |
int | getLineNumber(long locationId)
Get location information: the line number of the current start element event |
String | getSystemId(long locationId)
Get location information: the system Id of the current start element event |
boolean | isFlatSequence()
Determine whether the EventIterator returns a flat sequence of events, or whether it can return
nested event iterators
|
PullEvent | next()
Get the next event |
Parameters: startNode the root of the tree or subtree. Must be a document or element node. pipe the Saxon pipeline configuration
Throws: IllegalArgumentException if the start node is an attribute or namespace node.
Parameters: locationId in this case, the node number in the tiny tree
Returns: the column number of the node if known, or -1 otherwise
Parameters: locationId in this case, the node number in the tiny tree
Returns: the line number of the node if known, or -1 otherwise
Parameters: locationId in this case, the node number in the tiny tree
Returns: the system Id of the node: that is its base URI, before taking xml:base into account
Returns: true if the next() method is guaranteed never to return an EventIterator
Returns: a PullEvent object representing the next event, or null when the sequence is exhausted