activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r515696 - in /activemq/activemq-cpp/trunk/activemq-cpp/openwire-scripts: AmqCppTestMarshallingClassesGenerator.java AmqCppTestMarshallingHeadersGenerator.java
Date Wed, 07 Mar 2007 18:51:33 GMT
Author: tabish
Date: Wed Mar  7 10:51:32 2007
New Revision: 515696

URL: http://svn.apache.org/viewvc?view=rev&rev=515696
Log:
http://issues.apache.org/activemq/browse/AMQCPP-30

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/openwire-scripts/AmqCppTestMarshallingClassesGenerator.java
    activemq/activemq-cpp/trunk/activemq-cpp/openwire-scripts/AmqCppTestMarshallingHeadersGenerator.java

Modified: activemq/activemq-cpp/trunk/activemq-cpp/openwire-scripts/AmqCppTestMarshallingClassesGenerator.java
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/openwire-scripts/AmqCppTestMarshallingClassesGenerator.java?view=diff&rev=515696&r1=515695&r2=515696
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/openwire-scripts/AmqCppTestMarshallingClassesGenerator.java
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/openwire-scripts/AmqCppTestMarshallingClassesGenerator.java
Wed Mar  7 10:51:32 2007
@@ -65,9 +65,6 @@
 out.println("using namespace activemq::connector::openwire::utils;");
 out.println("using namespace activemq::connector::openwire::marshal::v"+getOpenwireVersion()+";");
 out.println("");
-
-    String typeName = jclass.getSimpleName().toUpperCase();
-
 out.println("///////////////////////////////////////////////////////////////////////////////");
 out.println("void "+className+"::test() {");
 out.println("");

Modified: activemq/activemq-cpp/trunk/activemq-cpp/openwire-scripts/AmqCppTestMarshallingHeadersGenerator.java
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/openwire-scripts/AmqCppTestMarshallingHeadersGenerator.java?view=diff&rev=515696&r1=515695&r2=515696
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/openwire-scripts/AmqCppTestMarshallingHeadersGenerator.java
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/openwire-scripts/AmqCppTestMarshallingHeadersGenerator.java
Wed Mar  7 10:51:32 2007
@@ -42,48 +42,6 @@
         return super.getClassName(jclass) + "Test";
     }
 
-    protected String getBaseClassName(JClass jclass) {
-        String answer = jclass.getSimpleName();
-
-        if( answer.equals("ActiveMQTextMessage") ) {
-            answer = "MessageMarshaller";
-        } else if( answer.equals("ActiveMQBytesMessage") ) {
-            answer = "MessageMarshaller";
-        } else if( answer.equals("ActiveMQMapMessage") ) {
-            answer = "MessageMarshaller";
-        } else if( answer.equals("ActiveMQObjectMessage") ) {
-            answer = "MessageMarshaller";
-        } else if( answer.equals("ActiveMQStreamMessage") ) {
-            answer = "MessageMarshaller";
-        }
-
-        // We didn't map it, so let the base class handle it.
-        if( answer.equals( jclass.getSimpleName() ) ) {
-            answer = super.getBaseClassName(jclass);
-        }
-
-        return answer;
-    }
-
-    public boolean isMarshallAware(JClass j) {
-
-        String answer = jclass.getSimpleName();
-
-        if( answer.equals("ActiveMQTextMessage") ) {
-            return true;
-        } else if( answer.equals("ActiveMQBytesMessage") ) {
-            return true;
-        } else if( answer.equals("ActiveMQMapMessage") ) {
-            return true;
-        } else if( answer.equals("ActiveMQObjectMessage") ) {
-            return true;
-        } else if( answer.equals("ActiveMQStreamMessage") ) {
-            return true;
-        } else {
-            return super.isMarshallAware(jclass);
-        }
-    }
-
     protected String getFilePostFix() {
         return ".h";
     }



Mime
View raw message