org.rr0.im.business.investigation
Class InterviewSessionImpl

org.rr0.im.business.event.TimeableImpl
  |
  +--org.rr0.im.business.event.EventImpl
        |
        +--org.rr0.im.business.event.RelationshipImpl
              |
              +--org.rr0.im.business.investigation.InterviewSessionImpl

public class InterviewSessionImpl
extends RelationshipImpl
implements InterviewSession

Author:
Jerome Beau
Version: 17 avr. 2004

Field Summary
 private Mapanswers
           
 private QuestioncurrentQuestion
           
 private Interviewinterview
           
 private ResourceBundlequestionsBundle
           
 private IteratorquestionsIterator
           

Fields inherited from class org.rr0.im.business.event.TimeableImpl
history

Constructor Summary
InterviewSessionImpl(Interview interview, Locale locale)
           

Method Summary
 voidanswer(Object answer)
           
 MapgetAnswers()
           
 booleanhasNextQuestion()
           
 ObjectnextQuestion()
          Provide the next question to ask, according to the locale configured for this session.
 private voidsetBundle(String name)
           
 private voidsetInterview(Interview interview)
           

Methods inherited from class org.rr0.im.business.event.RelationshipImpl
getObject, getSubject, setObject, setSubject

Methods inherited from class org.rr0.im.business.event.EventImpl
getForcedCategory

Methods inherited from class org.rr0.im.business.event.TimeableImpl
compareTo, equals, getBegining, getDuration, getEnd, getHistory, getTitle, hashCode, setEndMoment, setTitle

Field Detail

answers

private Map answers

currentQuestion

private Question currentQuestion

interview

private Interview interview

questionsBundle

private ResourceBundle questionsBundle

questionsIterator

private Iterator questionsIterator
Constructor Detail

InterviewSessionImpl

public InterviewSessionImpl(Interview interview, Locale locale)
Method Detail

answer

public void answer(Object answer)

getAnswers

public Map getAnswers()

hasNextQuestion

public boolean hasNextQuestion()

nextQuestion

public Object nextQuestion()
Provide the next question to ask, according to the locale configured for this session.
Returns: An object to use to display the question (a String to print typically)
Throws:
NoSuchElementException If no more questions are available for this session.

setBundle

private void setBundle(String name)

setInterview

private void setInterview(Interview interview)

Association Links

to Class java.util.ResourceBundle

to Class org.rr0.im.business.investigation.Interview

to Class java.util.Map

to Class java.util.Iterator

to Class org.rr0.im.business.investigation.Question