cmu.survey.objects
Interface Answer

All Known Subinterfaces:
AnswerWithSupplementalInfo
All Known Implementing Classes:
AnswerGendered, AnswerSQL, AnswerStub

public interface Answer


Method Summary
 java.lang.String getDefaultValue()
           
 java.lang.String getDescriptor()
          The descriptor is the label that should be used as a reference.
 java.lang.String getFieldName()
           
 java.lang.String getType()
           
 java.lang.String getValue()
           
 boolean isTypeKey()
           
 boolean isTypeNumeric()
           
 boolean isTypeString()
           
 void setDefaultValue(java.lang.String defaultValueToSet)
           
 boolean setType(java.lang.String newType)
           
 

Method Detail

isTypeNumeric

boolean isTypeNumeric()

isTypeString

boolean isTypeString()

isTypeKey

boolean isTypeKey()

getDefaultValue

java.lang.String getDefaultValue()

setDefaultValue

void setDefaultValue(java.lang.String defaultValueToSet)

setType

boolean setType(java.lang.String newType)
Parameters:
newType -
Returns:
success or not (false means a failure)

getType

java.lang.String getType()

getDescriptor

java.lang.String getDescriptor()
The descriptor is the label that should be used as a reference. Then, the storage class will be able to retrieve a copy of the answer from it.

Returns:

getValue

java.lang.String getValue()

getFieldName

java.lang.String getFieldName()
Returns: