Class CompositeQuestion

  • Direct Known Subclasses:
    PropertiesQuestion

    public abstract class CompositeQuestion
    extends Question
    A specialized base class for questions which have more than one value to be manipulated by the user.
    Since:
    4.0
    • Constructor Detail

      • CompositeQuestion

        protected CompositeQuestion​(Interview interview,
                                    java.lang.String baseTag)
        Create a question with a nominated tag.
        Parameters:
        interview - The interview containing this question.
        baseTag - A name to uniquely identify this question within its interview.
      • CompositeQuestion

        protected CompositeQuestion​(Interview interview)
        Create a question with no identifying tag.
        Parameters:
        interview - The interview containing this question.
    • Method Detail

      • setValue

        public abstract void setValue​(java.lang.String id,
                                      java.lang.String s)
                               throws Interview.Fault
        Set the response to this question to the value represented by a string-valued argument. Subtypes of Question will typically have type-specific methods to set the value as well.
        Parameters:
        s - A string containing a value value appropriate for the particular type of question whose value is being set.
        Throws:
        Interview.Fault - (retained for compatibility; should not be thrown)
        See Also:
        Question.getStringValue()