org.outerj.daisy.repository.query
Class EvaluationContext
java.lang.Object
org.outerj.daisy.repository.query.EvaluationContext
public final class EvaluationContext
- extends Object
EvaluationContext
public EvaluationContext()
getContextDocument
public Document getContextDocument()
getContextVersion
public Version getContextVersion()
getContextDocument
public Document getContextDocument(int position)
getContextVersion
public Version getContextVersion(int position)
pushContextDocument
public void pushContextDocument(Document document,
Version version)
- Pushes a context document on the stack of context documents.
The version is allowed to be null.
popContextDocument
public void popContextDocument()
- Removes a context document (the latest pushed one) from the stack of context documents.
setContextDocument
public void setContextDocument(Document document,
Version version)
- Sets the context document. This removes any previously pushed context
documents from the stack, thus after calling this method the context
document stack contains just one entry. The version is allowed to be null.