com.icl.saxon
Class DecimalFormatManager
java.lang.Object
com.icl.saxon.DecimalFormatManager
public class DecimalFormatManager
extends java.lang.Object
DecimalFormatManager manages the collection of named and unnamed decimal formats
DecimalFormatSymbols | getDefaultDecimalFormat() - Get the default decimal-format.
|
DecimalFormatSymbols | getNamedDecimalFormat(int fingerprint) - Get a named decimal-format registered using setNamedDecimalFormat
|
void | setDefaultDecimalFormat(DecimalFormatSymbols dfs) - Register the default decimal-format.
|
static void | setDefaults(DecimalFormatSymbols d) - Set up the XSLT-defined default attributes in a DecimalFormatSymbols
|
void | setNamedDecimalFormat(int fingerprint, DecimalFormatSymbols dfs) - Set a named decimal format.
|
DecimalFormatManager
public DecimalFormatManager()
create a Controller and initialise variables
getDefaultDecimalFormat
public DecimalFormatSymbols getDefaultDecimalFormat()
Get the default decimal-format.
getNamedDecimalFormat
public DecimalFormatSymbols getNamedDecimalFormat(int fingerprint)
Get a named decimal-format registered using setNamedDecimalFormat
fingerprint
- The fingerprint of the name of the decimal format
- the DecimalFormatSymbols object corresponding to the named locale, if any
or null if not set.
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
setDefaults
public static void setDefaults(DecimalFormatSymbols d)
Set up the XSLT-defined default attributes in a DecimalFormatSymbols
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.