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>
-
-
Constructor Summary
Constructors Constructor Description ControlAnswer()
-
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. -
-
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
-
getExtensions
Extensions getExtensions()
Container element for custom elements from other schemas.
- Returns:
possibleobject is Extensions
-
setExtensions
void setExtensions(Extensions value)
Sets the value of the extensions property.
- Parameters:
value
- allowed object is Extensions
-
-
-
-