Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.jplanet.xsldb
Class DecisionMaker  view DecisionMaker download DecisionMaker.java

java.lang.Object
  extended bycom.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

Field Summary
static int DO_IT_AGAIN
          do it again!
static int DO_PROMPT
           
static int DO_PROMPT_NEXT_TIME
           
static int EXIT_AT_ONCE
           
static int GO_ON
           
static int INSPECT_EVERY_ITEM
           
static int INSPECT_VALUE_OF
           
protected static int masterDecision
           
static int NEVER_STOP
           
protected  int nextBreakPoint
          'reset': Indicates that there's no BreakPoint (now).
protected  java.lang.String nextBreakString
          A BreakString indicates a String representation where to stop the xslt processing.
static int PROMPT_EVERY_ITEM
           
static int RESET
           
static int SELECTION_EVENT
           
static int TRACER_EVENT
           
 
Constructor Summary
DecisionMaker()
           
 
Method Summary
 int decide(java.lang.Object obj)
          Is called after every item-selection.
 int decide(java.lang.String question)
          Is called after every item-selection and when the user entered a command.
 int init(java.lang.String question)
          Initialization method for the DecisionMaker.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

DecisionMaker

public DecisionMaker()
Method Detail

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.