Class ControlAnswer
-
- All Implemented Interfaces:
public class ControlAnswerDefines 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 StringgetAnswer()The answer that the competitor selected. voidsetAnswer(String value)Sets the value of the answer property. StringgetCorrectAnswer()The correct answer. voidsetCorrectAnswer(String value)Sets the value of the correctAnswer property. DoublegetTime()The time in seconds used to give the answer, in case of a timed control. voidsetTime(Double value)Sets the value of the time property. ExtensionsgetExtensions()Container element for custom elements from other schemas. voidsetExtensions(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
-
-
-
-