Changeset 36 in tmcsimulator-scriptbuilder for trunk/src/scriptbuilder/structures/events/CADEvaluationEvent.java
- Timestamp:
- 08/03/2017 09:26:21 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/scriptbuilder/structures/events/CADEvaluationEvent.java
r7 r36 7 7 8 8 import java.util.ArrayList; 9 import scriptbuilder.structures.ELEMENT; 10 import scriptbuilder.structures.I_XML_Writable; 9 11 import scriptbuilder.structures.ScriptEvent; 10 12 … … 14 16 * @author Bryan McGuffin 15 17 */ 16 public class CADEvaluationEvent extends ScriptEvent implements I_EvaluationEvent 18 public class CADEvaluationEvent extends ScriptEvent implements I_EvaluationEvent, I_XML_Writable 17 19 { 18 20 … … 47 49 expectedAction.remove(index); 48 50 } 51 52 @Override 53 public String toXML() 54 { 55 String output = openTag(ELEMENT.CAD_EVALUATION.tag); 56 output += openTag(ELEMENT.EXPECTED_ACTION.tag); 57 output += expectedAction; 58 output += closeTag(ELEMENT.EXPECTED_ACTION.tag); 59 output += closeTag(ELEMENT.CAD_EVALUATION.tag); 60 61 return output; 62 } 63 64 @Override 65 public String openTag(String s) 66 { 67 return "<" + s + ">\n"; 68 } 69 70 @Override 71 public String closeTag(String s) 72 { 73 return "</" + s + ">\n"; 74 } 75 76 @Override 77 public String emptyTag(String s) 78 { 79 return "<" + s + "/>\n"; 80 } 49 81 }
Note: See TracChangeset
for help on using the changeset viewer.
