|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.util.entity.AbstractBasicEntity
org.torweg.pulse.component.survey.model.AbstractQuestion
org.torweg.pulse.component.survey.model.QuestionGroup
@Entity public class QuestionGroup
For grouping of multiple AbstractQuestions.
| Constructor Summary | |
|---|---|
protected |
QuestionGroup()
Default constructor. |
|
QuestionGroup(java.util.List<AbstractQuestion> quests)
Creates a new QuestionGroup with the given
List<AbstractQuestion>. |
| Method Summary | |
|---|---|
AbstractTypedAnswer<?> |
getAnswer(ServiceRequest request)
Tries to extract the answer to the QuestionGroup from the
given ServiceRequest. |
java.util.List<AbstractQuestion> |
getQuestions()
Returns the List<AbstractQuestion> of the
QuestionGroup. |
boolean |
isValid(AbstractTypedAnswer<?> answer)
Checks the given {@code AbstractTypedAnswer<? |
protected void |
setQuestions(java.util.List<AbstractQuestion> quests)
Sets the List<AbstractQuestion> for the
QuestionGroup. |
| Methods inherited from class org.torweg.pulse.component.survey.model.AbstractQuestion |
|---|
getQuestionText, isAllowBlank, setIsAllowBlank, setQuestionText |
| Methods inherited from class org.torweg.pulse.util.entity.AbstractBasicEntity |
|---|
compareTo, equals, getFullQualifiedClassNameJAXB, getId, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected QuestionGroup()
public QuestionGroup(java.util.List<AbstractQuestion> quests)
QuestionGroup with the given
List<AbstractQuestion>.
quests - the List<AbstractQuestion>| Method Detail |
|---|
protected final void setQuestions(java.util.List<AbstractQuestion> quests)
List<AbstractQuestion> for the
QuestionGroup.
quests - the List<AbstractQuestion> to setpublic final java.util.List<AbstractQuestion> getQuestions()
List<AbstractQuestion> of the
QuestionGroup.
List<AbstractQuestion> of the
QuestionGrouppublic final AbstractTypedAnswer<?> getAnswer(ServiceRequest request)
QuestionGroup from the
given ServiceRequest.
getAnswer in class AbstractQuestionrequest - the ServiceRequest
AbstractTypedAnswer<?>; precisely a
QuestionGroupAnswerpublic final boolean isValid(AbstractTypedAnswer<?> answer)
AbstractTypedAnswer<?> for validity.
isValid in class AbstractQuestionanswer - the AbstractTypedAnswer<?> to validate
true if the
AbstractTypedAnswer<?> is valid,
false otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||