|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jsieve.ConditionManager
Thread singleton class ConditionManager manages Conditional Commands during a Sieve evaluation.
Method Summary | |
protected static ConditionManager |
computeInstance()
Answers a new instance of the manager. |
static ConditionManager |
getInstance()
Returns the conditionManager, lazily intialised if required. |
protected void |
initialize()
Initialize the receiver. |
boolean |
isElseAllowed()
Method isElseAllowed answers a boolean indicating if an Else Command is allowed. |
boolean |
isElseRunnable()
Method isElseRunnable answers a boolean indicating if an Else Command is runnable based upon the current evaluation state. |
boolean |
isElsifAllowed()
Method isElsifAllowed answers a boolean indicating if an Elsif Command is allowed. |
boolean |
isElsifRunnable()
Method isElsifRunnable answers a boolean indicating if an Elsif Command is runnable based upon the current evaluation state. |
boolean |
isIfAllowed()
Method isIfAllowed answers a boolean indicating if an If Command is allowed. |
boolean |
isIfRunnable()
Method isIfRunnable answers a boolean indicating if an If Command is runnable based upon the current evaluation state. |
protected boolean |
isTestResult()
Returns the testResult. |
static void |
resetInstance()
resets the current conditionManager. |
protected void |
setElseAllowed(boolean elseAllowed)
Sets the elseAllowed. |
void |
setElseTestResult(boolean result)
Method setElseTestResult disables a following Else Command and records the test result. |
void |
setElsifTestResult(boolean result)
Method setElsifTestResult enables a following Else Command and records the test result. |
void |
setIfTestResult(boolean result)
Method setIfTestResult enables a following Else Command and records the test result. |
static void |
setInstance(ConditionManager conditionManager)
Sets the current conditionManager. |
protected void |
setTestResult(boolean testResult)
Sets the testResult. |
protected static void |
updateInstance()
Updates the current conditionManager. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
protected void initialize()
public void setIfTestResult(boolean result)
result
- public void setElsifTestResult(boolean result)
result
- public void setElseTestResult(boolean result)
result
- public boolean isIfAllowed()
public boolean isElsifAllowed()
public boolean isElseAllowed()
public boolean isIfRunnable()
public boolean isElsifRunnable()
public boolean isElseRunnable()
protected static ConditionManager computeInstance()
public static ConditionManager getInstance()
Returns the conditionManager, lazily intialised if required.
Note that this must be synchronized to prevent another thread detecting the null state while this thread is initialising.
public static void setInstance(ConditionManager conditionManager)
conditionManager
- The conditionManager to setpublic static void resetInstance()
protected static void updateInstance()
protected boolean isTestResult()
protected void setElseAllowed(boolean elseAllowed)
elseAllowed
- The elseAllowed to setprotected void setTestResult(boolean testResult)
testResult
- The testResult to set
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |