|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.Dictionary java.util.Hashtable org.apache.xalan.transformer.CountersTable
This is a table of counters, keyed by ElemNumber objects, each of which has a list of Counter objects. This really isn't a true table, it is more like a list of lists (there must be a technical term for that...).
Nested Class Summary |
Nested classes inherited from class java.util.Hashtable |
|
Field Summary | |
(package private) int |
m_countersMade
Number of counters created so far |
private NodeSetDTM |
m_newFound
Place to collect new counters. |
Fields inherited from class java.util.Hashtable |
|
Constructor Summary | |
CountersTable()
Construct a CountersTable. |
Method Summary | |
(package private) void |
appendBtoFList(NodeSetDTM flist,
NodeSetDTM blist)
Add a list of counted nodes that were built in backwards document order, or a list of counted nodes that are in forwards document order. |
int |
countNode(XPathContext support,
ElemNumber numberElem,
int node)
Count forward until the given node is found, or until we have looked to the given amount. |
(package private) Vector |
getCounters(ElemNumber numberElem)
Get the list of counters that corresponds to the given ElemNumber object. |
(package private) Vector |
putElemNumber(ElemNumber numberElem)
Put a counter into the table and create an empty vector as it's value. |
Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
private transient NodeSetDTM m_newFound
transient int m_countersMade
Constructor Detail |
public CountersTable()
Method Detail |
Vector getCounters(ElemNumber numberElem)
numberElem
- the given xsl:number element.
Vector putElemNumber(ElemNumber numberElem)
numberElem
- the given xsl:number element.
void appendBtoFList(NodeSetDTM flist, NodeSetDTM blist)
flist
- Vector of nodes built in forwards document orderblist
- Vector of nodes built in backwards document orderpublic int countNode(XPathContext support, ElemNumber numberElem, int node) throws javax.xml.transform.TransformerException
support
- The XPath context to usenumberElem
- The given xsl:number element.node
- The node to count.
javax.xml.transform.TransformerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |