add some more transaction related types

Project: http://git-wip-us.apache.org/repos/asf/qpid-jms/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-jms/commit/edb6aaf8
Tree: http://git-wip-us.apache.org/repos/asf/qpid-jms/tree/edb6aaf8
Diff: http://git-wip-us.apache.org/repos/asf/qpid-jms/diff/edb6aaf8

Branch: refs/heads/master
Commit: edb6aaf804b722772f3c337ae246a46d36496bf2
Parents: c227b29
Author: Robert Gemmell <[email protected]>
Authored: Tue Oct 28 17:42:13 2014 +0000
Committer: Robert Gemmell <[email protected]>
Committed: Tue Oct 28 17:42:13 2014 +0000

----------------------------------------------------------------------
 .../test/testpeer/describedtypes/Declare.java   | 61 ++++++++++++++++++
 .../test/testpeer/describedtypes/Discharge.java | 68 ++++++++++++++++++++
 .../testpeer/describedtypes/generate-frames.xsl |  2 +-
 3 files changed, 130 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/edb6aaf8/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Declare.java
----------------------------------------------------------------------
diff --git 
a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Declare.java
 
b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Declare.java
new file mode 100644
index 0000000..205881a
--- /dev/null
+++ 
b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Declare.java
@@ -0,0 +1,61 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+package org.apache.qpid.jms.test.testpeer.describedtypes;
+
+import org.apache.qpid.jms.test.testpeer.ListDescribedType;
+import org.apache.qpid.proton.amqp.Symbol;
+import org.apache.qpid.proton.amqp.UnsignedLong;
+
+/**
+ * Generated by generate-frames.xsl, which resides in this package.
+ */
+public class Declare extends ListDescribedType
+{
+    public static final Symbol DESCRIPTOR_SYMBOL = 
Symbol.valueOf("amqp:declare:list");
+    public static final UnsignedLong DESCRIPTOR_CODE = 
UnsignedLong.valueOf(0x0000000000000031L);
+
+
+    private static final int FIELD_GLOBAL_ID = 0;
+
+    public Declare(Object... fields)
+    {
+        super(1);
+        int i = 0;
+        for(Object field : fields)
+        {
+            getFields()[i++] = field;
+        }
+    }
+
+    @Override
+    public Symbol getDescriptor()
+    {
+        return DESCRIPTOR_SYMBOL;
+    }
+
+    public Declare setGlobalId(Object o)
+    {
+        getFields()[FIELD_GLOBAL_ID] = o;
+        return this;
+    }
+
+}
+

http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/edb6aaf8/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Discharge.java
----------------------------------------------------------------------
diff --git 
a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Discharge.java
 
b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Discharge.java
new file mode 100644
index 0000000..f97c7fe
--- /dev/null
+++ 
b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Discharge.java
@@ -0,0 +1,68 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+package org.apache.qpid.jms.test.testpeer.describedtypes;
+
+import org.apache.qpid.jms.test.testpeer.ListDescribedType;
+import org.apache.qpid.proton.amqp.Symbol;
+import org.apache.qpid.proton.amqp.UnsignedLong;
+
+/**
+ * Generated by generate-frames.xsl, which resides in this package.
+ */
+public class Discharge extends ListDescribedType
+{
+    public static final Symbol DESCRIPTOR_SYMBOL = 
Symbol.valueOf("amqp:discharge:list");
+    public static final UnsignedLong DESCRIPTOR_CODE = 
UnsignedLong.valueOf(0x0000000000000032L);
+
+
+    private static final int FIELD_TXN_ID = 0;
+    private static final int FIELD_FAIL = 1;
+
+    public Discharge(Object... fields)
+    {
+        super(2);
+        int i = 0;
+        for(Object field : fields)
+        {
+            getFields()[i++] = field;
+        }
+    }
+
+    @Override
+    public Symbol getDescriptor()
+    {
+        return DESCRIPTOR_SYMBOL;
+    }
+
+    public Discharge setTxnId(Object o)
+    {
+        getFields()[FIELD_TXN_ID] = o;
+        return this;
+    }
+
+    public Discharge setFail(Object o)
+    {
+        getFields()[FIELD_FAIL] = o;
+        return this;
+    }
+
+}
+

http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/edb6aaf8/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/generate-frames.xsl
----------------------------------------------------------------------
diff --git 
a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/generate-frames.xsl
 
b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/generate-frames.xsl
index 2614c4d..45330e9 100644
--- 
a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/generate-frames.xsl
+++ 
b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/generate-frames.xsl
@@ -40,7 +40,7 @@
           </xsl:call-template>
         </xsl:if>
 
-        <xsl:if test="@provides = 'delivery-state, outcome' or @provides = 
'delivery-state' or @provides = 'source' or @provides = 'target'">
+        <xsl:if test="@provides = 'delivery-state, outcome' or @provides = 
'delivery-state' or @provides = 'source' or @provides = 'target' or @name = 
'declare' or @name = 'discharge'">
           <xsl:variable name="classname"><xsl:call-template 
name="dashToCamel"><xsl:with-param name="input" 
select="@name"/></xsl:call-template></xsl:variable>
 
           <xsl:call-template name="typeClass">


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to