Package iofXml.v3
Class ControlAnswer
java.lang.Object
iofXml.v3.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>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe answer that the competitor selected.protected StringThe correct answer.protected ExtensionsContainer element for custom elements from other schemas.protected DoubleThe time in seconds used to give the answer, in case of a timed control. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe answer that the competitor selected.The correct answer.Container element for custom elements from other schemas.getTime()The time in seconds used to give the answer, in case of a timed control.voidSets the value of the answer property.voidsetCorrectAnswer(String value) Sets the value of the correctAnswer property.voidsetExtensions(Extensions value) Sets the value of the extensions property.voidSets the value of the time property.
-
Field Details
-
answer
The answer that the competitor selected. If the competitor did not give any answer, use an empty string. -
correctAnswer
The correct answer. If no answer is correct, use an empty string. -
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
Container element for custom elements from other schemas.
-
-
Constructor Details
-
ControlAnswer
public ControlAnswer()
-
-
Method Details
-
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
Sets the value of the answer property.- Parameters:
value- allowed object isString- See Also:
-
getCorrectAnswer
The correct answer. If no answer is correct, use an empty string.- Returns:
- possible object is
String
-
setCorrectAnswer
Sets the value of the correctAnswer property.- Parameters:
value- allowed object isString- See Also:
-
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
Sets the value of the time property. -
getExtensions
Container element for custom elements from other schemas.- Returns:
- possible object is
Extensions
-
setExtensions
Sets the value of the extensions property.- Parameters:
value- allowed object isExtensions- See Also:
-