pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.component.survey.model
Class OpenQuestionAnswer

java.lang.Object
  extended by org.torweg.pulse.util.entity.AbstractBasicEntity
      extended by org.torweg.pulse.component.survey.model.AbstractTypedAnswer<java.lang.String>
          extended by org.torweg.pulse.component.survey.model.OpenQuestionAnswer
All Implemented Interfaces:
java.io.Serializable

@Entity
public class OpenQuestionAnswer
extends AbstractTypedAnswer<java.lang.String>

Is an answer to a AbstractQuestion that has only one value.

Version:
$Revision: 1586 $
Author:
Daniel Dietz
See Also:
Serialized Form

Constructor Summary
protected OpenQuestionAnswer()
          Default constructor.
protected OpenQuestionAnswer(AbstractQuestion quest, java.lang.String val)
          Creates a new OpenQuestionAnswer with the given val and the given AbstractQuestion.
 
Method Summary
 java.lang.String getValue()
          Returns the value of the OpenQuestionAnswer.
 
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

OpenQuestionAnswer

protected OpenQuestionAnswer()
Default constructor.


OpenQuestionAnswer

protected OpenQuestionAnswer(AbstractQuestion quest,
                             java.lang.String val)
Creates a new OpenQuestionAnswer with the given val and the given AbstractQuestion.

Parameters:
quest - the AbstractQuestion
val - the value
Method Detail

getValue

public final java.lang.String getValue()
Returns the value of the OpenQuestionAnswer.

Specified by:
getValue in class AbstractTypedAnswer<java.lang.String>
Returns:
the value