|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.apache.xml.utils.UnImplNode
|
+--org.apache.xalan.templates.ElemTemplateElement
|
+--org.apache.xalan.templates.ElemVariable
**For advanced use only** Implement xsl:variable.
| Constructor Summary | |
ElemVariable()
Constructor ElemVariable |
|
ElemVariable(ElemVariable param)
Copy constructor. |
|
| Method Summary | |
void |
execute(TransformerImpl transformer,
Node sourceNode,
QName mode)
Execute a variable declaration and push it onto the variable stack. |
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,
Node 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 |
setIsTopLevel(boolean v)
Set if this is a top-level variable or param, or not. |
void |
setName(QName v)
Set the "name" attribute. |
void |
setSelect(XPath v)
Set the "select" attribute. |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public ElemVariable()
public ElemVariable(ElemVariable param)
throws TransformerException
param - An element created from an xsl:variable| Method Detail |
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,
Node sourceNode,
QName mode)
throws 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,
Node sourceNode)
throws TransformerException
transformer - non-null reference to the the current transform-time state.sourceNode - non-null reference to the current source node.public void recompose(StylesheetRoot root)
root - The root stylesheet for this transformation.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||