Package net.sf.saxon.expr.number
Class NumericGroupFormatter
java.lang.Object
net.sf.saxon.expr.number.NumericGroupFormatter
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
IrregularGroupFormatter
,RegularGroupFormatter
A NumericGroupFormatter is responsible for insertion of grouping separators
into a formatted number (for example, reformatting "1234" as "1,234").
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract String
format
(FastStringBuffer value) Reformat a number to add grouping separatorsGet the adjusted (preprocessed) pictureabstract String
Get the grouping separator to be used.
-
Field Details
-
adjustedPicture
-
-
Constructor Details
-
NumericGroupFormatter
public NumericGroupFormatter()
-
-
Method Details
-
getAdjustedPicture
Get the adjusted (preprocessed) picture -
format
Reformat a number to add grouping separators- Parameters:
value
- a buffer holding the number to be reformatted- Returns:
- the reformatted number
-
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- Returns:
- the grouping separator
-