Enhydra 3.1 API

org.apache.xalan.xslt
Class ElemVariable

java.lang.Object
  |
  +--org.apache.xalan.xslt.UnImplNode
        |
        +--org.apache.xalan.xslt.ElemTemplateElement
              |
              +--org.apache.xalan.xslt.ElemVariable
Direct Known Subclasses:
ElemParam

public class ElemVariable
extends ElemTemplateElement

Implement xsl:variable.

See Also:
Serialized Form

Field Summary
 boolean m_isTopLevel
           
 QName m_qname
           
 XPath m_selectPattern
           
 
Fields inherited from class org.apache.xalan.xslt.ElemTemplateElement
m_columnNumber, m_defaultSpace, m_elemName, m_excludedNamespaces, m_finishedConstruction, m_firstChild, m_lineNumber, m_namespaces, m_parentNode, m_stylesheet
 
Constructor Summary
ElemVariable(ElemVariable param)
          Copy constructor.
ElemVariable(XSLTEngineImpl processor, Stylesheet stylesheetTree, java.lang.String name, AttributeList atts, int lineNumber, int columnNumber)
           
 
Method Summary
 void execute(XSLTEngineImpl processor, Node sourceTree, Node sourceNode, QName mode)
          Execute the element's primary function.
 XObject getValue(XSLTEngineImpl processor, Node sourceTree, Node sourceNode)
          Get the XObject representation of the variable.
 int getXSLToken()
          Get an integer representation of the element type.
 
Methods inherited from class org.apache.xalan.xslt.ElemTemplateElement
appendChild, childrenToString, error, executeChildren, getBaseIdentifier, getChildNodes, getFirstChild, getLastChild, getLength, getNamespaceForPrefix, getNamespaceForPrefix, getNextSibling, getNodeName, getNodeType, getOwnerDocument, getParentNode, getTagName, hasChildNodes, isSpace, isWhiteSpace, item, processLocatedNode, processPrefixControl, shouldExcludeResultNamespaceNode, transformSelectedChildren
 
Methods inherited from class org.apache.xalan.xslt.UnImplNode
cloneNode, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getElementsByTagName, getElementsByTagNameNS, getLocalName, getNamespaceURI, getNodeValue, getPrefix, getPreviousSibling, hasAttribute, hasAttributeNS, hasAttributes, insertBefore, isSupported, normalize, removeAttribute, removeAttributeNode, removeAttributeNS, removeChild, replaceChild, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setNodeValue, setPrefix, supports
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_selectPattern

public XPath m_selectPattern

m_qname

public QName m_qname

m_isTopLevel

public boolean m_isTopLevel
Constructor Detail

ElemVariable

public ElemVariable(ElemVariable param)
             throws SAXException
Copy constructor.

ElemVariable

public ElemVariable(XSLTEngineImpl processor,
                    Stylesheet stylesheetTree,
                    java.lang.String name,
                    AttributeList atts,
                    int lineNumber,
                    int columnNumber)
             throws SAXException
Method Detail

getXSLToken

public int getXSLToken()
Description copied from class: ElemTemplateElement
Get an integer representation of the element type.
Overrides:
getXSLToken in class ElemTemplateElement
Tags copied from class: ElemTemplateElement
Returns:
An integer representation of the element, defined in the Constants class.
See Also:
Constants.java

execute

public void execute(XSLTEngineImpl processor,
                    Node sourceTree,
                    Node sourceNode,
                    QName mode)
             throws XSLProcessorException,
                    java.net.MalformedURLException,
                    java.io.FileNotFoundException,
                    java.io.IOException,
                    SAXException
Description copied from class: ElemTemplateElement
Execute the element's primary function. Subclasses of this function may recursivly execute down the element tree.
Overrides:
execute in class ElemTemplateElement
Tags copied from class: ElemTemplateElement
Parameters:
processor - The XSLT Processor.
sourceTree - The input source tree.
sourceNode - The current context node.
mode - The current mode.
Throws:
XSLProcessorException -  
java.net.MalformedURLException -  
java.io.FileNotFoundException -  
java.io.IOException -  
SAXException -  

getValue

public XObject getValue(XSLTEngineImpl processor,
                        Node sourceTree,
                        Node sourceNode)
                 throws XSLProcessorException,
                        java.net.MalformedURLException,
                        java.io.FileNotFoundException,
                        java.io.IOException,
                        SAXException
Get the XObject representation of the variable.

Enhydra 3.1 API