|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.saxon.xpath.Variable
An object representing an XPath variable for use in the standalone XPath API. The object can only be created by calling the declareVariable method of class StandaloneContext.
Method Summary | |
Value |
evaluateVariable(XPathContext context)
Get the value of the variable. |
int |
getNameCode()
Establish the fingerprint of the name of this variable. |
SequenceType |
getRequiredType()
Get the SequenceType of the variable. |
java.lang.String |
getVariableName()
Get the name of the variable. |
static Variable |
make(java.lang.String name)
Protected factory method, for use by the declareVariable method of class StandaloneContext |
void |
registerReference(BindingReference ref)
Method called by the XPath expression parser to register a reference to this variable. |
void |
setValue(java.lang.Object value)
Assign a value to the variable. |
void |
setXPathValue(Value value)
Assign a value to the variable. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static Variable make(java.lang.String name)
public SequenceType getRequiredType()
public java.lang.String getVariableName()
getVariableName
in interface VariableDeclaration
public int getNameCode()
getNameCode
in interface VariableDeclaration
public void setValue(java.lang.Object value) throws XPathException
value
- the value of the variable
XPathException
- if the Java value cannot be converted to an XPath typepublic void setXPathValue(Value value)
value
- the value of the variable, which must be an instance of a class
representing a value in the XPath model.public void registerReference(BindingReference ref)
registerReference
in interface VariableDeclaration
public Value evaluateVariable(XPathContext context)
evaluateVariable
in interface Binding
context
- The dynamic evaluation context
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |