|
BEA Systems, Inc. | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--weblogic.apache.xml.utils.UnImplNode
|
+--weblogic.apache.xalan.templates.ElemTemplateElement
|
+--weblogic.apache.xalan.templates.ElemNumber
Implement xsl:number.
This class is based on an implementation from the Apache XML Project. In future releases the XML parser, XSLT processor, and associated classes will likely be updated to be based on a later version of the Apache implementations. Since Apache does not guarantee backwards compatibility between versions of their software, we cannot guarantee backwards compatibility of any of the classes contained in the weblogic.apache package or sub-packages.
| Fields inherited from class weblogic.apache.xalan.templates.ElemTemplateElement |
m_docOrderNumber,
m_parentNode |
| Constructor Summary | |
ElemNumber()
|
|
| Method Summary | |
org.w3c.dom.Node |
appendChild(org.w3c.dom.Node newChild)
Add a child to the child list. |
void |
execute(TransformerImpl transformer,
org.w3c.dom.Node sourceNode,
QName mode)
Execute an xsl:number instruction. |
XPath |
getCount()
Get the "count" attribute. |
AVT |
getFormat()
Get the "format" attribute. |
XPath |
getFrom()
Get the "from" attribute. |
AVT |
getGroupingSeparator()
Get the "grouping-separator" attribute. |
AVT |
getGroupingSize()
Get the "grouping-size" attribute. |
AVT |
getLang()
Get the "lang" attribute. |
AVT |
getLetterValue()
Get the "letter-value" attribute. |
int |
getLevel()
Get the "level" attribute. |
java.lang.String |
getNodeName()
Return the node name. |
org.w3c.dom.Node |
getPreviousNode(XPathContext xctxt,
org.w3c.dom.Node pos)
Get the previous node to be counted. |
org.w3c.dom.Node |
getTargetNode(XPathContext xctxt,
org.w3c.dom.Node sourceNode)
Get the target node that will be counted.. |
XPath |
getValue()
Get the "value" attribute. |
int |
getXSLToken()
Get an int constant identifying the type of element. |
protected void |
int2alphaCount(int val,
char[] aTable,
FastStringBuffer stringBuf)
Convert a long integer into alphabetic counting, in other words count using the sequence A B C ... |
protected java.lang.String |
int2singlealphaCount(int val,
char[] table)
Convert a long integer into alphabetic counting, in other words count using the sequence A B C ... |
protected java.lang.String |
long2roman(long val,
boolean prefixesAreOK)
Convert a long integer into roman numerals. |
void |
setCount(XPath v)
Set the "count" attribute. |
void |
setFormat(AVT v)
Set the "format" attribute. |
void |
setFrom(XPath v)
Set the "from" attribute. |
void |
setGroupingSeparator(AVT v)
Set the "grouping-separator" attribute. |
void |
setGroupingSize(AVT v)
Set the "grouping-size" attribute. |
void |
setLang(AVT v)
Set the "lang" attribute. |
void |
setLetterValue(AVT v)
Set the "letter-value" attribute. |
void |
setLevel(int v)
Set the "level" attribute. |
void |
setValue(XPath v)
Set the "value" attribute. |
protected java.lang.String |
tradAlphaCount(int val,
XResourceBundle thisBundle)
Convert a long integer into traditional alphabetic counting, in other words count using the traditional numbering. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public ElemNumber()
| Method Detail |
public void setCount(XPath v)
v - Value to set for "count" attribute.public XPath getCount()
public void setFrom(XPath v)
v - Value to set for "from" attribute.public XPath getFrom()
public void setLevel(int v)
v - Value to set for "level" attribute.public int getLevel()
public void setValue(XPath v)
v - Value to set for "value" attribute.public XPath getValue()
public void setFormat(AVT v)
v - Value to set for "format" attribute.public AVT getFormat()
public void setLang(AVT v)
v - Value to set for "lang" attribute.public AVT getLang()
public void setLetterValue(AVT v)
v - Value to set for "letter-value" attribute.public AVT getLetterValue()
public void setGroupingSeparator(AVT v)
v - Value to set for "grouping-separator" attribute.public AVT getGroupingSeparator()
public void setGroupingSize(AVT v)
v - Value to set for "grouping-size" attribute.public AVT getGroupingSize()
public int getXSLToken()
Constantspublic java.lang.String getNodeName()
public void execute(TransformerImpl transformer,
org.w3c.dom.Node sourceNode,
QName mode)
throws javax.xml.transform.TransformerException
transformer - non-null reference to the the current transform-time state.sourceNode - non-null reference to the current source node.mode - reference, which may be null, to the current mode.
public org.w3c.dom.Node appendChild(org.w3c.dom.Node newChild)
throws org.w3c.dom.DOMException
newChild - Child to add to child list
public org.w3c.dom.Node getPreviousNode(XPathContext xctxt,
org.w3c.dom.Node pos)
throws javax.xml.transform.TransformerException
xctxt - The XPath runtime state for this.pos - The current node
public org.w3c.dom.Node getTargetNode(XPathContext xctxt,
org.w3c.dom.Node sourceNode)
throws javax.xml.transform.TransformerException
xctxt - The XPath runtime state for this.sourceNode - non-null reference to the current source node.
protected java.lang.String int2singlealphaCount(int val,
char[] table)
val - Value to convert -- must be greater than zero.table - a table containing one character for each digit in the radix
protected void int2alphaCount(int val,
char[] aTable,
FastStringBuffer stringBuf)
val - Value to convert -- must be greater than zero.table - a table containing one character for each digit in the radixaTable - Array of alpha characters representing numbersstringBuf - Buffer where to save the string representing alpha count of number.
protected java.lang.String tradAlphaCount(int val,
XResourceBundle thisBundle)
val - Value to convert -- must be greater than zero.table - a table containing one character for each digit in the radixthisBundle - Resource bundle to use
protected java.lang.String long2roman(long val,
boolean prefixesAreOK)
val - Value to convert.prefixesAreOK - true_ to enable prefix notation (e.g. 4 = "IV"),
false_ to disable prefix notation (e.g. 4 = "IIII").DecimalToRoman,
m_romanConvertTable
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs61 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||