public class DecimalFormatManager extends Object
In XSLT 2.0, 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, and in XSLT 3.0 decimal formats are local to a package. 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-2014 Saxonica Limited. All rights reserved.