public class DecimalFormatManager extends Object implements Serializable
In XSLT, there is a single set of decimal formats shared by the whole stylesheet. In XQuery 3.0, 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.
Constructor and Description |
---|
DecimalFormatManager()
create a DecimalFormatManager and initialise variables
|
Modifier and Type | Method and Description |
---|---|
void |
checkConsistency()
Check the consistency of all DecimalSymbols objects owned by this DecimalFormatManager
|
DecimalSymbols |
getDefaultDecimalFormat()
Get the default decimal-format.
|
DecimalSymbols |
getNamedDecimalFormat(StructuredQName qName)
Get a named decimal-format registered using setNamedDecimalFormat
|
DecimalSymbols |
obtainNamedDecimalFormat(StructuredQName qName)
Get a named decimal-format registered using setNamedDecimalFormat if it exists;
create it if it does not
|
public DecimalFormatManager()
public DecimalSymbols getDefaultDecimalFormat()
public DecimalSymbols getNamedDecimalFormat(StructuredQName qName)
qName
- The name of the decimal formatpublic DecimalSymbols obtainNamedDecimalFormat(StructuredQName qName)
qName
- The name of the decimal formatpublic void checkConsistency() throws XPathException
XPathException
- if any inconsistencies are foundCopyright (c) 2004-2013 Saxonica Limited. All rights reserved.