Package com.icl.saxon
Class DecimalFormatManager
java.lang.Object
com.icl.saxon.DecimalFormatManager
DecimalFormatManager manages the collection of named and unnamed decimal formats
- Version:
- 10 December 1999: extracted from Controller
- Author:
- Michael H. Kay
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the default decimal-format.getNamedDecimalFormat
(int fingerprint) Get a named decimal-format registered using setNamedDecimalFormatvoid
Register the default decimal-format.static void
Set up the XSLT-defined default attributes in a DecimalFormatSymbolsvoid
setNamedDecimalFormat
(int fingerprint, DecimalFormatSymbols dfs) Set a named decimal format.
-
Constructor Details
-
DecimalFormatManager
public DecimalFormatManager()create a Controller and initialise variables
-
-
Method Details
-
setDefaults
Set up the XSLT-defined default attributes in a DecimalFormatSymbols -
setDefaultDecimalFormat
public void setDefaultDecimalFormat(DecimalFormatSymbols dfs) throws TransformerConfigurationException Register the default decimal-format. Note that it is an error to register the same decimal-format twice, even with different precedence -
getDefaultDecimalFormat
Get the default decimal-format. -
setNamedDecimalFormat
public void setNamedDecimalFormat(int fingerprint, DecimalFormatSymbols dfs) throws TransformerConfigurationException Set a named decimal format. Note that it is an error to register the same decimal-format twice, even with different precedence. -
getNamedDecimalFormat
Get a named decimal-format registered using setNamedDecimalFormat- Parameters:
fingerprint
- The fingerprint of the name of the decimal format- Returns:
- the DecimalFormatSymbols object corresponding to the named locale, if any or null if not set.
-