Warning: Can't use blame annotator:
svn blame failed on trunk/src/scriptbuilder/structures/events/TMTRadioEvent.java: ("Can't find a temporary directory: Internal error", 20014)

source: tmcsimulator-scriptbuilder/trunk/src/scriptbuilder/structures/events/TMTRadioEvent.java @ 203

Revision 203, 915 bytes checked in by jdalbey, 6 years ago (diff)

XMLWriter.java name changed to XMLBuilder. Add pretty printing methods (ticket #237).

RevLine 
1/*
2 * To change this license header, choose License Headers in Project Properties.
3 * To change this template file, choose Tools | Templates
4 * and open the template in the editor.
5 */
6package scriptbuilder.structures.events;
7
8import scriptbuilder.structures.ELEMENT;
9import scriptbuilder.structures.I_XML_Writable;
10import scriptbuilder.structures.ScriptEvent;
11import scriptbuilder.structures.XMLBuilder;
12
13/**
14 * Data model for a TMT Radio event. A TMT radio transmission has a string
15 * message.
16 *
17 * @author Bryan McGuffin
18 */
19public class TMTRadioEvent extends ScriptEvent implements I_XML_Writable
20{
21
22    /**
23     * Constructor.
24     */
25    public TMTRadioEvent()
26    {
27        super(ScriptEventType.TMT_RADIO_EVENT);
28    }
29
30    public String message = "";
31
32    @Override
33    public String toXML()
34    {
35        String output = XMLBuilder.simpleTag(message, ELEMENT.TMT_RADIO);
36        return output;
37    }
38
39}
Note: See TracBrowser for help on using the repository browser.