File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,9 +16,9 @@ Features in development:
1616
1717## Building
1818
19- You need Java 17 and [ Apache Ant 1.10.12 ] ( https://ant.apache.org ) or newer
19+ You need Java 21 and [ Apache Ant 1.10.14 ] ( https://ant.apache.org ) or newer
2020
21- - Point your JAVA_HOME variable to JDK 17
21+ - Point your JAVA_HOME variable to JDK 21
2222- Checkout this repository
2323- Run ` ant ` to compile the source code
2424
Original file line number Diff line number Diff line change 1414
1515public class Constants {
1616
17- public static final String VERSION = "1.4 .0" ;
18- public static final String BUILD = "20231113_1047 " ;
17+ public static final String VERSION = "1.5 .0" ;
18+ public static final String BUILD = "20231229_1000 " ;
1919}
Original file line number Diff line number Diff line change @@ -334,6 +334,25 @@ public void setText(String text) {
334334 content .add (new TextNode (text ));
335335 }
336336
337+ public String getHead () {
338+ StringBuilder result = new StringBuilder ("<" + name );
339+ List <String > keys = new Vector <>();
340+ keys .addAll (attsTable .keySet ());
341+ Collections .sort (keys );
342+ Iterator <String > it = keys .iterator ();
343+ while (it .hasNext ()) {
344+ Attribute a = attsTable .get (it .next ());
345+ result .append (' ' );
346+ result .append (a .toString ());
347+ }
348+ result .append (">" );
349+ return result .toString ();
350+ }
351+
352+ public String getTail () {
353+ return "</" + name + ">" ;
354+ }
355+
337356 @ Override
338357 public String toString () {
339358 StringBuilder result = new StringBuilder ("<" + name );
You can’t perform that action at this time.
0 commit comments