quark.mock.TextMessage Maven / Gradle / Ivy
/* Quark 1.0.452 run at 2016-11-10 18:39:58.222591 */
package quark.mock;
/**
* A text message.
*/
public class TextMessage extends MockMessage implements io.datawire.quark.runtime.QObject {
public static quark.reflect.Class quark_mock_TextMessage_ref = datawire_mdk_md.Root.quark_mock_TextMessage_md;
/**
* The message content.
*/
public String text;
public TextMessage(String message) {
super();
this.text = message;
}
public Boolean isText() {
return true;
}
public String _getClass() {
return "quark.mock.TextMessage";
}
public Object _getField(String name) {
if ((name)==("text") || ((Object)(name) != null && ((Object) (name)).equals("text"))) {
return (this).text;
}
return null;
}
public void _setField(String name, Object value) {
if ((name)==("text") || ((Object)(name) != null && ((Object) (name)).equals("text"))) {
(this).text = (String) (value);
}
}
}