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
answers
private Map answers
currentQuestion
private Question currentQuestion
interview
private Interview interview
questionsBundle
private ResourceBundle questionsBundle
questionsIterator
private Iterator questionsIterator
InterviewSessionImpl
public InterviewSessionImpl(Interview interview, Locale locale)
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)
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