|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.saxon.xpath.Variable
public final class 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. |
SequenceType |
getRequiredType()
Get the SequenceType of the variable. |
int |
getVariableFingerprint()
Establish the fingerprint of the name of this variable. |
String |
getVariableName()
Get the name of the variable. |
protected static Variable |
make(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(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 |
---|
protected static Variable make(String name)
public SequenceType getRequiredType()
getRequiredType
in interface Binding
public String getVariableName()
getVariableName
in interface Binding
getVariableName
in interface VariableDeclaration
public int getVariableFingerprint()
getVariableFingerprint
in interface VariableDeclaration
public void setValue(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) throws XPathException
value
- the value of the variable, which must be an instance of a class
representing a value in the XPath model.
XPathException
- if the Java value cannot be converted to an XPath typepublic 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 |