public final class PlainMessage 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 |
addProperty(PropertyElement propertyElement)
Add property given the property element.
|
void |
addProperty(java.lang.String name,
java.lang.String entry)
Add property given the name and entry.
|
static PlainMessage |
create(ContextMessage contextMessage)
Creates a new plain message.
|
java.lang.String |
toString()
To string method called and 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 PlainMessage create(ContextMessage contextMessage)
contextMessage
- the context messagepublic void addProperty(java.lang.String name, java.lang.String entry)
name
- the nameentry
- the entrypublic void addProperty(PropertyElement propertyElement)
propertyElement
- the property elementpublic java.lang.String toString()
toString
in class java.lang.Object
Copyright (c) 2015 - Pittsburgh Science of Learning Center