Changeset 203 in tmcsimulator-scriptbuilder for trunk/src/scriptbuilder/structures/Location_Info.java


Ignore:
Timestamp:
02/01/2020 04:18:21 PM (6 years ago)
Author:
jdalbey
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/scriptbuilder/structures/Location_Info.java

    r46 r203  
    2121    public String toXML() 
    2222    { 
    23         String output = XMLWriter.openTag(ELEMENT.LOCATION_INFO.tag + " ID=\"" + Location_ID + "\""); 
     23        String output = XMLBuilder.openTag(ELEMENT.LOCATION_INFO.tag + " ID=\"" + Location_ID + "\""); 
    2424 
    25         output += XMLWriter.simpleTag(Route, ELEMENT.Route); 
     25        output += XMLBuilder.simpleTag(Route, ELEMENT.Route); 
    2626 
    27         output += XMLWriter.simpleTag(Direction, ELEMENT.Direction); 
     27        output += XMLBuilder.simpleTag(Direction, ELEMENT.Direction); 
    2828 
    29         output += XMLWriter.simpleTag(Postmile, ELEMENT.Postmile); 
     29        output += XMLBuilder.simpleTag(Postmile, ELEMENT.Postmile); 
    3030 
    31         output += XMLWriter.simpleTag(Location_type, ELEMENT.Location_type); 
     31        output += XMLBuilder.simpleTag(Location_type, ELEMENT.Location_type); 
    3232 
    33         output += XMLWriter.closeTag(ELEMENT.LOCATION_INFO.tag); 
     33        output += XMLBuilder.closeTag(ELEMENT.LOCATION_INFO.tag); 
    3434 
    3535        return output; 
Note: See TracChangeset for help on using the changeset viewer.