|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xml.utils.UnImplNode org.apache.xalan.templates.ElemTemplateElement org.apache.xalan.templates.DecimalFormatProperties
public class DecimalFormatProperties
Implement xsl:decimal-format.
Field Summary | |
---|---|
(package private) java.text.DecimalFormatSymbols |
m_dfs
An instance of DecimalFormatSymbols for this element. |
private QName |
m_qname
If there is a name attribute, then the element declares a named decimal-format; otherwise, it declares the default decimal-format. |
(package private) static long |
serialVersionUID
|
Fields inherited from class org.apache.xalan.templates.ElemTemplateElement |
---|
m_docOrderNumber, m_firstChild, m_hasVariableDecl, m_nextSibling, m_parentNode |
Fields inherited from class org.apache.xml.utils.UnImplNode |
---|
actualEncoding, fDocumentURI |
Fields inherited from interface org.w3c.dom.Node |
---|
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Fields inherited from interface org.w3c.dom.Node |
---|
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Fields inherited from interface org.w3c.dom.Node |
---|
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Constructor Summary | |
---|---|
DecimalFormatProperties(int docOrderNumber)
Constructor DecimalFormatProperties |
Method Summary | |
---|---|
java.text.DecimalFormatSymbols |
getDecimalFormatSymbols()
Return the decimal format Symbols for this element. |
char |
getDecimalSeparator()
Get the "decimal-separator" attribute. |
char |
getDigit()
Get the "digit" attribute. |
char |
getGroupingSeparator()
Get the "grouping-separator" attribute. |
java.lang.String |
getInfinity()
Get the "infinity" attribute. |
char |
getMinusSign()
Get the "minus-sign" attribute. |
QName |
getName()
Get the "name" attribute. |
java.lang.String |
getNaN()
Get the "NaN" attribute. |
java.lang.String |
getNodeName()
Return the node name. |
char |
getPatternSeparator()
Get the "pattern-separator" attribute. |
char |
getPercent()
Get the "percent" attribute. |
char |
getPerMille()
Get the "per-mille" attribute. |
int |
getXSLToken()
Get an int constant identifying the type of element. |
char |
getZeroDigit()
Get the "zero-digit" attribute. |
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. |
void |
setDigit(char v)
Set the "digit" attribute. |
void |
setGroupingSeparator(char gs)
Set the "grouping-separator" attribute. |
void |
setInfinity(java.lang.String inf)
Set the "infinity" attribute. |
void |
setMinusSign(char v)
Set the "minus-sign" attribute. |
void |
setName(QName qname)
Set the "name" attribute. |
void |
setNaN(java.lang.String v)
Set the "NaN" attribute. |
void |
setPatternSeparator(char v)
Set the "pattern-separator" attribute. |
void |
setPercent(char v)
Set the "percent" attribute. |
void |
setPerMille(char v)
Set the "per-mille" attribute. |
void |
setZeroDigit(char v)
Set the "zero-digit" attribute. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final long serialVersionUID
java.text.DecimalFormatSymbols m_dfs
private QName m_qname
Constructor Detail |
---|
public DecimalFormatProperties(int docOrderNumber)
Method Detail |
---|
public java.text.DecimalFormatSymbols getDecimalFormatSymbols()
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.
public void setName(QName qname)
qname
- The name to set as the "name" attribute.public QName getName()
public void setDecimalSeparator(char ds)
ds
- Character to set as decimal separatorpublic char getDecimalSeparator()
public void setGroupingSeparator(char gs)
gs
- Character to use a grouping separatorpublic char getGroupingSeparator()
public void setInfinity(java.lang.String inf)
inf
- String to use as the "infinity" attribute.public java.lang.String getInfinity()
public void setMinusSign(char v)
v
- Character to use as minus signpublic char getMinusSign()
public void setNaN(java.lang.String v)
v
- String to use as the "NaN" attribute.public java.lang.String getNaN()
public java.lang.String getNodeName()
getNodeName
in interface org.w3c.dom.Node
getNodeName
in class ElemTemplateElement
public void setPercent(char v)
v
- Character to use as percentpublic char getPercent()
public void setPerMille(char v)
v
- Character to use as per-millepublic char getPerMille()
public int getXSLToken()
getXSLToken
in class ElemTemplateElement
Constants
public void setZeroDigit(char v)
v
- Character to use as the digit zeropublic char getZeroDigit()
public void setDigit(char v)
v
- Character to use for a digit in format patternpublic char getDigit()
public void setPatternSeparator(char v)
v
- Character to use as a pattern separatorpublic char getPatternSeparator()
public void recompose(StylesheetRoot root)
recompose
in class ElemTemplateElement
root
- Stylesheet root
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |