public interface Slot extends Serializable
AuthorAnswer
s, that represent criteria that can be used to
grade an answer entered to the answer field corresponding to this slot. The reason why a single slot
may contain multiple author answers is that the question author may want to assign partial grades
if the student's answer meets less restrictive criteria, so it makes sense for a single student's
answer slot to have multiple sets of criteria to be compared to.Question
,
AuthorAnswer
Modifier and Type | Method and Description |
---|---|
AuthorAnswer |
addNewAuthorAnswer(java.lang.String value)
Adds a new author answer to this slot.
|
Slot |
copy(Slot model) |
AnswerFieldType |
getAnswerFieldType()
Get the type of input field that will be used for the student answer.
|
AuthorAnswer[] |
getAuthorAnswers()
Gets the author answers for this slot.
|
java.lang.String |
getGrammarUrl()
Returns the URL of the syntax check grammar for this question.
|
java.lang.String |
getInitialContent()
Gets the initial content that will be present in this slot's answer field.
|
java.lang.String |
getProperty(PropertyName name)
Gets the value of a property for this particular slot.
|
Syntax |
getSyntax()
Get the syntax assertion that will be applied to answers filled in this slot.
|
void |
removeAuthorAnswer(AuthorAnswer answer)
Remove an author answer from this slot.
|
void |
setAnswerFieldType(AnswerFieldType answerFieldType)
Set the type of input field that will be used for the student answer.
|
void |
setInitialContent(java.lang.String content)
Sets the initial content that will be present in this slot's answer field.
|
void |
setProperty(PropertyName name,
java.lang.String value)
Sets the value of a property.
|
Syntax |
setSyntax(SyntaxName type)
Sets the syntax assertion to be applied to answers filled in this slot.
|
serialize
AuthorAnswer[] getAuthorAnswers()
AuthorAnswer addNewAuthorAnswer(java.lang.String value)
value
- The value of the correct answer for the author answer being created. It can be MathML, plain
text or a graphical construction.void removeAuthorAnswer(AuthorAnswer answer)
answer
- An AuthorAnswer object that belongs to this slot. If it does not,
this method does nothing.void setProperty(PropertyName name, java.lang.String value)
Question
that contains this slot.name
- The name of the property.value
- The value to be set.java.lang.String getProperty(PropertyName name)
name
- The name of the property.Question
that contains this slot.Syntax getSyntax()
Syntax setSyntax(SyntaxName type)
type
- The type of syntax for answers filled in this slot.java.lang.String getInitialContent()
void setInitialContent(java.lang.String content)
content
- The desired initial content. It can be either MathML, plain text or a graphical
construction.void setAnswerFieldType(AnswerFieldType answerFieldType)
Question
that contains this slot.AnswerFieldType
AnswerFieldType getAnswerFieldType()
AnswerFieldType
java.lang.String getGrammarUrl()
Copyright © 2021 Maths for More S.L. All Rights Reserved.