activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1477257 - /activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/
Date Mon, 29 Apr 2013 18:31:26 GMT
Author: tabish
Date: Mon Apr 29 18:31:25 2013
New Revision: 1477257

URL: http://svn.apache.org/r1477257
Log:
Generator updates to clean some code. 

Modified:
    activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/CommandClassGenerator.java
    activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/ConnectionInfoGenerator.java
    activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/ConsumerInfoGenerator.java
    activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/DestinationInfoGenerator.java
    activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/ProducerInfoGenerator.java
    activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/RemoveInfoGenerator.java
    activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/SessionInfoGenerator.java

Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/CommandClassGenerator.java
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/CommandClassGenerator.java?rev=1477257&r1=1477256&r2=1477257&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/CommandClassGenerator.java
(original)
+++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/CommandClassGenerator.java
Mon Apr 29 18:31:25 2013
@@ -136,7 +136,7 @@ public class CommandClassGenerator exten
             out.println("        ///  the proper processXXX method in the visitor." );
             out.println("        /// </summery>");
             out.println("        ///");
-            out.println("        public override Response visit(ICommandVisitor visitor)"
);
+            out.println("        public override Response Visit(ICommandVisitor visitor)"
);
             out.println("        {");
             generateVisitBody(out);
             out.println("        }");
@@ -198,7 +198,7 @@ public class CommandClassGenerator exten
     }
 
     protected void generateVisitBody( PrintWriter out ) {
-        out.println("            return visitor.process"+getClassName()+"(this);");
+        out.println("            return visitor.Process"+getClassName()+"(this);");
     }
 
     protected void generateToStringBody( PrintWriter out ) {

Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/ConnectionInfoGenerator.java
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/ConnectionInfoGenerator.java?rev=1477257&r1=1477256&r2=1477257&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/ConnectionInfoGenerator.java
(original)
+++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/ConnectionInfoGenerator.java
Mon Apr 29 18:31:25 2013
@@ -21,6 +21,6 @@ import java.io.PrintWriter;
 public class ConnectionInfoGenerator extends CommandClassGenerator {
 
     protected void generateVisitBody( PrintWriter out ) {
-        out.println("            return visitor.processAddConnection( this );");
+        out.println("            return visitor.ProcessAddConnection( this );");
     }
 }

Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/ConsumerInfoGenerator.java
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/ConsumerInfoGenerator.java?rev=1477257&r1=1477256&r2=1477257&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/ConsumerInfoGenerator.java
(original)
+++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/ConsumerInfoGenerator.java
Mon Apr 29 18:31:25 2013
@@ -21,6 +21,6 @@ import java.io.PrintWriter;
 public class ConsumerInfoGenerator extends CommandClassGenerator {
 
     protected void generateVisitBody( PrintWriter out ) {
-        out.println("            return visitor.processAddConsumer( this );");
+        out.println("            return visitor.ProcessAddConsumer( this );");
     }
 }

Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/DestinationInfoGenerator.java
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/DestinationInfoGenerator.java?rev=1477257&r1=1477256&r2=1477257&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/DestinationInfoGenerator.java
(original)
+++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/DestinationInfoGenerator.java
Mon Apr 29 18:31:25 2013
@@ -24,11 +24,11 @@ public class DestinationInfoGenerator ex
 
         out.println("        if(IsAddOperation)");
         out.println("        {");
-        out.println("            return visitor.processAddDestination(this);");
+        out.println("            return visitor.ProcessAddDestination(this);");
         out.println("        }");
         out.println("        else if(IsRemoveOperation)");
         out.println("        {");
-        out.println("            return visitor.processRemoveDestination(this);");
+        out.println("            return visitor.ProcessRemoveDestination(this);");
         out.println("        }");
         out.println("        throw new IOException(\"Unknown operation type: \" + OperationType);");
 

Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/ProducerInfoGenerator.java
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/ProducerInfoGenerator.java?rev=1477257&r1=1477256&r2=1477257&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/ProducerInfoGenerator.java
(original)
+++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/ProducerInfoGenerator.java
Mon Apr 29 18:31:25 2013
@@ -21,6 +21,6 @@ import java.io.PrintWriter;
 public class ProducerInfoGenerator extends CommandClassGenerator {
 
     protected void generateVisitBody( PrintWriter out ) {
-        out.println("            return visitor.processAddProducer( this );");
+        out.println("            return visitor.ProcessAddProducer( this );");
     }
 }

Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/RemoveInfoGenerator.java
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/RemoveInfoGenerator.java?rev=1477257&r1=1477256&r2=1477257&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/RemoveInfoGenerator.java
(original)
+++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/RemoveInfoGenerator.java
Mon Apr 29 18:31:25 2013
@@ -25,13 +25,13 @@ public class RemoveInfoGenerator extends
         out.println("            switch(objectId.GetDataStructureType())");
         out.println("            {");
         out.println("                case ConnectionId.ID_CONNECTIONID:");
-        out.println("                    return visitor.processRemoveConnection((ConnectionId)
objectId);");
+        out.println("                    return visitor.ProcessRemoveConnection((ConnectionId)
objectId);");
         out.println("                case SessionId.ID_SESSIONID:");
-        out.println("                    return visitor.processRemoveSession((SessionId)
objectId);");
+        out.println("                    return visitor.ProcessRemoveSession((SessionId)
objectId);");
         out.println("                case ConsumerId.ID_CONSUMERID:");
-        out.println("                    return visitor.processRemoveConsumer((ConsumerId)
objectId);");
+        out.println("                    return visitor.ProcessRemoveConsumer((ConsumerId)
objectId);");
         out.println("                case ProducerId.ID_PRODUCERID:");
-        out.println("                    return visitor.processRemoveProducer((ProducerId)
objectId);");
+        out.println("                    return visitor.ProcessRemoveProducer((ProducerId)
objectId);");
         out.println("                default:");
         out.println("                    throw new IOException(\"Unknown remove command type:
\" + objectId.GetDataStructureType());");
         out.println("            }");

Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/SessionInfoGenerator.java
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/SessionInfoGenerator.java?rev=1477257&r1=1477256&r2=1477257&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/SessionInfoGenerator.java
(original)
+++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/SessionInfoGenerator.java
Mon Apr 29 18:31:25 2013
@@ -21,7 +21,7 @@ import java.io.PrintWriter;
 public class SessionInfoGenerator extends CommandClassGenerator {
 
     protected void generateVisitBody( PrintWriter out ) {
-        out.println("            return visitor.processAddSession( this );");
+        out.println("            return visitor.ProcessAddSession( this );");
     }
 
     protected void generateConstructors( PrintWriter out ) {



Mime
View raw message