Пример #1
0
 @Override
 public void writeTo(XmlWriter writer) {
   writer.start(ID);
   if (addtemplate != null) {
     writer.attr("addtemplate", addtemplate);
   }
   if (rmtemplate != null) {
     writer.attr("rmtemplate", rmtemplate);
   }
   if (set != null) {
     writer.attr("set", set);
   }
   writer.end();
 }
Пример #2
0
 @Override
 public void writeTo(XmlWriter writer) {
   writer.start(ID);
   if (file != null) {
     writer.attr("file", file.getAbsolutePath());
   }
   if (tofile != null) {
     writer.attr("tofile", tofile.getAbsolutePath());
   }
   writer.attr("overwrite", String.valueOf(overwrite));
   if (md5 != null) {
     writer.attr("md5", md5);
   }
   if (removeOnExit) {
     writer.attr("removeOnExit", "true");
   }
   if (overwriteIfNewerVersion) {
     writer.attr("overwriteIfNewerVersion", "true");
   }
   if (upgradeOnly) {
     writer.attr("upgradeOnly", "true");
   }
   if (append) {
     writer.attr("append", "true");
   }
   writer.end();
 }