|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.saxon.trans.DecimalFormatManager
public class DecimalFormatManager
DecimalFormatManager manages the collection of named and unnamed decimal formats, for use by the format-number() function.
In XSLT, there is a single set of decimal formats shared by the whole stylesheet. In XQuery 1.1, however, each query module has its own set of decimal formats. The DecimalFormatManager to use is therefore linked from the format-number() call on the expression tree.
Field Summary | |
---|---|
static StructuredQName |
DEFAULT_NAME
|
Constructor Summary | |
---|---|
DecimalFormatManager()
create a DecimalFormatManager and initialise variables |
Method Summary | |
---|---|
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 |
setDefaultDecimalFormat(DecimalSymbols dfs,
int precedence)
Register the default decimal-format. |
void |
setNamedDecimalFormat(StructuredQName qName,
DecimalSymbols dfs,
int precedence)
Set a named decimal format. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final StructuredQName DEFAULT_NAME
Constructor Detail |
---|
public DecimalFormatManager()
Method Detail |
---|
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 format
XPathException
public DecimalSymbols getNamedDecimalFormat(StructuredQName qName)
qName
- The name of the decimal format
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |