|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xalan.xsltc.dom.NodeCounter
public abstract class NodeCounter
Field Summary | |
---|---|
DOM |
_document
|
protected java.lang.String |
_format
|
private java.util.Vector |
_formatToks
|
protected java.lang.String |
_groupSep
|
protected int |
_groupSize
|
DTMAxisIterator |
_iterator
|
protected java.lang.String |
_lang
|
protected java.lang.String |
_letterValue
|
private int |
_nFormats
|
protected int |
_node
|
protected int |
_nodeType
|
private int |
_nSepars
|
private boolean |
_separFirst
|
private boolean |
_separLast
|
private java.util.Vector |
_separToks
|
private java.lang.StringBuffer |
_tempBuffer
|
Translet |
_translet
|
protected double |
_value
|
static int |
END
|
private static java.lang.String[] |
Hundreds
|
private static java.lang.String[] |
Ones
|
private static java.lang.String[] |
Tens
|
private static java.lang.String[] |
Thousands
|
Constructor Summary | |
---|---|
protected |
NodeCounter(Translet translet,
DOM document,
DTMAxisIterator iterator)
|
Method Summary | |
---|---|
private java.lang.String |
alphaValue(int value,
int min,
int max)
|
protected java.lang.String |
formatNumbers(int value)
Format a single value according to the format parameters. |
protected java.lang.String |
formatNumbers(int[] values)
Format a sequence of values according to the format paramaters set by calling setFormatting(). |
private void |
formatValue(int value,
java.lang.String format,
java.lang.StringBuffer buffer)
Format a single value based on the appropriate formatting token. |
abstract java.lang.String |
getCounter()
Returns the position of node according to the level and the from and count patterns. |
java.lang.String |
getCounter(java.lang.String format,
java.lang.String lang,
java.lang.String letterValue,
java.lang.String groupSep,
java.lang.String groupSize)
Returns the position of node according to the level and the from and count patterns. |
boolean |
matchesCount(int node)
Returns true if node matches the count pattern. |
boolean |
matchesFrom(int node)
Returns true if node matches the from pattern. |
private java.lang.String |
romanValue(int n)
|
NodeCounter |
setDefaultFormatting()
Sets formatting fields to their default values. |
protected void |
setFormatting(java.lang.String format,
java.lang.String lang,
java.lang.String letterValue,
java.lang.String groupSep,
java.lang.String groupSize)
Sets formatting fields before calling formatNumbers(). |
abstract NodeCounter |
setStartNode(int node)
Set the start node for this counter. |
private void |
setTokens(java.lang.String format)
|
NodeCounter |
setValue(double value)
If the user specified a value attribute, use this instead of counting nodes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int END
protected int _node
protected int _nodeType
protected double _value
public final DOM _document
public final DTMAxisIterator _iterator
public final Translet _translet
protected java.lang.String _format
protected java.lang.String _lang
protected java.lang.String _letterValue
protected java.lang.String _groupSep
protected int _groupSize
private boolean _separFirst
private boolean _separLast
private java.util.Vector _separToks
private java.util.Vector _formatToks
private int _nSepars
private int _nFormats
private static final java.lang.String[] Thousands
private static final java.lang.String[] Hundreds
private static final java.lang.String[] Tens
private static final java.lang.String[] Ones
private java.lang.StringBuffer _tempBuffer
Constructor Detail |
---|
protected NodeCounter(Translet translet, DOM document, DTMAxisIterator iterator)
Method Detail |
---|
public abstract NodeCounter setStartNode(int node)
public NodeCounter setValue(double value)
protected void setFormatting(java.lang.String format, java.lang.String lang, java.lang.String letterValue, java.lang.String groupSep, java.lang.String groupSize)
private final void setTokens(java.lang.String format)
public NodeCounter setDefaultFormatting()
public abstract java.lang.String getCounter()
public java.lang.String getCounter(java.lang.String format, java.lang.String lang, java.lang.String letterValue, java.lang.String groupSep, java.lang.String groupSize)
public boolean matchesCount(int node)
public boolean matchesFrom(int node)
protected java.lang.String formatNumbers(int value)
protected java.lang.String formatNumbers(int[] values)
private void formatValue(int value, java.lang.String format, java.lang.StringBuffer buffer)
private java.lang.String alphaValue(int value, int min, int max)
private java.lang.String romanValue(int n)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |