cmu.survey.objects
Class QuestionChoicesDefault
java.lang.Object
cmu.survey.objects.QuestionChoicesDefault
- All Implemented Interfaces:
- QuestionChoices
public class QuestionChoicesDefault
- extends java.lang.Object
- implements QuestionChoices
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QuestionChoicesDefault
public QuestionChoicesDefault(java.util.Vector<java.lang.String> names,
java.util.Vector indexIDs)
QuestionChoicesDefault
public QuestionChoicesDefault(java.lang.String[] names,
java.util.Vector indexIDs)
QuestionChoicesDefault
public QuestionChoicesDefault(java.lang.String[] names)
QuestionChoicesDefault
public QuestionChoicesDefault(java.lang.String[] names,
boolean startIndexesAtZero)
getPairOfChoicesAndIDs
public QuestionChoices.VectorPair getPairOfChoicesAndIDs()
- Specified by:
getPairOfChoicesAndIDs
in interface QuestionChoices
- Returns:
- two Vectors (each of the two vectors will have the same number of elements):
vector.get(0)=vector1=is the IDs that should be saved in the database (sometimes a number, sometimes a String).
vector.get(1)=vector2=a vector of Strings of the choices that the user sees (in the order they should be used)
or Returns null if there was an error.