commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ra...@apache.org
Subject svn commit: r356390 - in /jakarta/commons/sandbox/scxml/trunk/src: main/java/org/apache/commons/scxml/SCXMLDigester.java main/java/org/apache/commons/scxml/model/Send.java test/java/org/apache/commons/scxml/SCXMLDigesterTest.java
Date Mon, 12 Dec 2005 22:00:00 GMT
Author: rahul
Date: Mon Dec 12 13:59:54 2005
New Revision: 356390

URL: http://svn.apache.org/viewcvs?rev=356390&view=rev
Log:
Isn't DOM serialization fun ;-)

Comment out the utility method added in r355810 to get the nightlies going again. Left a TODO
or two in code.

Also removed the sole Javadoc warning.

Modified:
    jakarta/commons/sandbox/scxml/trunk/src/main/java/org/apache/commons/scxml/SCXMLDigester.java
    jakarta/commons/sandbox/scxml/trunk/src/main/java/org/apache/commons/scxml/model/Send.java
    jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLDigesterTest.java

Modified: jakarta/commons/sandbox/scxml/trunk/src/main/java/org/apache/commons/scxml/SCXMLDigester.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/scxml/trunk/src/main/java/org/apache/commons/scxml/SCXMLDigester.java?rev=356390&r1=356389&r2=356390&view=diff
==============================================================================
--- jakarta/commons/sandbox/scxml/trunk/src/main/java/org/apache/commons/scxml/SCXMLDigester.java
(original)
+++ jakarta/commons/sandbox/scxml/trunk/src/main/java/org/apache/commons/scxml/SCXMLDigester.java
Mon Dec 12 13:59:54 2005
@@ -659,8 +659,6 @@
      *
      * @param xp The Digester style XPath expression of <send> element
      * @param scxmlRules The rule set to be used for digestion
-     * @param klass The class in the Java object model to be instantiated
-     *              in the ObjectCreateRule for this action
      */
     private static void addSendRulesTuple(final String xp,
             final ExtendedBaseRules scxmlRules) {
@@ -1204,11 +1202,13 @@
             .append(send.getDelay()).append("\" events=\"")
             .append(send.getEvent()).append("\" hints=\"")
             .append(send.getHints()).append("\">\n");
+        /* TODO - Serialize body content
         try {
             b.append(send.getBodyContent());
         } catch (IOException ioe) {
             log.error("Failed to serialize external nodes for <send>", ioe);
         }
+        */
         b.append(indent).append("</send>\n");
     }
 

Modified: jakarta/commons/sandbox/scxml/trunk/src/main/java/org/apache/commons/scxml/model/Send.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/scxml/trunk/src/main/java/org/apache/commons/scxml/model/Send.java?rev=356390&r1=356389&r2=356390&view=diff
==============================================================================
--- jakarta/commons/sandbox/scxml/trunk/src/main/java/org/apache/commons/scxml/model/Send.java
(original)
+++ jakarta/commons/sandbox/scxml/trunk/src/main/java/org/apache/commons/scxml/model/Send.java
Mon Dec 12 13:59:54 2005
@@ -17,14 +17,14 @@
  */
 package org.apache.commons.scxml.model;
 
-import java.io.IOException;
-import java.io.StringWriter;
+//import java.io.IOException;
+//import java.io.StringWriter;
 import java.util.ArrayList;
 import java.util.List;
 
-import org.apache.xml.serialize.OutputFormat;
-import org.apache.xml.serialize.XMLSerializer;
-import org.w3c.dom.Element;
+//import org.apache.xml.serialize.OutputFormat;
+//import org.apache.xml.serialize.XMLSerializer;
+//import org.w3c.dom.Element;
 
 /**
  * The class in this SCXML object model that corresponds to the
@@ -77,12 +77,13 @@
 
     /**
      * OutputFormat used to serialize external nodes.
-     */
+     *
     private static final OutputFormat format;
     static {
         format = new OutputFormat();
         format.setOmitXMLDeclaration(true);
     }
+    */
 
     /**
      * Constructor.
@@ -208,7 +209,7 @@
      * Return serialized external nodes.
      *
      * @throws IOException Serialization failed
-     */
+     *
     public final String getBodyContent() throws IOException {
         StringBuffer buf = new StringBuffer();
         for (int i = 0; i < externalNodes.size(); i++) {
@@ -220,6 +221,7 @@
         }
         return buf.toString();
     }
+    */
 
 }
 

Modified: jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLDigesterTest.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLDigesterTest.java?rev=356390&r1=356389&r2=356390&view=diff
==============================================================================
--- jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLDigesterTest.java
(original)
+++ jakarta/commons/sandbox/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLDigesterTest.java
Mon Dec 12 13:59:54 2005
@@ -106,11 +106,13 @@
         // Serialize
         scxmlAsString = serialize(scxml);
         assertNotNull(scxmlAsString);
+        /* FIXME
         String expectedFoo2Serialization =
             "<foo xmlns=\"http://my.test.namespace\" id=\"foo2\">"
             + "<prompt xmlns=\"http://foo.bar.com/vxml3\">This is just"
             + " an example.</prompt></foo>";
         assertFalse(scxmlAsString.indexOf(expectedFoo2Serialization) == -1);
+        */
     }
 
     private String serialize(final SCXML scxml) {



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message