org.exist.xquery
Class Variable
java.lang.Object
org.exist.xquery.Variable
- Direct Known Subclasses:
- LocalVariable
public class Variable
- extends Object
An XQuery/XPath variable, consisting of a QName and a value.
- Author:
- wolf
Variable
public Variable(QName qname)
setValue
public void setValue(Sequence val)
getValue
public Sequence getValue()
getQName
public QName getQName()
getType
public int getType()
setSequenceType
public void setSequenceType(SequenceType type)
throws XPathException
- Throws:
XPathException
getSequenceType
public SequenceType getSequenceType()
setStaticType
public void setStaticType(int type)
getStaticType
public int getStaticType()
isInitialized
public boolean isInitialized()
setIsInitialized
public void setIsInitialized(boolean initialized)
toString
public String toString()
- Overrides:
toString
in class Object
getDependencies
public int getDependencies(XQueryContext context)
getCardinality
public int getCardinality()
setStackPosition
public void setStackPosition(int position)
getContextDocs
public DocumentSet getContextDocs()
setContextDocs
public void setContextDocs(DocumentSet docs)
checkType
public void checkType()
throws XPathException
- Throws:
XPathException
Copyright (C) Wolfgang Meier. All rights reserved.