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

source: tmcsimulator-scriptbuilder/trunk/src/scriptbuilder/structures/events/MaintenanceRadioEvent.java @ 38

Revision 38, 1.2 KB checked in by bmcguffin, 9 years ago (diff)

Removed the newLine at the end of each openTag method.

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;
11
12/**
13 * Data model for a maintenance radio event. A maintenance radio transmission
14 * has a string message.
15 *
16 * @author Bryan McGuffin
17 */
18public class MaintenanceRadioEvent extends ScriptEvent implements I_XML_Writable
19{
20
21    public MaintenanceRadioEvent()
22    {
23        super(ScriptEventType.MAINTENANCE_RADIO_EVENT);
24    }
25
26    public String message = "";
27
28    @Override
29    public String toXML()
30    {
31        String output = openTag(ELEMENT.MAINTENANCE_RADIO.tag);
32       
33        output += message;
34       
35        output += closeTag(ELEMENT.MAINTENANCE_RADIO.tag);
36        return output;
37    }
38
39    @Override
40    public String openTag(String s)
41    {
42        return "<" + s + ">";
43    }
44
45    @Override
46    public String closeTag(String s)
47    {
48        return "</" + s + ">\n";
49    }
50
51    @Override
52    public String emptyTag(String s)
53    {
54        return "<" + s + "/>\n";
55    }
56
57}
Note: See TracBrowser for help on using the repository browser.