org.apache.xalan.xsltc.dom

Class SingleNodeCounter

Implemented Interfaces:
Axis, Axis

public abstract class SingleNodeCounter
extends NodeCounter

Authors:
Jacek Ambroziak
Santiago Pericas-Geertsen

Nested Class Summary

Field Summary

Fields inherited from class org.apache.xalan.xsltc.dom.NodeCounter

END, _document, _iterator, _translet

Fields inherited from interface org.apache.xalan.xsltc.dom.Axis

isReverse

Fields inherited from interface org.apache.xml.dtm.Axis

ALL, ALLFROMNODE, ANCESTOR, ANCESTORORSELF, ATTRIBUTE, CHILD, DESCENDANT, DESCENDANTORSELF, DESCENDANTSFROMROOT, DESCENDANTSORSELFFROMROOT, FILTEREDLIST, FOLLOWING, FOLLOWINGSIBLING, NAMESPACE, NAMESPACEDECLS, PARENT, PRECEDING, PRECEDINGANDANCESTOR, PRECEDINGSIBLING, ROOT, SELF, names

Constructor Summary

SingleNodeCounter(Translet translet, DOM document, DTMAxisIterator iterator)

Method Summary

String
getCounter()
Returns the position of node according to the level and the from and count patterns.
static NodeCounter
getDefaultNodeCounter(Translet translet, DOM document, DTMAxisIterator iterator)
NodeCounter
setStartNode(int node)
Set the start node for this counter.

Methods inherited from class org.apache.xalan.xsltc.dom.NodeCounter

getCounter, getCounter, matchesCount, matchesFrom, setDefaultFormatting, setStartNode, setValue

Constructor Details

SingleNodeCounter

public SingleNodeCounter(Translet translet,
                         DOM document,
                         DTMAxisIterator iterator)

Method Details

getCounter

public String getCounter()
Returns the position of node according to the level and the from and count patterns.
Overrides:
getCounter in interface NodeCounter


getDefaultNodeCounter

public static NodeCounter getDefaultNodeCounter(Translet translet,
                                                DOM document,
                                                DTMAxisIterator iterator)


setStartNode

public NodeCounter setStartNode(int node)
Set the start node for this counter. The same NodeCounter object can be used multiple times by resetting the starting node.
Overrides:
setStartNode in interface NodeCounter


Copyright B) 2004 Apache XML Project. All Rights Reserved.