public class DecimalFormatManager
extends java.lang.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(int language,
int languageLevel)
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
|
java.lang.Iterable<StructuredQName> |
getDecimalFormatNames()
Get the names of all named decimal formats that have been registered
|
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(int language, int languageLevel)
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 java.lang.Iterable<StructuredQName> getDecimalFormatNames()
public void checkConsistency() throws XPathException
XPathException
- if any inconsistencies are foundCopyright (c) 2004-2018 Saxonica Limited. All rights reserved.