|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.saxon.trans.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 | |
ValueRepresentation |
evaluateVariable(XPathContext context)
Get the value of the variable. |
int |
getNameCode()
Establish the fingerprint of the name of this variable. |
java.lang.String |
getVariableName()
Get the name of the variable. |
boolean |
isGlobal()
Indicate whether the binding is local or global. |
static Variable |
make(java.lang.String name,
Configuration config)
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(ValueRepresentation 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, Configuration config)
public boolean isGlobal()
isGlobal
in interface Binding
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(ValueRepresentation 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 ValueRepresentation 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 |