org.JCaiF.Sonar
Class SonarEngine

java.lang.Object
  extended by org.JCaiF.Sonar.SonarEngine

public class SonarEngine
extends java.lang.Object


Field Summary
 SurveyQuestion currentQuestion
           
 SurveyComponent mainComponent
           
 
Constructor Summary
SonarEngine(org.jdom.Document d)
           
SonarEngine(java.io.File f)
           
SonarEngine(java.lang.String s)
           
SonarEngine(SurveyComponent c)
           
 
Method Summary
 SurveyComponent buildComponent(org.jdom.Element e)
           
 ResponseList buildList(org.jdom.Element e)
           
 ListItem buildListItem(org.jdom.Element e)
           
 SurveyQuestion getCurrentQuestion()
           
 org.jdom.Element getDataOutput()
           
 org.jdom.Element getDataOutput(SurveyObject s)
           
 SurveyComponent getMainComponent()
           
 SurveyQuestion getNextQuestion()
           
 SurveyQuestion getNextQuestion(boolean checkLogic)
           
 SurveyQuestion getPreviousQuestion()
           
 boolean hasNextQuestion()
           
 boolean hasPreviousQuestion()
           
 void init()
           
 SurveyQuestion nextQuestion()
           
 SurveyQuestion previousQuestion()
           
 void setCurrentQuestion(SurveyQuestion q)
           
 void setMainComponent(SurveyComponent c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mainComponent

public SurveyComponent mainComponent

currentQuestion

public SurveyQuestion currentQuestion
Constructor Detail

SonarEngine

public SonarEngine(org.jdom.Document d)

SonarEngine

public SonarEngine(java.io.File f)

SonarEngine

public SonarEngine(java.lang.String s)

SonarEngine

public SonarEngine(SurveyComponent c)
Method Detail

getDataOutput

public org.jdom.Element getDataOutput()

getDataOutput

public org.jdom.Element getDataOutput(SurveyObject s)

buildListItem

public ListItem buildListItem(org.jdom.Element e)

buildList

public ResponseList buildList(org.jdom.Element e)

buildComponent

public SurveyComponent buildComponent(org.jdom.Element e)

setMainComponent

public void setMainComponent(SurveyComponent c)

setCurrentQuestion

public void setCurrentQuestion(SurveyQuestion q)

init

public void init()

getMainComponent

public SurveyComponent getMainComponent()

getCurrentQuestion

public SurveyQuestion getCurrentQuestion()

hasNextQuestion

public boolean hasNextQuestion()

nextQuestion

public SurveyQuestion nextQuestion()

getNextQuestion

public SurveyQuestion getNextQuestion()

getNextQuestion

public SurveyQuestion getNextQuestion(boolean checkLogic)

hasPreviousQuestion

public boolean hasPreviousQuestion()

getPreviousQuestion

public SurveyQuestion getPreviousQuestion()

previousQuestion

public SurveyQuestion previousQuestion()