Exemple #1
0
 /**
  * Generates a formatted representation of this item.
  *
  * @return a formatted representation of this item
  */
 @Override
 public String toString() {
   StringWriter sw = new StringWriter();
   PrintWriter pw = new PrintWriter(sw, true);
   write(pw, 0);
   return sw.toString();
 }
Exemple #2
0
 @Override
 public void write(PrintWriter writer, int indent) {
   for (ERXML.Item item : _children) {
     item.write(writer, indent);
   }
 }