Changeset 203 in tmcsimulator-scriptbuilder for trunk/src/scriptbuilder/structures/CadData.java
- Timestamp:
- 02/01/2020 04:18:21 PM (6 years ago)
- File:
-
- 1 edited
-
trunk/src/scriptbuilder/structures/CadData.java (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/scriptbuilder/structures/CadData.java
r145 r203 82 82 if (!Master_Inc_Num.equals("")) 83 83 { 84 output += XML Writer.simpleTag(Master_Inc_Num, ELEMENT.MASTER_INC_NUM);84 output += XMLBuilder.simpleTag(Master_Inc_Num, ELEMENT.MASTER_INC_NUM); 85 85 } 86 86 87 87 if (!P.equals("")) 88 88 { 89 output += XML Writer.simpleTag(P, ELEMENT.P);89 output += XMLBuilder.simpleTag(P, ELEMENT.P); 90 90 } 91 91 92 92 if (hasAdditionalInfo()) 93 93 { 94 output += XML Writer.openTag(ELEMENT.ADDITIONAL_INFO.tag);95 output += XML Writer.simpleTag(Info_Type_Code, ELEMENT.TYPE_CODE);96 output += XML Writer.simpleTag(Info_Type, ELEMENT.TYPE);97 output += XML Writer.closeTag(ELEMENT.ADDITIONAL_INFO.tag);94 output += XMLBuilder.openTag(ELEMENT.ADDITIONAL_INFO.tag); 95 output += XMLBuilder.simpleTag(Info_Type_Code, ELEMENT.TYPE_CODE); 96 output += XMLBuilder.simpleTag(Info_Type, ELEMENT.TYPE); 97 output += XMLBuilder.closeTag(ELEMENT.ADDITIONAL_INFO.tag); 98 98 } 99 99 100 100 if (hasLocation()) 101 101 { 102 output += XML Writer.openTag(ELEMENT.LOCATION.tag);102 output += XMLBuilder.openTag(ELEMENT.LOCATION.tag); 103 103 if (!Location_Beat.equals("")) 104 104 { 105 output += XML Writer.simpleTag(Location_Beat, ELEMENT.BEAT);105 output += XMLBuilder.simpleTag(Location_Beat, ELEMENT.BEAT); 106 106 } 107 107 108 108 if (!Location_Address.equals("")) 109 109 { 110 output += XML Writer.simpleTag(Location_Address, ELEMENT.ADDRESS);110 output += XMLBuilder.simpleTag(Location_Address, ELEMENT.ADDRESS); 111 111 } 112 112 113 113 if (!Location_Loc.equals("")) 114 114 { 115 output += XML Writer.simpleTag(Location_Loc, ELEMENT.LOC);115 output += XMLBuilder.simpleTag(Location_Loc, ELEMENT.LOC); 116 116 } 117 117 118 118 if (!Location_City.equals("")) 119 119 { 120 output += XML Writer.simpleTag(Location_City, ELEMENT.CITY);120 output += XMLBuilder.simpleTag(Location_City, ELEMENT.CITY); 121 121 } 122 122 123 123 if (!Location_Area.equals("")) 124 124 { 125 output += XML Writer.simpleTag(Location_Area, ELEMENT.AREA);125 output += XMLBuilder.simpleTag(Location_Area, ELEMENT.AREA); 126 126 } 127 127 128 128 if (!Location_Fire.equals("")) 129 129 { 130 output += XML Writer.simpleTag(Location_Fire, ELEMENT.FIRE);130 output += XMLBuilder.simpleTag(Location_Fire, ELEMENT.FIRE); 131 131 } 132 132 133 133 if (!Location_Law.equals("")) 134 134 { 135 output += XML Writer.simpleTag(Location_Law, ELEMENT.LAW);135 output += XMLBuilder.simpleTag(Location_Law, ELEMENT.LAW); 136 136 } 137 137 138 138 if (!Location_Ems.equals("")) 139 139 { 140 output += XML Writer.simpleTag(Location_Ems, ELEMENT.EMS);141 } 142 143 output += XML Writer.closeTag(ELEMENT.LOCATION.tag);140 output += XMLBuilder.simpleTag(Location_Ems, ELEMENT.EMS); 141 } 142 143 output += XMLBuilder.closeTag(ELEMENT.LOCATION.tag); 144 144 } 145 145 146 146 if (!Agy.equals("")) 147 147 { 148 output += XML Writer.openTag(ELEMENT.GENERAL.tag);149 output += XML Writer.simpleTag(Agy, ELEMENT.AGY);150 output += XML Writer.closeTag(ELEMENT.GENERAL.tag);148 output += XMLBuilder.openTag(ELEMENT.GENERAL.tag); 149 output += XMLBuilder.simpleTag(Agy, ELEMENT.AGY); 150 output += XMLBuilder.closeTag(ELEMENT.GENERAL.tag); 151 151 } 152 152 … … 154 154 { 155 155 //todo: make this logic trigger only once per incident 156 output += XML Writer.openTag(ELEMENT.HEADER_INFO.tag);157 158 output += XML Writer.simpleTag(Header_Type, ELEMENT.Type);159 160 output += XML Writer.simpleTag(Header_Beat, ELEMENT.Beat);161 162 output += XML Writer.simpleTag(Header_TruncLoc, ELEMENT.TruncLoc);163 164 output += XML Writer.simpleTag(Header_FullLoc, ELEMENT.FullLoc);165 166 output += XML Writer.closeTag(ELEMENT.HEADER_INFO.tag);156 output += XMLBuilder.openTag(ELEMENT.HEADER_INFO.tag); 157 158 output += XMLBuilder.simpleTag(Header_Type, ELEMENT.Type); 159 160 output += XMLBuilder.simpleTag(Header_Beat, ELEMENT.Beat); 161 162 output += XMLBuilder.simpleTag(Header_TruncLoc, ELEMENT.TruncLoc); 163 164 output += XMLBuilder.simpleTag(Header_FullLoc, ELEMENT.FullLoc); 165 166 output += XMLBuilder.closeTag(ELEMENT.HEADER_INFO.tag); 167 167 } 168 168
Note: See TracChangeset
for help on using the changeset viewer.
