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

source: tmcsimulator-scriptbuilder/trunk/src/scriptbuilder/structures/events/CADEvent.java @ 46

Revision 46, 960 bytes checked in by bmcguffin, 9 years ago (diff)

Added file: XMLWriter, in package Scriptbuilder.structures. It holds static methods which ither classes that implement I_XML_Writable may find useful. Also restructured the toXML method of many classes to utilize this new class.

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.XMLWriter;
12
13/**
14 * Data model for a CAD incident event. CAD events have a string description of
15 * what is occurring at that time, and may or may not have sub-events.
16 *
17 * @author Bryan McGuffin
18 */
19public class CADEvent extends ScriptEvent implements I_XML_Writable
20{
21
22    public CADEvent()
23    {
24        super(ScriptEventType.CAD_EVENT);
25    }
26
27    public boolean hasSubEvents = false;
28
29    public String detail = "";
30
31    @Override
32    public String toXML()
33    {
34        String output = XMLWriter.simpleTag(detail, ELEMENT.DETAIL);
35        return output;
36    }
37}
Note: See TracBrowser for help on using the repository browser.