org.apache.jsieve
Class BaseSieveContext

java.lang.Object
  extended by org.apache.jsieve.SieveContext
      extended by org.apache.jsieve.BaseSieveContext

public class BaseSieveContext
extends SieveContext

Bean based implementation of context.


Constructor Summary
BaseSieveContext(CommandManager commandManager, ComparatorManager comparatorManager, TestManager testManager, org.apache.commons.logging.Log log)
           
 
Method Summary
 ExecutableCommand getCommand(java.lang.String name)
           
 CommandStateManager getCommandStateManager()
           
 Comparator getComparator(java.lang.String name)
           
 ConditionManager getConditionManager()
           
 ScriptCoordinate getCoordinate()
          Gets the script position of the current operation.
 org.apache.commons.logging.Log getLog()
           
 ExecutableTest getTest(java.lang.String name)
           
 void setConditionManager(ConditionManager conditionManager)
           
 void setCoordinate(ScriptCoordinate coordinate)
          Sets the script position of the current operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseSieveContext

public BaseSieveContext(CommandManager commandManager,
                        ComparatorManager comparatorManager,
                        TestManager testManager,
                        org.apache.commons.logging.Log log)
Method Detail

getCoordinate

public ScriptCoordinate getCoordinate()
Gets the script position of the current operation.

Specified by:
getCoordinate in class SieveContext
Returns:
ScriptCoordinate, not null

setCoordinate

public void setCoordinate(ScriptCoordinate coordinate)
Sets the script position of the current operation.

Specified by:
setCoordinate in class SieveContext
Parameters:
coordinate - ScriptCoordinate, not null

getCommandStateManager

public CommandStateManager getCommandStateManager()
Specified by:
getCommandStateManager in class SieveContext

getConditionManager

public ConditionManager getConditionManager()
Specified by:
getConditionManager in class SieveContext

setConditionManager

public void setConditionManager(ConditionManager conditionManager)
Specified by:
setConditionManager in class SieveContext

getCommand

public ExecutableCommand getCommand(java.lang.String name)
                             throws LookupException
Specified by:
getCommand in class SieveContext
Throws:
LookupException

getComparator

public Comparator getComparator(java.lang.String name)
                         throws LookupException
Specified by:
getComparator in class SieveContext
Throws:
LookupException

getTest

public ExecutableTest getTest(java.lang.String name)
                       throws LookupException
Specified by:
getTest in class SieveContext
Throws:
LookupException

getLog

public org.apache.commons.logging.Log getLog()
Specified by:
getLog in class SieveContext


Copyright © 2008-2009 The Apache Software Foundation. All Rights Reserved.