|
|
|
|
|
||||||||||
| 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
@Entity public abstract class AbstractQuestion
The base-class to derive a question from.
| Constructor Summary | |
|---|---|
AbstractQuestion()
|
|
| Method Summary | |
|---|---|
abstract AbstractTypedAnswer<?> |
getAnswer(ServiceRequest request)
Returns the {@code AbstractTypedAnswer<? |
java.lang.String |
getQuestionText()
Returns the question text of the AbstractQuestion. |
boolean |
isAllowBlank()
Returns the value for allow-blank. |
abstract boolean |
isValid(AbstractTypedAnswer<?> answer)
Checks the given {@code AbstractTypedAnswer<? |
void |
setIsAllowBlank(boolean allow)
Sets the value for isAllowBlank of the AbstractQuestion. |
void |
setQuestionText(java.lang.String text)
Sets the question text for the AbstractQuestion. |
| 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 AbstractQuestion()
| Method Detail |
|---|
public final void setIsAllowBlank(boolean allow)
AbstractQuestion.
allow - the value to setpublic final boolean isAllowBlank()
public final void setQuestionText(java.lang.String text)
AbstractQuestion.
text - the question text to setpublic final java.lang.String getQuestionText()
AbstractQuestion.
public abstract boolean isValid(AbstractTypedAnswer<?> answer)
AbstractTypedAnswer<?> for validity.
answer - the AbstractTypedAnswer<?> to validate
true if the
AbstractTypedAnswer<?> is valid,
false otherwisepublic abstract AbstractTypedAnswer<?> getAnswer(ServiceRequest request)
AbstractTypedAnswer<? extends Object> for
the given ServiceRequest.
request - the ServiceRequest
AbstractTypedAnswer<? extends Object>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||