Package iofXml.v3

Class ControlAnswer

  • All Implemented Interfaces:

    
    public class ControlAnswer
    
                        

    Defines the the selected answer, the correct answer and the time used on a Trail-O control.

    Java class for ControlAnswer complex type

    .

    The following schema fragment specifies the expected content contained within this class.

    
    <complexType name="ControlAnswer">
      <complexContent>
        <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
          <sequence>
            <element name="Answer" type="{http://www.w3.org/2001/XMLSchema}string"/>
            <element name="CorrectAnswer" type="{http://www.w3.org/2001/XMLSchema}string"/>
            <element name="Time" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
            <element name="Extensions" type="{http://www.orienteering.org/datastandard/3.0}Extensions" minOccurs="0"/>
          </sequence>
        </restriction>
      </complexContent>
    </complexType>
    
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      ControlAnswer()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      String getAnswer() The answer that the competitor selected.
      void setAnswer(String value) Sets the value of the answer property.
      String getCorrectAnswer() The correct answer.
      void setCorrectAnswer(String value) Sets the value of the correctAnswer property.
      Double getTime() The time in seconds used to give the answer, in case of a timed control.
      void setTime(Double value) Sets the value of the time property.
      Extensions getExtensions() Container element for custom elements from other schemas.
      void setExtensions(Extensions value) Sets the value of the extensions property.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ControlAnswer

        ControlAnswer()
    • Method Detail

      • getAnswer

         String getAnswer()

        The answer that the competitor selected. If the competitor did not give any answer, use an empty string.

        Returns:

        possibleobject is String

      • setAnswer

         void setAnswer(String value)

        Sets the value of the answer property.

        Parameters:
        value - allowed object is String
      • getCorrectAnswer

         String getCorrectAnswer()

        The correct answer. If no answer is correct, use an empty string.

        Returns:

        possibleobject is String

      • setCorrectAnswer

         void setCorrectAnswer(String value)

        Sets the value of the correctAnswer property.

        Parameters:
        value - allowed object is String
      • getTime

         Double getTime()

        The time in seconds used to give the answer, in case of a timed control. Fractions of seconds (e.g. 258.7) may be used if the time resolution is higher than one second.

        Returns:

        possibleobject is Double

      • setTime

         void setTime(Double value)

        Sets the value of the time property.

        Parameters:
        value - allowed object is Double