BEA Systems, Inc.

WebLogic Server 6.1 API Reference

weblogic.apache.xpath.operations
Class Variable

java.lang.Object
  |
  +--weblogic.apache.xpath.Expression
        |
        +--weblogic.apache.xpath.operations.Variable

public class Variable
extends Expression

The variable reference expression executer.

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.

See Also:
Serialized Form

Field Summary
protected  QName m_qname
          The qualified name of the variable.
 
Fields inherited from class weblogic.apache.xpath.Expression
m_slocator
 
Constructor Summary
Variable()
           
 
Method Summary
 XObject execute(XPathContext xctxt)
          Dereference the variable, and return the reference value.
 void setQName(QName qname)
          Set the qualified name of the variable.
 
Methods inherited from class weblogic.apache.xpath.Expression
assert, canTraverseOutsideSubtree, error, setSourceLocator, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_qname

protected QName m_qname
The qualified name of the variable.
Constructor Detail

Variable

public Variable()
Method Detail

setQName

public void setQName(QName qname)
Set the qualified name of the variable.

Parameters:
qname - Must be a non-null reference to a qualified name.

execute

public XObject execute(XPathContext xctxt)
                throws javax.xml.transform.TransformerException
Dereference the variable, and return the reference value. Note that lazy evaluation will occur. If a variable within scope is not found, a warning will be sent to the error listener, and an empty nodeset will be returned.

Parameters:
xctxt - The runtime execution context.
Returns:
The evaluated variable, or an empty nodeset if not found.
Throws:
javax.xml.transform.TransformerException -  
Overrides:
execute in class Expression

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs61

WebLogic classes and methods that do not appear in this reference are not public and are not supported.