Daisy Open Source CMS

org.outerj.daisy.repository.query
Class EvaluationContext

java.lang.Object
  extended by org.outerj.daisy.repository.query.EvaluationContext

public final class EvaluationContext
extends Object


Constructor Summary
EvaluationContext()
           
 
Method Summary
 Document getContextDocument()
           
 Document getContextDocument(int position)
           
 Version getContextVersion()
           
 Version getContextVersion(int position)
           
 void popContextDocument()
          Removes a context document (the latest pushed one) from the stack of context documents.
 void pushContextDocument(Document document, Version version)
          Pushes a context document on the stack of context documents.
 void setContextDocument(Document document, Version version)
          Sets the context document.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EvaluationContext

public EvaluationContext()
Method Detail

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.


Daisy Open Source CMS