예제 #1
0
 @Override
 public final void writeXML(final IndentWriter stream) throws XMLWriteError {
   stream.println("<Action name=\"" + mActionName + "\">");
   stream.push();
   for (final ActiconFeature feature : mFeatureList) {
     feature.writeXML(stream);
     stream.endl();
   }
   stream.pop();
   stream.print("</Action>");
   stream.flush();
 }
예제 #2
0
 @Override
 public final void writeXML(final IndentWriter stream) throws XMLWriteError {
   stream.println(
       "<ActionObject "
           + "lower=\""
           + mLower
           + "\" "
           + "upper=\""
           + mUpper
           + "\" "
           + "name=\""
           + mName
           + "\">");
   stream.push();
   for (final ActionFeature feature : mFeatureList) {
     feature.writeXML(stream);
     if (!feature.equals(mFeatureList.getLast())) {
       stream.endl();
     }
   }
   stream.pop();
   stream.print("</ActionObject>");
 }