public class DecimalFormatManager extends Object implements Serializable
Constructor and Description |
---|
DecimalFormatManager()
create a DecimalFormatManager and initialise variables
|
Modifier and Type | Method and Description |
---|---|
void |
fixupDefaultDefault()
Method called at the end of stylesheet compilation to fix up any format-number() calls
to the "default default" decimal format
|
DecimalSymbols |
getDefaultDecimalFormat()
Get the default decimal-format.
|
DecimalSymbols |
getNamedDecimalFormat(String uri,
String localName)
Get a named decimal-format registered using setNamedDecimalFormat
|
void |
registerUsage(String uri,
String localName,
FormatNumber2 call)
Register a format-number() function call that uses a particular decimal format.
|
void |
setDefaultDecimalFormat(DecimalSymbols dfs,
int precedence)
Register the default decimal-format.
|
static void |
setDefaults(DecimalSymbols d)
Set up the XSLT-defined default attributes in a DecimalFormatSymbols
|
void |
setNamedDecimalFormat(String uri,
String localName,
DecimalSymbols dfs,
int precedence)
Set a named decimal format.
|
public DecimalFormatManager()
public static void setDefaults(DecimalSymbols d)
public void setDefaultDecimalFormat(DecimalSymbols dfs, int precedence) throws StaticError
StaticError
public void fixupDefaultDefault() throws StaticError
StaticError
public DecimalSymbols getDefaultDecimalFormat()
public void setNamedDecimalFormat(String uri, String localName, DecimalSymbols dfs, int precedence) throws StaticError
uri
- The URI of the name of the decimal formatlocalName
- The local part of the name of the decimal formatStaticError
public void registerUsage(String uri, String localName, FormatNumber2 call)
public DecimalSymbols getNamedDecimalFormat(String uri, String localName)
uri
- The URI of the name of the decimal formatlocalName
- The local part of the name of the decimal format