|
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.ElemVariable
Implement xsl:variable.
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.
| Field Summary | |
protected int |
m_index
This is the index into the stack frame. |
protected QName |
m_qname
The value of the "name" attribute. |
| Fields inherited from class weblogic.apache.xalan.templates.ElemTemplateElement |
m_docOrderNumber,
m_hasVariableDecl,
m_parentNode |
| Constructor Summary | |
ElemVariable()
Constructor ElemVariable |
|
ElemVariable(ElemVariable param)
Copy constructor. |
|
| Method Summary | |
void |
compose(StylesheetRoot sroot)
This function is called after everything else has been recomposed, and allows the template to set remaining values that may be based on some other property that depends on recomposition. |
void |
execute(TransformerImpl transformer)
Execute a variable declaration and push it onto the variable stack. |
int |
getIndex()
If this element is not at the top-level, get the relative position of the variable into the stack frame. |
boolean |
getIsTopLevel()
Get if this is a top-level variable or param, or not. |
QName |
getName()
Get the "name" attribute. |
java.lang.String |
getNodeName()
Return the node name. |
XPath |
getSelect()
Get the "select" attribute. |
XObject |
getValue(TransformerImpl transformer,
int sourceNode)
Get the XObject representation of the variable. |
int |
getXSLToken()
Get an integer representation of the element type. |
void |
recompose(StylesheetRoot root)
This function is called during recomposition to control how this element is composed. |
void |
setIndex(int index)
Sets the relative position of this variable within the stack frame (if local) or the global area (if global). |
void |
setIsTopLevel(boolean v)
Set if this is a top-level variable or param, or not. |
void |
setName(QName v)
Set the "name" attribute. |
void |
setParentElem(ElemTemplateElement p)
Set the parent as an ElemTemplateElement. |
void |
setSelect(XPath v)
Set the "select" attribute. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
protected int m_index
protected QName m_qname
| Constructor Detail |
public ElemVariable()
public ElemVariable(ElemVariable param)
throws javax.xml.transform.TransformerException
param - An element created from an xsl:variable| Method Detail |
public void setIndex(int index)
public int getIndex()
public void setSelect(XPath v)
v - Value to set for the "select" attribute.public XPath getSelect()
public void setName(QName v)
v - Value to set for the "name" attribute.public QName getName()
public void setIsTopLevel(boolean v)
v - Boolean indicating whether this is a top-level variable
or param, or not.public boolean getIsTopLevel()
public int getXSLToken()
Constantspublic java.lang.String getNodeName()
public void execute(TransformerImpl transformer)
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 XObject getValue(TransformerImpl transformer,
int sourceNode)
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.
public void compose(StylesheetRoot sroot)
throws javax.xml.transform.TransformerException
public void recompose(StylesheetRoot root)
root - The root stylesheet for this transformation.public void setParentElem(ElemTemplateElement p)
parent - This node's parent as an ElemTemplateElement
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs70 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||