org.torweg.pulse.component.survey.model
Class QuestionGroupAnswer
java.lang.Object
org.torweg.pulse.util.entity.AbstractBasicEntity
org.torweg.pulse.component.survey.model.AbstractTypedAnswer<java.util.List<AbstractTypedAnswer<?>>>
org.torweg.pulse.component.survey.model.QuestionGroupAnswer
- All Implemented Interfaces:
- java.io.Serializable
@Entity
public class QuestionGroupAnswer
- extends AbstractTypedAnswer<java.util.List<AbstractTypedAnswer<?>>>
The AbstractTypedAnswer<?> for the
QuestionGroup.
- Version:
- $Revision: 1586 $
- Author:
- Daniel Dietz
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
QuestionGroupAnswer
protected QuestionGroupAnswer()
- Default constructor.
QuestionGroupAnswer
protected QuestionGroupAnswer(AbstractQuestion quest,
java.util.List<AbstractTypedAnswer<?>> val)
- Creates a new
QuestionGroupAnswer with the given
val and the given AbstractQuestion.
- Parameters:
quest - the AbstractQuestionval - the value
getValue
public final java.util.List<AbstractTypedAnswer<?>> getValue()
- Returns the value of the
QuestionGroupAnswer.
- Specified by:
getValue in class AbstractTypedAnswer<java.util.List<AbstractTypedAnswer<?>>>
- Returns:
- the value
getAnswer
public final AbstractTypedAnswer<?> getAnswer(AbstractQuestion quest)
- Returns the
AbstractTypedAnswer<?> for the given
AbstractQuestion.
- Parameters:
quest - the AbstractQuestion
- Returns:
- the
AbstractTypedAnswer<?> for the given
AbstractQuestion if the value contains an
AbstractTypedAnswer<?> for the given
AbstractQuestion, null otherwise