java.lang.Object
com.jplanet.xsldb.DecisionMaker
- public class DecisionMaker
- extends java.lang.Object
This class is stateful. One instance is bound to one instance of Xsldb.
- Version:
- 1.0
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
nextBreakPoint
protected int nextBreakPoint
- 'reset': Indicates that there's no BreakPoint (now).
'DEC_RUNTOEND': There never'll be a breakpoint.
nextBreakString
protected java.lang.String nextBreakString
- A BreakString indicates a String representation
where to stop the xslt processing.
'""' means there's no BreakString and therefore no debug break.
RESET
public static final int RESET
- See Also:
- Constant Field Values
DO_IT_AGAIN
public static final int DO_IT_AGAIN
- do it again!
- See Also:
- Constant Field Values
GO_ON
public static final int GO_ON
- See Also:
- Constant Field Values
EXIT_AT_ONCE
public static final int EXIT_AT_ONCE
- See Also:
- Constant Field Values
PROMPT_EVERY_ITEM
public static final int PROMPT_EVERY_ITEM
- See Also:
- Constant Field Values
INSPECT_VALUE_OF
public static final int INSPECT_VALUE_OF
- See Also:
- Constant Field Values
INSPECT_EVERY_ITEM
public static final int INSPECT_EVERY_ITEM
- See Also:
- Constant Field Values
DO_PROMPT
public static final int DO_PROMPT
- See Also:
- Constant Field Values
DO_PROMPT_NEXT_TIME
public static final int DO_PROMPT_NEXT_TIME
- See Also:
- Constant Field Values
NEVER_STOP
public static final int NEVER_STOP
- See Also:
- Constant Field Values
masterDecision
protected static int masterDecision
TRACER_EVENT
public static final int TRACER_EVENT
- See Also:
- Constant Field Values
SELECTION_EVENT
public static final int SELECTION_EVENT
- See Also:
- Constant Field Values
DecisionMaker
public DecisionMaker()
init
public int init(java.lang.String question)
- Initialization method for the DecisionMaker.
Is called only once. Supposed to make one global decision.
decide
public int decide(java.lang.Object obj)
- Is called after every item-selection.
Makes decision based only on the actual decision maker state
and on behalf of the SelectionEvent.
decide
public int decide(java.lang.String question)
- Is called after every item-selection and when the user entered a command.
Makes decision based on the actual decision maker state, the SelectionEvent and a user command.