Package iofXml.v3

Class ControlAnswer

java.lang.Object
iofXml.v3.ControlAnswer

public class ControlAnswer extends Object
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>
 
  • Field Details

    • answer

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

      protected String correctAnswer
      The correct answer. If no answer is correct, use an empty string.
    • time

      protected Double time
      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.
    • extensions

      protected Extensions extensions
      Container element for custom elements from other schemas.
  • Constructor Details

    • ControlAnswer

      public ControlAnswer()
  • Method Details

    • getAnswer

      public String getAnswer()
      The answer that the competitor selected. If the competitor did not give any answer, use an empty string.
      Returns:
      possible object is String
    • setAnswer

      public void setAnswer(String value)
      Sets the value of the answer property.
      Parameters:
      value - allowed object is String
      See Also:
    • getCorrectAnswer

      public String getCorrectAnswer()
      The correct answer. If no answer is correct, use an empty string.
      Returns:
      possible object is String
    • setCorrectAnswer

      public void setCorrectAnswer(String value)
      Sets the value of the correctAnswer property.
      Parameters:
      value - allowed object is String
      See Also:
    • getTime

      public 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:
      possible object is Double
    • setTime

      public void setTime(Double value)
      Sets the value of the time property.
      Parameters:
      value - allowed object is Double
      See Also:
    • getExtensions

      public Extensions getExtensions()
      Container element for custom elements from other schemas.
      Returns:
      possible object is Extensions
    • setExtensions

      public void setExtensions(Extensions value)
      Sets the value of the extensions property.
      Parameters:
      value - allowed object is Extensions
      See Also: