cmu.survey.objects
Class QuestionChoicesDefault

java.lang.Object
  extended by cmu.survey.objects.QuestionChoicesDefault
All Implemented Interfaces:
QuestionChoices

public class QuestionChoicesDefault
extends java.lang.Object
implements QuestionChoices


Nested Class Summary
 
Nested classes/interfaces inherited from interface cmu.survey.objects.QuestionChoices
QuestionChoices.VectorPair
 
Constructor Summary
QuestionChoicesDefault(java.lang.String[] names)
           
QuestionChoicesDefault(java.lang.String[] names, boolean startIndexesAtZero)
           
QuestionChoicesDefault(java.lang.String[] names, java.util.Vector indexIDs)
           
QuestionChoicesDefault(java.util.Vector<java.lang.String> names, java.util.Vector indexIDs)
           
 
Method Summary
 QuestionChoices.VectorPair getPairOfChoicesAndIDs()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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.