|
|
|
|
|
||||||||||
| 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.AbstractTypedAnswer<java.util.Collection<java.lang.String>>
org.torweg.pulse.component.survey.model.SelectQuestionAnswer
@Entity public class SelectQuestionAnswer
Is an answer to a AbstractQuestion that has multiple values.
| Constructor Summary | |
|---|---|
protected |
SelectQuestionAnswer()
Default constructor. |
protected |
SelectQuestionAnswer(AbstractQuestion quest,
java.util.Collection<java.lang.String> vals,
java.lang.String customVal)
Creates a new SelectQuestionAnswer with the given
vals and the given AbstractQuestion. |
| Method Summary | |
|---|---|
boolean |
containsValue(java.lang.String val)
Tests the given val against the values of the SelectQuestionAnswer. |
java.lang.String |
getCustomValue()
Returns the custom value of the SelectQuestionAnswer. |
java.util.Collection<java.lang.String> |
getValue()
Returns the values of the SelectQuestionAnswer. |
| Methods inherited from class org.torweg.pulse.component.survey.model.AbstractTypedAnswer |
|---|
getQuestion, getQuestionId, getValidationError, isValid, setQuestionId, setValid, setValidationError |
| 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 SelectQuestionAnswer()
protected SelectQuestionAnswer(AbstractQuestion quest,
java.util.Collection<java.lang.String> vals,
java.lang.String customVal)
SelectQuestionAnswer with the given
vals and the given AbstractQuestion.
quest - the AbstractQuestionvals - the valuescustomVal - the customValue (if any)| Method Detail |
|---|
public final java.util.Collection<java.lang.String> getValue()
SelectQuestionAnswer.
getValue in class AbstractTypedAnswer<java.util.Collection<java.lang.String>>public final java.lang.String getCustomValue()
SelectQuestionAnswer.
public final boolean containsValue(java.lang.String val)
SelectQuestionAnswer.
val - the value to test
Collection.contains(Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||