|
|
|
|
|
||||||||||
| 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<T>
T - the type of the AbstractTypedAnswer<T>@Entity public abstract class AbstractTypedAnswer<T>
The base-class to derive an answer from.
| Constructor Summary | |
|---|---|
AbstractTypedAnswer()
|
|
| Method Summary | |
|---|---|
AbstractQuestion |
getQuestion(org.hibernate.Session s)
Returns the AbstractQuestion the
AbstractTypedAnswer<T> belongs to. |
java.lang.Long |
getQuestionId()
Returns the id of the AbstractQuestion this
AbstractTypedAnswer<T> belongs to. |
AnswerValidationError |
getValidationError()
Returns the validationError. |
abstract T |
getValue()
Returns the value of the AbstractTypedAnswer<T>. |
boolean |
isValid()
Returns true if the
AbstractTypedAnswer<T> is valid, false
otherwise. |
protected void |
setQuestionId(java.lang.Long questId)
Sets the id of the AbstractQuestion this
AbstractTypedAnswer<T> belongs to. |
protected void |
setValid(boolean valid)
Sets the valid-state for the AbstractTypedAnswear. |
protected void |
setValidationError(AnswerValidationError error)
Sets the validationError. |
| 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 |
|---|
public AbstractTypedAnswer()
| Method Detail |
|---|
protected final void setQuestionId(java.lang.Long questId)
AbstractQuestion this
AbstractTypedAnswer<T> belongs to.
questId - the AbstractQuestion to setpublic final java.lang.Long getQuestionId()
AbstractQuestion this
AbstractTypedAnswer<T> belongs to.
AbstractQuestionpublic final AbstractQuestion getQuestion(org.hibernate.Session s)
AbstractQuestion the
AbstractTypedAnswer<T> belongs to.
s - the hibernateTM-Session
AbstractQuestion the
AbstractTypedAnswer<T> belongs to if a
AbstractQuestion could be loaded, null
otherwiseprotected final void setValid(boolean valid)
AbstractTypedAnswear.
valid - the value to be setpublic final boolean isValid()
true if the
AbstractTypedAnswer<T> is valid, false
otherwise.
true if the
AbstractTypedAnswer<T> is valid,
false otherwiseprotected final void setValidationError(AnswerValidationError error)
error - the AnswerValidationError to setpublic final AnswerValidationError getValidationError()
public abstract T getValue()
AbstractTypedAnswer<T>.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||