Package net.sf.saxon.expr.number
Class IrregularGroupFormatter
- java.lang.Object
-
- net.sf.saxon.expr.number.NumericGroupFormatter
-
- net.sf.saxon.expr.number.IrregularGroupFormatter
-
- All Implemented Interfaces:
java.io.Serializable
public class IrregularGroupFormatter extends NumericGroupFormatter
Handles grouping separators when formatting a number in cases where the grouping separators are not at regular intervals- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class net.sf.saxon.expr.number.NumericGroupFormatter
adjustedPicture
-
-
Constructor Summary
Constructors Constructor Description IrregularGroupFormatter(int[] pos, int[] sep, java.lang.String adjustedPicture)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
format(FastStringBuffer value)
Reformat a number to add grouping separatorsjava.lang.String
getSeparator()
Get the grouping separator to be used.-
Methods inherited from class net.sf.saxon.expr.number.NumericGroupFormatter
getAdjustedPicture
-
-
-
-
Method Detail
-
format
public java.lang.String format(FastStringBuffer value)
Description copied from class:NumericGroupFormatter
Reformat a number to add grouping separators- Specified by:
format
in classNumericGroupFormatter
- Parameters:
value
- a buffer holding the number to be reformatted- Returns:
- the reformatted number
-
getSeparator
public java.lang.String getSeparator()
Get the grouping separator to be used. If more than one is used, return the last. If no grouping separators are used, return null- Specified by:
getSeparator
in classNumericGroupFormatter
- Returns:
- the grouping separator
-
-