java.io.Serializable
public class DecimalFormatManager
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field | Description |
---|---|---|
static StructuredQName |
DEFAULT_NAME |
Constructor | Description |
---|---|
DecimalFormatManager() |
create a DecimalFormatManager and initialise variables
|
Modifier and Type | Method | 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(StructuredQName qName) |
Get a named decimal-format registered using setNamedDecimalFormat
|
void |
registerUsage(StructuredQName qName,
FormatNumber 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(StructuredQName qName,
DecimalSymbols dfs,
int precedence) |
Set a named decimal format.
|
public static final StructuredQName DEFAULT_NAME
public DecimalFormatManager()
public static void setDefaults(DecimalSymbols d)
public void setDefaultDecimalFormat(DecimalSymbols dfs, int precedence) throws XPathException
XPathException
public void fixupDefaultDefault() throws XPathException
XPathException
public DecimalSymbols getDefaultDecimalFormat()
public void setNamedDecimalFormat(StructuredQName qName, DecimalSymbols dfs, int precedence) throws XPathException
qName
- the name of the decimal formatXPathException
public void registerUsage(StructuredQName qName, FormatNumber call)
public DecimalSymbols getNamedDecimalFormat(StructuredQName qName)
qName
- The name of the decimal format