public final class ContextMessage extends Message
ATTEMPT, CONTEXT_MSG_ELEMENT, CURRICULUM_MSG_ELEMENT, HINT_MESSAGE, HINT_REQUEST, MSG_ELEMENT, MSG_SEQUENCE_ELEMENT, RESULT, TOOL_MSG_ELEMENT, TUTOR_MSG_ELEMENT, VERSION_NUMBER, VERSION_NUMBER_ATTR
Modifier and Type | Method and Description |
---|---|
void |
addCondition(ConditionElement conditionElement)
Add condition element.
|
void |
addCondition(java.lang.String conditionName)
Add condition name.
|
void |
addCustomField(CustomFieldElement customFieldElement)
Add custom field.
|
void |
addCustomField(java.lang.String name,
java.lang.String value)
Add custom field.
|
void |
addDfa(java.lang.String dfa)
Add DFA.
|
void |
addInstructor(java.lang.String instructor)
Set instructor.
|
void |
addSkill(SkillElement skillElement)
Add skill element.
|
static ContextMessage |
create(java.lang.String name,
MetaElement meta)
Static public method which creates a new context message.
|
static ContextMessage |
createContinueProblem(MetaElement meta)
Creates new continue problem event.
|
static ContextMessage |
createStartProblem(MetaElement meta)
Creates a new start problem event.
|
ClassElement |
getClassElement()
Returns the class element.
|
java.util.List |
getConditionList()
Returns the condition list.
|
java.util.List |
getCustomFieldList()
Returns the custom field list.
|
DatasetElement |
getDatasetElement()
Returns the dataset element.
|
java.util.List |
getDfaList()
Returns the DFA list.
|
java.lang.String |
getNameAttribute()
Returns the name attribute.
|
java.util.List |
getSkillList()
Returns the skill list.
|
void |
setClassDescription(java.lang.String description)
Set description.
|
void |
setClassName(java.lang.String name)
Set class name.
|
void |
setDataset(DatasetElement datasetElement)
Add dataset element.
|
void |
setPeriod(java.lang.String period)
Set period.
|
void |
setSchool(java.lang.String school)
Set school name.
|
java.lang.String |
toString()
To string method which displays meta element.
|
java.lang.String |
toString(boolean logMetaFlag)
To string method.
|
generateGUID, getContextMessageId, getMetaElement, getSessionId, getSource, getTimeString, getTimeZone, getUserId, setContextMessageId, setSource, setTimeString
public static ContextMessage createStartProblem(MetaElement meta)
meta
- the meta elementpublic static ContextMessage createContinueProblem(MetaElement meta)
meta
- the meta elementpublic static ContextMessage create(java.lang.String name, MetaElement meta)
name
- the namemeta
- the meta elementpublic void setClassName(java.lang.String name)
name
- the class namepublic void setSchool(java.lang.String school)
school
- the school namepublic void setPeriod(java.lang.String period)
period
- the periodpublic void setClassDescription(java.lang.String description)
description
- the descriptionpublic void addInstructor(java.lang.String instructor)
instructor
- the instructorpublic void addDfa(java.lang.String dfa)
dfa
- the dfapublic void addSkill(SkillElement skillElement)
skillElement
- the skill elementpublic void setDataset(DatasetElement datasetElement)
datasetElement
- the dataset elementpublic void addCondition(java.lang.String conditionName)
conditionName
- the condition namepublic void addCondition(ConditionElement conditionElement)
conditionElement
- the condition elementpublic void addCustomField(java.lang.String name, java.lang.String value)
name
- the namevalue
- the valuepublic void addCustomField(CustomFieldElement customFieldElement)
customFieldElement
- the custom field elementpublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(boolean logMetaFlag)
public java.lang.String getNameAttribute()
public ClassElement getClassElement()
public java.util.List getDfaList()
public java.util.List getSkillList()
public DatasetElement getDatasetElement()
public java.util.List getConditionList()
public java.util.List getCustomFieldList()
Copyright (c) 2015 - Pittsburgh Science of Learning Center