Changeset 76 in tmcsimulator-scriptbuilder for trunk/src/scriptbuilder/structures/XMLWriter.java
- Timestamp:
- 08/25/2017 12:22:28 PM (9 years ago)
- File:
-
- 1 edited
-
trunk/src/scriptbuilder/structures/XMLWriter.java (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/scriptbuilder/structures/XMLWriter.java
r46 r76 8 8 { 9 9 10 /** 11 * XML-style opening tag. Example: if given string "my_tag", returns 12 * "<my_tag>". 13 * 14 * @param s the XML element to be included in the tag. 15 * @return the properly formatted tag 16 */ 10 17 public static String openTag(String s) 11 18 { … … 13 20 } 14 21 22 /** 23 * XML-style closing tag. Example: if given string "my_tag", returns 24 * "</my_tag>". 25 * 26 * @param s the XML element to be included in the tag. 27 * @return the properly formatted tag 28 */ 15 29 public static String closeTag(String s) 16 30 { … … 18 32 } 19 33 34 /** 35 * XML-style empty tag. Example: if given string "my_tag", returns 36 * "<my_tag/>". 37 * 38 * @param s the XML element to be included in the tag. 39 * @return the properly formatted tag 40 */ 20 41 public static String emptyTag(String s) 21 42 { … … 23 44 } 24 45 46 /** 47 * Creates a pair of XML open and close tags to wrap a simple line of data. 48 * Useful if only one element need be enclosed in this particular tag. 49 * 50 * @param s the data to be wrapped 51 * @param e the XML element represented by the data 52 * @return an XML string of the format <my_tag>some_data_goes_here</my_tag> 53 */ 25 54 public static String simpleTag(String s, ELEMENT e) 26 55 {
Note: See TracChangeset
for help on using the changeset viewer.
