org.apache.xalan.templates
public class DecimalFormatProperties extends ElemTemplateElement
Constructor Summary | |
---|---|
DecimalFormatProperties(int docOrderNumber)
Constructor DecimalFormatProperties
|
Method Summary | |
---|---|
DecimalFormatSymbols | getDecimalFormatSymbols()
Return the decimal format Symbols for this element.
|
char | getDecimalSeparator()
Get the "decimal-separator" attribute.
decimal-separator specifies the character used for the decimal sign;
the default value is the period character (.).
|
char | getDigit()
Get the "digit" attribute.
digit specifies the character used for a digit in the format pattern;
the default value is the number sign character (#).
|
char | getGroupingSeparator()
Get the "grouping-separator" attribute.
grouping-separator specifies the character used as a grouping
(e.g. thousands) separator; the default value is the comma character (,).
|
String | getInfinity()
Get the "infinity" attribute.
infinity specifies the string used to represent infinity;
the default value is the string Infinity.
|
char | getMinusSign()
Get the "minus-sign" attribute.
minus-sign specifies the character used as the default minus sign; the
default value is the hyphen-minus character (-, #x2D).
|
QName | getName()
Get the "name" attribute.
|
String | getNaN()
Get the "NaN" attribute.
|
String | getNodeName()
Return the node name.
|
char | getPatternSeparator()
Get the "pattern-separator" attribute.
pattern-separator specifies the character used to separate positive
and negative sub patterns in a pattern; the default value is the
semi-colon character (;).
|
char | getPercent()
Get the "percent" attribute.
percent specifies the character used as a percent sign; the default
value is the percent character (%).
|
char | getPerMille()
Get the "per-mille" attribute.
per-mille specifies the character used as a per mille sign; the default
value is the Unicode per-mille character (#x2030).
|
int | getXSLToken()
Get an int constant identifying the type of element. |
char | getZeroDigit()
Get the "zero-digit" attribute.
zero-digit specifies the character used as the digit zero; the default
value is the digit zero (0).
|
void | recompose(StylesheetRoot root)
This function is called to recompose() all of the decimal format properties elements.
|
void | setDecimalSeparator(char ds)
Set the "decimal-separator" attribute.
decimal-separator specifies the character used for the decimal sign;
the default value is the period character (.).
|
void | setDigit(char v)
Set the "digit" attribute.
digit specifies the character used for a digit in the format pattern;
the default value is the number sign character (#).
|
void | setGroupingSeparator(char gs)
Set the "grouping-separator" attribute.
grouping-separator specifies the character used as a grouping
(e.g. thousands) separator; the default value is the comma character (,).
|
void | setInfinity(String inf)
Set the "infinity" attribute.
infinity specifies the string used to represent infinity;
the default value is the string Infinity.
|
void | setMinusSign(char v)
Set the "minus-sign" attribute.
minus-sign specifies the character used as the default minus sign; the
default value is the hyphen-minus character (-, #x2D).
|
void | setName(QName qname)
Set the "name" attribute.
|
void | setNaN(String v)
Set the "NaN" attribute.
|
void | setPatternSeparator(char v)
Set the "pattern-separator" attribute.
pattern-separator specifies the character used to separate positive
and negative sub patterns in a pattern; the default value is the
semi-colon character (;).
|
void | setPercent(char v)
Set the "percent" attribute.
percent specifies the character used as a percent sign; the default
value is the percent character (%).
|
void | setPerMille(char v)
Set the "per-mille" attribute.
per-mille specifies the character used as a per mille sign; the default
value is the Unicode per-mille character (#x2030).
|
void | setZeroDigit(char v)
Set the "zero-digit" attribute.
zero-digit specifies the character used as the digit zero; the default
value is the digit zero (0).
|
The xsl:decimal-format element declares a decimal-format, which controls the interpretation of a format pattern used by the format-number function. If there is a name attribute, then the element declares a named decimal-format; otherwise, it declares the default decimal-format. The value of the name attribute is a QName, which is expanded as described in [2.4 Qualified Names]. It is an error to declare either the default decimal-format or a decimal-format with a given name more than once (even with different import precedence), unless it is declared every time with the same value for all attributes (taking into account any default values).
The other attributes on xsl:decimal-format correspond to the methods on the JDK 1.1 DecimalFormatSymbols class. For each get/set method pair there is an attribute defined for the xsl:decimal-format element.
Returns: the decimal format Symbols for this element.
Returns: the character to use as decimal separator
Returns: Character to use for a digit in format pattern
Returns: Character to use a grouping separator
Returns: String to use as the "infinity" attribute.
Returns: Character to use as minus sign
Returns: the value of the "name" attribute.
Returns: String to use as the "NaN" attribute.
Returns: the element's name
Returns: Character to use as a pattern separator
Returns: Character to use as percent
Returns: Character to use as per-mille
Returns: The token ID for this element
Returns: Character to use as the digit zero
Parameters: root Stylesheet root
Parameters: ds Character to set as decimal separator
Parameters: v Character to use for a digit in format pattern
Parameters: gs Character to use a grouping separator
Parameters: inf String to use as the "infinity" attribute.
Parameters: v Character to use as minus sign
Parameters: qname The name to set as the "name" attribute.
Parameters: v String to use as the "NaN" attribute.
Parameters: v Character to use as a pattern separator
Parameters: v Character to use as percent
Parameters: v Character to use as per-mille
Parameters: v Character to use as the digit zero