示例#1
0
        /**
         * reduce a SelectOneData to an integer (index mode) or string (value mode)
         * @param data
         * @return Integer or String
         */
        private Object compactSelectOne(SelectOneData data)
        {
            Selection val = (Selection)data.Value;

            return(extractSelection(val));
        }
 /**
  * @param data The AnswerDataObject to be serialized
  * @return A String which contains the value of a selection
  */
 public Object serializeAnswerData(SelectOneData data)
 {
     return(((Selection)data.Value).Value);
 }