| Modifier and Type | Field and Description |
|---|---|
| public final DOM | |
| protected String | |
| private List | |
| protected String | |
| protected int | |
| protected boolean | _hasFrom
Indicates if this instance of xsl:number has a from pattern. |
| public final DTMAxisIterator | |
| protected String | |
| protected String | |
| private int | |
| protected int | |
| protected int | |
| private int | |
| private boolean | |
| private boolean | |
| private List | |
| private StringBuilder | |
| public final Translet | |
| protected double | |
| public static final int | |
| private static final String[] | |
| private static final String[] | |
| private static final String[] | |
| private static final String[] |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| private String | |
| protected String | |
| protected String | formatNumbers(int[] values)
Format a sequence of values according to the format paramaters set by calling setFormatting(). |
| private void | formatValue(int value, String format, StringBuilder buffer)
Format a single value based on the appropriate formatting token. |
| public abstract String | |
| public String | |
| public boolean | |
| public boolean | |
| private int | Returns: Either an int represented by the incoming String s, or 0 if the parsing is not successful.A String to be parsed into an int. s)Effectively does the same thing as Integer.parseInt(String s) except instead of throwing a NumberFormatException, it returns 0. |
| private String | |
| public NodeCounter | |
| protected void | |
| public abstract NodeCounter | |
| private final void | |
| public NodeCounter |
| _document | back to summary |
|---|---|
| public final DOM _document | |
| _format | back to summary |
|---|---|
| protected String _format | |
| _formatToks | back to summary |
|---|---|
| private List<String> _formatToks | |
| _groupSep | back to summary |
|---|---|
| protected String _groupSep | |
| _groupSize | back to summary |
|---|---|
| protected int _groupSize | |
| _hasFrom | back to summary |
|---|---|
| protected boolean _hasFrom Indicates if this instance of xsl:number has a from pattern. | |
| _iterator | back to summary |
|---|---|
| public final DTMAxisIterator _iterator | |
| _lang | back to summary |
|---|---|
| protected String _lang | |
| _letterValue | back to summary |
|---|---|
| protected String _letterValue | |
| _nFormats | back to summary |
|---|---|
| private int _nFormats | |
| _node | back to summary |
|---|---|
| protected int _node | |
| _nodeType | back to summary |
|---|---|
| protected int _nodeType | |
| _nSepars | back to summary |
|---|---|
| private int _nSepars | |
| _separFirst | back to summary |
|---|---|
| private boolean _separFirst | |
| _separLast | back to summary |
|---|---|
| private boolean _separLast | |
| _separToks | back to summary |
|---|---|
| private List<String> _separToks | |
| _tempBuffer | back to summary |
|---|---|
| private StringBuilder _tempBuffer | |
| _translet | back to summary |
|---|---|
| public final Translet _translet | |
| _value | back to summary |
|---|---|
| protected double _value | |
| END | back to summary |
|---|---|
| public static final int END | |
| Hundreds | back to summary |
|---|---|
| private static final String[] Hundreds | |
| Ones | back to summary |
|---|---|
| private static final String[] Ones | |
| Tens | back to summary |
|---|---|
| private static final String[] Tens | |
| Thousands | back to summary |
|---|---|
| private static final String[] Thousands | |
| NodeCounter | back to summary |
|---|---|
| protected NodeCounter(Translet translet, DOM document, DTMAxisIterator iterator) | |
| NodeCounter | back to summary |
|---|---|
| protected NodeCounter(Translet translet, DOM document, DTMAxisIterator iterator, boolean hasFrom) | |
| alphaValue | back to summary |
|---|---|
| private String alphaValue(int value, int min, int max) | |
| formatNumbers | back to summary |
|---|---|
| protected String formatNumbers(int value) Format a single value according to the format parameters. | |
| formatNumbers | back to summary |
|---|---|
| protected String formatNumbers(int[] values) Format a sequence of values according to the format paramaters set by calling setFormatting(). | |
| formatValue | back to summary |
|---|---|
| private void formatValue(int value, String format, StringBuilder buffer) Format a single value based on the appropriate formatting token. This method is based on saxon (Michael Kay) and only implements lang="en". | |
| getCounter | back to summary |
|---|---|
| public abstract String getCounter() Returns the position of node according to the level and the from and count patterns. | |
| getCounter | back to summary |
|---|---|
| public String getCounter(String format, String lang, String letterValue, String groupSep, String groupSize) Returns the position of node according to the level and the from and count patterns. This position is converted into a string based on the arguments passed. | |
| matchesCount | back to summary |
|---|---|
| public boolean matchesCount(int node) Returns true if node matches the count pattern. By default a node matches the count patterns if it is of the same type as the starting node. | |
| matchesFrom | back to summary |
|---|---|
| public boolean matchesFrom(int node) Returns true if node matches the from pattern. By default, no node matches the from pattern. | |
| parseStringToAnInt | back to summary |
|---|---|
| private int parseStringToAnInt(String s) Effectively does the same thing as Integer.parseInt(String s) except instead of throwing a NumberFormatException, it returns 0. This method is used instead of Integer.parseInt() since it does not incur the overhead of throwing an Exception which is expensive.
| |
| romanValue | back to summary |
|---|---|
| private String romanValue(int n) | |
| setDefaultFormatting | back to summary |
|---|---|
| public NodeCounter setDefaultFormatting() Sets formatting fields to their default values. | |
| setFormatting | back to summary |
|---|---|
| protected void setFormatting(String format, String lang, String letterValue, String groupSep, String groupSize) Sets formatting fields before calling formatNumbers(). | |
| setStartNode | back to summary |
|---|---|
| public abstract 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. | |
| setTokens | back to summary |
|---|---|
| private final void setTokens(final String format) | |
| setValue | back to summary |
|---|---|
| public NodeCounter setValue(double value) If the user specified a value attribute, use this instead of counting nodes. | |