You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ro...@apache.org on 2014/10/28 20:00:20 UTC
[01/10] git commit: add transaction related files generated by
existing XSL
Repository: qpid-jms
Updated Branches:
refs/heads/master de9672305 -> 7b601d237
add transaction related files generated by existing XSL
Project: http://git-wip-us.apache.org/repos/asf/qpid-jms/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-jms/commit/ead083b9
Tree: http://git-wip-us.apache.org/repos/asf/qpid-jms/tree/ead083b9
Diff: http://git-wip-us.apache.org/repos/asf/qpid-jms/diff/ead083b9
Branch: refs/heads/master
Commit: ead083b9c91d0d219d9a07819b9ae52c56e8e2be
Parents: de96723
Author: Robert Gemmell <ro...@apache.org>
Authored: Tue Oct 28 17:34:02 2014 +0000
Committer: Robert Gemmell <ro...@apache.org>
Committed: Tue Oct 28 17:34:02 2014 +0000
----------------------------------------------------------------------
.../testpeer/describedtypes/Coordinator.java | 61 ++++++++++++++++++++
.../test/testpeer/describedtypes/Declared.java | 61 ++++++++++++++++++++
2 files changed, 122 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/ead083b9/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Coordinator.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Coordinator.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Coordinator.java
new file mode 100644
index 0000000..0a8c322
--- /dev/null
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Coordinator.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 Coordinator extends ListDescribedType
+{
+ public static final Symbol DESCRIPTOR_SYMBOL = Symbol.valueOf("amqp:coordinator:list");
+ public static final UnsignedLong DESCRIPTOR_CODE = UnsignedLong.valueOf(0x0000000000000030L);
+
+
+ private static final int FIELD_CAPABILITIES = 0;
+
+ public Coordinator(Object... fields)
+ {
+ super(1);
+ int i = 0;
+ for(Object field : fields)
+ {
+ getFields()[i++] = field;
+ }
+ }
+
+ @Override
+ public Symbol getDescriptor()
+ {
+ return DESCRIPTOR_SYMBOL;
+ }
+
+ public Coordinator setCapabilities(Object o)
+ {
+ getFields()[FIELD_CAPABILITIES] = o;
+ return this;
+ }
+
+}
+
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/ead083b9/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Declared.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Declared.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Declared.java
new file mode 100644
index 0000000..4d08175
--- /dev/null
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Declared.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 Declared extends ListDescribedType
+{
+ public static final Symbol DESCRIPTOR_SYMBOL = Symbol.valueOf("amqp:declared:list");
+ public static final UnsignedLong DESCRIPTOR_CODE = UnsignedLong.valueOf(0x0000000000000033L);
+
+
+ private static final int FIELD_TXN_ID = 0;
+
+ public Declared(Object... fields)
+ {
+ super(1);
+ int i = 0;
+ for(Object field : fields)
+ {
+ getFields()[i++] = field;
+ }
+ }
+
+ @Override
+ public Symbol getDescriptor()
+ {
+ return DESCRIPTOR_SYMBOL;
+ }
+
+ public Declared setTxnId(Object o)
+ {
+ getFields()[FIELD_TXN_ID] = o;
+ return this;
+ }
+
+}
+
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org
[10/10] git commit: add transactional-state matcher
Posted by ro...@apache.org.
add transactional-state matcher
Project: http://git-wip-us.apache.org/repos/asf/qpid-jms/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-jms/commit/7b601d23
Tree: http://git-wip-us.apache.org/repos/asf/qpid-jms/tree/7b601d23
Diff: http://git-wip-us.apache.org/repos/asf/qpid-jms/diff/7b601d23
Branch: refs/heads/master
Commit: 7b601d2379afcc599b2eff0494b74da6ea9645de
Parents: 91e3627
Author: Robert Gemmell <ro...@apache.org>
Authored: Tue Oct 28 18:54:30 2014 +0000
Committer: Robert Gemmell <ro...@apache.org>
Committed: Tue Oct 28 18:54:30 2014 +0000
----------------------------------------------------------------------
.../matchers/TransactionalStateMatcher.java | 174 +++++++++++++++++++
.../testpeer/matchers/generate-matchers.xsl | 6 +-
2 files changed, 177 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/7b601d23/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/matchers/TransactionalStateMatcher.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/matchers/TransactionalStateMatcher.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/matchers/TransactionalStateMatcher.java
new file mode 100644
index 0000000..b027fe8
--- /dev/null
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/matchers/TransactionalStateMatcher.java
@@ -0,0 +1,174 @@
+/*
+ * 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.matchers;
+
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.hamcrest.Matchers.instanceOf;
+
+import java.util.HashMap;
+import java.util.List;
+import org.apache.qpid.proton.amqp.DescribedType;
+import org.apache.qpid.proton.amqp.Symbol;
+import org.apache.qpid.proton.amqp.UnsignedLong;
+import org.apache.qpid.jms.test.testpeer.AbstractFieldAndDescriptorMatcher;
+import org.hamcrest.Matcher;
+import org.hamcrest.Description;
+import org.hamcrest.TypeSafeMatcher;
+
+/**
+ * Generated by generate-matchers.xsl, which resides in this package.
+ */
+public class TransactionalStateMatcher extends TypeSafeMatcher<Object>
+{
+ private TransactionalStateMatcherCore coreMatcher = new TransactionalStateMatcherCore();
+ private String mismatchTextAddition;
+ private Object described;
+ private Object descriptor;
+
+ public TransactionalStateMatcher()
+ {
+ }
+
+ @Override
+ protected boolean matchesSafely(Object received)
+ {
+ try
+ {
+ assertThat(received, instanceOf(DescribedType.class));
+ descriptor = ((DescribedType)received).getDescriptor();
+ if(!coreMatcher.descriptorMatches(descriptor))
+ {
+ mismatchTextAddition = "Descriptor mismatch";
+ return false;
+ }
+
+ described = ((DescribedType)received).getDescribed();
+ assertThat(described, instanceOf(List.class));
+ @SuppressWarnings("unchecked")
+ List<Object> fields = (List<Object>) described;
+
+ coreMatcher.verifyFields(fields);
+ }
+ catch (AssertionError ae)
+ {
+ mismatchTextAddition = "AssertionFailure: " + ae.getMessage();
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ protected void describeMismatchSafely(Object item, Description mismatchDescription)
+ {
+ mismatchDescription.appendText("\nActual form: ").appendValue(item);
+
+ mismatchDescription.appendText("\nExpected descriptor: ")
+ .appendValue(coreMatcher.getSymbolicDescriptor())
+ .appendText(" / ")
+ .appendValue(coreMatcher.getNumericDescriptor());
+
+ if(mismatchTextAddition != null)
+ {
+ mismatchDescription.appendText("\nAdditional info: ").appendValue(mismatchTextAddition);
+ }
+ }
+
+ public void describeTo(Description description)
+ {
+ description
+ .appendText("TransactionalState which matches: ")
+ .appendValue(coreMatcher.getMatchers());
+ }
+
+
+ public TransactionalStateMatcher withTxnId(Matcher<?> m)
+ {
+ coreMatcher.withTxnId(m);
+ return this;
+ }
+
+ public TransactionalStateMatcher withOutcome(Matcher<?> m)
+ {
+ coreMatcher.withOutcome(m);
+ return this;
+ }
+
+ public Object getReceivedTxnId()
+ {
+ return coreMatcher.getReceivedTxnId();
+ }
+
+ public Object getReceivedOutcome()
+ {
+ return coreMatcher.getReceivedOutcome();
+ }
+
+
+
+ //Inner core matching class
+ public static class TransactionalStateMatcherCore extends AbstractFieldAndDescriptorMatcher
+ {
+ /** Note that the ordinals of the Field enums match the order specified in the AMQP spec */
+ public enum Field
+ {
+ TXN_ID,
+ OUTCOME,
+ }
+
+ public TransactionalStateMatcherCore()
+ {
+ super(UnsignedLong.valueOf(0x0000000000000034L),
+ Symbol.valueOf("amqp:transactional-state:list"),
+ new HashMap<Enum<?>, Matcher<?>>());
+ }
+
+
+ public TransactionalStateMatcherCore withTxnId(Matcher<?> m)
+ {
+ getMatchers().put(Field.TXN_ID, m);
+ return this;
+ }
+
+ public TransactionalStateMatcherCore withOutcome(Matcher<?> m)
+ {
+ getMatchers().put(Field.OUTCOME, m);
+ return this;
+ }
+
+ public Object getReceivedTxnId()
+ {
+ return getReceivedFields().get(Field.TXN_ID);
+ }
+
+ public Object getReceivedOutcome()
+ {
+ return getReceivedFields().get(Field.OUTCOME);
+ }
+
+ @Override
+ protected Enum<?> getField(int fieldIndex)
+ {
+ return Field.values()[fieldIndex];
+ }
+ }
+}
+
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/7b601d23/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/matchers/generate-matchers.xsl
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/matchers/generate-matchers.xsl b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/matchers/generate-matchers.xsl
index 7bcdf74..6203607 100644
--- a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/matchers/generate-matchers.xsl
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/matchers/generate-matchers.xsl
@@ -46,9 +46,9 @@
</xsl:call-template>
</xsl:if>
- <xsl:if test="@provides = 'source' or @provides = 'target'">
+ <xsl:if test="@provides = 'source' or @provides = 'target' or @name='transactional-state'">
<xsl:variable name="typename"><xsl:call-template name="dashToCamel"><xsl:with-param name="input" select="@name"/></xsl:call-template></xsl:variable>
- <xsl:call-template name="sourceOrTargetClass">
+ <xsl:call-template name="fieldClass">
<xsl:with-param name="license" select="$license"/>
<xsl:with-param name="classname" select="$classname"/>
<xsl:with-param name="typename" select="$typename"/>
@@ -129,7 +129,7 @@ public class <xsl:value-of select="$classname"/> extends <xsl:value-of select="$
<!-- *************************************************************************************************************** -->
-<xsl:template name="sourceOrTargetClass">
+<xsl:template name="fieldClass">
<xsl:param name="license"/>
<xsl:param name="classname"/>
<xsl:param name="typename"/>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org
[07/10] git commit: update xsl name
Posted by ro...@apache.org.
update xsl name
Project: http://git-wip-us.apache.org/repos/asf/qpid-jms/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-jms/commit/b47fbb74
Tree: http://git-wip-us.apache.org/repos/asf/qpid-jms/tree/b47fbb74
Diff: http://git-wip-us.apache.org/repos/asf/qpid-jms/diff/b47fbb74
Branch: refs/heads/master
Commit: b47fbb74f914cbd908b7b5ba6f5cab90f3b1e6a4
Parents: 8d9c1f3
Author: Robert Gemmell <ro...@apache.org>
Authored: Tue Oct 28 18:34:58 2014 +0000
Committer: Robert Gemmell <ro...@apache.org>
Committed: Tue Oct 28 18:34:58 2014 +0000
----------------------------------------------------------------------
.../test/testpeer/describedtypes/Accepted.java | 2 +-
.../testpeer/describedtypes/AttachFrame.java | 2 +-
.../testpeer/describedtypes/BeginFrame.java | 2 +-
.../testpeer/describedtypes/CloseFrame.java | 2 +-
.../testpeer/describedtypes/Coordinator.java | 2 +-
.../test/testpeer/describedtypes/Declare.java | 2 +-
.../test/testpeer/describedtypes/Declared.java | 2 +-
.../testpeer/describedtypes/DetachFrame.java | 2 +-
.../test/testpeer/describedtypes/Discharge.java | 2 +-
.../describedtypes/DispositionFrame.java | 2 +-
.../test/testpeer/describedtypes/EndFrame.java | 2 +-
.../test/testpeer/describedtypes/FlowFrame.java | 2 +-
.../test/testpeer/describedtypes/Modified.java | 2 +-
.../test/testpeer/describedtypes/OpenFrame.java | 2 +-
.../test/testpeer/describedtypes/Received.java | 2 +-
.../test/testpeer/describedtypes/Rejected.java | 2 +-
.../test/testpeer/describedtypes/Released.java | 2 +-
.../describedtypes/SaslChallengeFrame.java | 2 +-
.../testpeer/describedtypes/SaslInitFrame.java | 2 +-
.../describedtypes/SaslMechanismsFrame.java | 2 +-
.../describedtypes/SaslOutcomeFrame.java | 2 +-
.../describedtypes/SaslResponseFrame.java | 2 +-
.../test/testpeer/describedtypes/Source.java | 2 +-
.../test/testpeer/describedtypes/Target.java | 2 +-
.../describedtypes/TransactionalState.java | 2 +-
.../testpeer/describedtypes/TransferFrame.java | 2 +-
.../describedtypes/generate-described-types.xsl | 154 +++++++++++++++++++
.../testpeer/describedtypes/generate-frames.xsl | 154 -------------------
28 files changed, 180 insertions(+), 180 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/b47fbb74/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Accepted.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Accepted.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Accepted.java
index 171a1e0..cf3e2ea 100644
--- a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Accepted.java
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Accepted.java
@@ -25,7 +25,7 @@ import org.apache.qpid.proton.amqp.Symbol;
import org.apache.qpid.proton.amqp.UnsignedLong;
/**
- * Generated by generate-frames.xsl, which resides in this package.
+ * Generated by generate-described-types.xsl, which resides in this package.
*/
public class Accepted extends ListDescribedType
{
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/b47fbb74/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/AttachFrame.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/AttachFrame.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/AttachFrame.java
index ecef518..09fc14c 100644
--- a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/AttachFrame.java
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/AttachFrame.java
@@ -25,7 +25,7 @@ import org.apache.qpid.proton.amqp.Symbol;
import org.apache.qpid.proton.amqp.UnsignedLong;
/**
- * Generated by generate-frames.xsl, which resides in this package.
+ * Generated by generate-described-types.xsl, which resides in this package.
*/
public class AttachFrame extends ListDescribedType
{
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/b47fbb74/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/BeginFrame.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/BeginFrame.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/BeginFrame.java
index b350fd1..5105f3d 100644
--- a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/BeginFrame.java
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/BeginFrame.java
@@ -25,7 +25,7 @@ import org.apache.qpid.proton.amqp.Symbol;
import org.apache.qpid.proton.amqp.UnsignedLong;
/**
- * Generated by generate-frames.xsl, which resides in this package.
+ * Generated by generate-described-types.xsl, which resides in this package.
*/
public class BeginFrame extends ListDescribedType
{
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/b47fbb74/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/CloseFrame.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/CloseFrame.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/CloseFrame.java
index b513de9..720c109 100644
--- a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/CloseFrame.java
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/CloseFrame.java
@@ -25,7 +25,7 @@ import org.apache.qpid.proton.amqp.Symbol;
import org.apache.qpid.proton.amqp.UnsignedLong;
/**
- * Generated by generate-frames.xsl, which resides in this package.
+ * Generated by generate-described-types.xsl, which resides in this package.
*/
public class CloseFrame extends ListDescribedType
{
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/b47fbb74/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Coordinator.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Coordinator.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Coordinator.java
index 0a8c322..66760e2 100644
--- a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Coordinator.java
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Coordinator.java
@@ -25,7 +25,7 @@ import org.apache.qpid.proton.amqp.Symbol;
import org.apache.qpid.proton.amqp.UnsignedLong;
/**
- * Generated by generate-frames.xsl, which resides in this package.
+ * Generated by generate-described-types.xsl, which resides in this package.
*/
public class Coordinator extends ListDescribedType
{
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/b47fbb74/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
index 205881a..b4e98b8 100644
--- 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
@@ -25,7 +25,7 @@ import org.apache.qpid.proton.amqp.Symbol;
import org.apache.qpid.proton.amqp.UnsignedLong;
/**
- * Generated by generate-frames.xsl, which resides in this package.
+ * Generated by generate-described-types.xsl, which resides in this package.
*/
public class Declare extends ListDescribedType
{
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/b47fbb74/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Declared.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Declared.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Declared.java
index 4d08175..9f0b389 100644
--- a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Declared.java
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Declared.java
@@ -25,7 +25,7 @@ import org.apache.qpid.proton.amqp.Symbol;
import org.apache.qpid.proton.amqp.UnsignedLong;
/**
- * Generated by generate-frames.xsl, which resides in this package.
+ * Generated by generate-described-types.xsl, which resides in this package.
*/
public class Declared extends ListDescribedType
{
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/b47fbb74/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/DetachFrame.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/DetachFrame.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/DetachFrame.java
index 443e59e..2da3ec0 100644
--- a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/DetachFrame.java
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/DetachFrame.java
@@ -25,7 +25,7 @@ import org.apache.qpid.proton.amqp.Symbol;
import org.apache.qpid.proton.amqp.UnsignedLong;
/**
- * Generated by generate-frames.xsl, which resides in this package.
+ * Generated by generate-described-types.xsl, which resides in this package.
*/
public class DetachFrame extends ListDescribedType
{
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/b47fbb74/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
index f97c7fe..e096426 100644
--- 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
@@ -25,7 +25,7 @@ import org.apache.qpid.proton.amqp.Symbol;
import org.apache.qpid.proton.amqp.UnsignedLong;
/**
- * Generated by generate-frames.xsl, which resides in this package.
+ * Generated by generate-described-types.xsl, which resides in this package.
*/
public class Discharge extends ListDescribedType
{
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/b47fbb74/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/DispositionFrame.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/DispositionFrame.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/DispositionFrame.java
index 385dc9d..87deeea 100644
--- a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/DispositionFrame.java
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/DispositionFrame.java
@@ -25,7 +25,7 @@ import org.apache.qpid.proton.amqp.Symbol;
import org.apache.qpid.proton.amqp.UnsignedLong;
/**
- * Generated by generate-frames.xsl, which resides in this package.
+ * Generated by generate-described-types.xsl, which resides in this package.
*/
public class DispositionFrame extends ListDescribedType
{
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/b47fbb74/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/EndFrame.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/EndFrame.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/EndFrame.java
index ee54a04..c2e0e97 100644
--- a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/EndFrame.java
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/EndFrame.java
@@ -25,7 +25,7 @@ import org.apache.qpid.proton.amqp.Symbol;
import org.apache.qpid.proton.amqp.UnsignedLong;
/**
- * Generated by generate-frames.xsl, which resides in this package.
+ * Generated by generate-described-types.xsl, which resides in this package.
*/
public class EndFrame extends ListDescribedType
{
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/b47fbb74/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/FlowFrame.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/FlowFrame.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/FlowFrame.java
index bd4411d..65cc4de 100644
--- a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/FlowFrame.java
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/FlowFrame.java
@@ -25,7 +25,7 @@ import org.apache.qpid.proton.amqp.Symbol;
import org.apache.qpid.proton.amqp.UnsignedLong;
/**
- * Generated by generate-frames.xsl, which resides in this package.
+ * Generated by generate-described-types.xsl, which resides in this package.
*/
public class FlowFrame extends ListDescribedType
{
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/b47fbb74/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Modified.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Modified.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Modified.java
index d934106..ac2d7d1 100644
--- a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Modified.java
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Modified.java
@@ -25,7 +25,7 @@ import org.apache.qpid.proton.amqp.Symbol;
import org.apache.qpid.proton.amqp.UnsignedLong;
/**
- * Generated by generate-frames.xsl, which resides in this package.
+ * Generated by generate-described-types.xsl, which resides in this package.
*/
public class Modified extends ListDescribedType
{
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/b47fbb74/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/OpenFrame.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/OpenFrame.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/OpenFrame.java
index a89af0e..4eeec63 100644
--- a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/OpenFrame.java
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/OpenFrame.java
@@ -25,7 +25,7 @@ import org.apache.qpid.proton.amqp.Symbol;
import org.apache.qpid.proton.amqp.UnsignedLong;
/**
- * Generated by generate-frames.xsl, which resides in this package.
+ * Generated by generate-described-types.xsl, which resides in this package.
*/
public class OpenFrame extends ListDescribedType
{
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/b47fbb74/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Received.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Received.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Received.java
index c43ad52..84e8cb2 100644
--- a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Received.java
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Received.java
@@ -25,7 +25,7 @@ import org.apache.qpid.proton.amqp.Symbol;
import org.apache.qpid.proton.amqp.UnsignedLong;
/**
- * Generated by generate-frames.xsl, which resides in this package.
+ * Generated by generate-described-types.xsl, which resides in this package.
*/
public class Received extends ListDescribedType
{
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/b47fbb74/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Rejected.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Rejected.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Rejected.java
index 817576f..4e08b4a 100644
--- a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Rejected.java
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Rejected.java
@@ -25,7 +25,7 @@ import org.apache.qpid.proton.amqp.Symbol;
import org.apache.qpid.proton.amqp.UnsignedLong;
/**
- * Generated by generate-frames.xsl, which resides in this package.
+ * Generated by generate-described-types.xsl, which resides in this package.
*/
public class Rejected extends ListDescribedType
{
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/b47fbb74/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Released.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Released.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Released.java
index 5925265..e355ecb 100644
--- a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Released.java
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Released.java
@@ -25,7 +25,7 @@ import org.apache.qpid.proton.amqp.Symbol;
import org.apache.qpid.proton.amqp.UnsignedLong;
/**
- * Generated by generate-frames.xsl, which resides in this package.
+ * Generated by generate-described-types.xsl, which resides in this package.
*/
public class Released extends ListDescribedType
{
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/b47fbb74/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/SaslChallengeFrame.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/SaslChallengeFrame.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/SaslChallengeFrame.java
index c8033eb..b9b895c 100644
--- a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/SaslChallengeFrame.java
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/SaslChallengeFrame.java
@@ -25,7 +25,7 @@ import org.apache.qpid.proton.amqp.Symbol;
import org.apache.qpid.proton.amqp.UnsignedLong;
/**
- * Generated by generate-frames.xsl, which resides in this package.
+ * Generated by generate-described-types.xsl, which resides in this package.
*/
public class SaslChallengeFrame extends ListDescribedType
{
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/b47fbb74/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/SaslInitFrame.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/SaslInitFrame.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/SaslInitFrame.java
index a11ce3d..202e300 100644
--- a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/SaslInitFrame.java
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/SaslInitFrame.java
@@ -25,7 +25,7 @@ import org.apache.qpid.proton.amqp.Symbol;
import org.apache.qpid.proton.amqp.UnsignedLong;
/**
- * Generated by generate-frames.xsl, which resides in this package.
+ * Generated by generate-described-types.xsl, which resides in this package.
*/
public class SaslInitFrame extends ListDescribedType
{
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/b47fbb74/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/SaslMechanismsFrame.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/SaslMechanismsFrame.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/SaslMechanismsFrame.java
index 40bf99d..eb692eb 100644
--- a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/SaslMechanismsFrame.java
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/SaslMechanismsFrame.java
@@ -25,7 +25,7 @@ import org.apache.qpid.proton.amqp.Symbol;
import org.apache.qpid.proton.amqp.UnsignedLong;
/**
- * Generated by generate-frames.xsl, which resides in this package.
+ * Generated by generate-described-types.xsl, which resides in this package.
*/
public class SaslMechanismsFrame extends ListDescribedType
{
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/b47fbb74/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/SaslOutcomeFrame.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/SaslOutcomeFrame.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/SaslOutcomeFrame.java
index 27da943..d51d235 100644
--- a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/SaslOutcomeFrame.java
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/SaslOutcomeFrame.java
@@ -25,7 +25,7 @@ import org.apache.qpid.proton.amqp.Symbol;
import org.apache.qpid.proton.amqp.UnsignedLong;
/**
- * Generated by generate-frames.xsl, which resides in this package.
+ * Generated by generate-described-types.xsl, which resides in this package.
*/
public class SaslOutcomeFrame extends ListDescribedType
{
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/b47fbb74/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/SaslResponseFrame.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/SaslResponseFrame.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/SaslResponseFrame.java
index 94e6094..526ccee 100644
--- a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/SaslResponseFrame.java
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/SaslResponseFrame.java
@@ -25,7 +25,7 @@ import org.apache.qpid.proton.amqp.Symbol;
import org.apache.qpid.proton.amqp.UnsignedLong;
/**
- * Generated by generate-frames.xsl, which resides in this package.
+ * Generated by generate-described-types.xsl, which resides in this package.
*/
public class SaslResponseFrame extends ListDescribedType
{
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/b47fbb74/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Source.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Source.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Source.java
index a2b0683..a6b9ddb 100644
--- a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Source.java
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Source.java
@@ -25,7 +25,7 @@ import org.apache.qpid.proton.amqp.Symbol;
import org.apache.qpid.proton.amqp.UnsignedLong;
/**
- * Generated by generate-frames.xsl, which resides in this package.
+ * Generated by generate-described-types.xsl, which resides in this package.
*/
public class Source extends ListDescribedType
{
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/b47fbb74/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Target.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Target.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Target.java
index 47ccfa0..b714a57 100644
--- a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Target.java
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Target.java
@@ -25,7 +25,7 @@ import org.apache.qpid.proton.amqp.Symbol;
import org.apache.qpid.proton.amqp.UnsignedLong;
/**
- * Generated by generate-frames.xsl, which resides in this package.
+ * Generated by generate-described-types.xsl, which resides in this package.
*/
public class Target extends ListDescribedType
{
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/b47fbb74/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/TransactionalState.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/TransactionalState.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/TransactionalState.java
index 4f3463f..9c1d5ef 100644
--- a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/TransactionalState.java
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/TransactionalState.java
@@ -25,7 +25,7 @@ import org.apache.qpid.proton.amqp.Symbol;
import org.apache.qpid.proton.amqp.UnsignedLong;
/**
- * Generated by generate-frames.xsl, which resides in this package.
+ * Generated by generate-described-types.xsl, which resides in this package.
*/
public class TransactionalState extends ListDescribedType
{
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/b47fbb74/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/TransferFrame.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/TransferFrame.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/TransferFrame.java
index e1f4435..0cbc354 100644
--- a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/TransferFrame.java
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/TransferFrame.java
@@ -25,7 +25,7 @@ import org.apache.qpid.proton.amqp.Symbol;
import org.apache.qpid.proton.amqp.UnsignedLong;
/**
- * Generated by generate-frames.xsl, which resides in this package.
+ * Generated by generate-described-types.xsl, which resides in this package.
*/
public class TransferFrame extends ListDescribedType
{
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/b47fbb74/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/generate-described-types.xsl
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/generate-described-types.xsl b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/generate-described-types.xsl
new file mode 100644
index 0000000..58fd866
--- /dev/null
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/generate-described-types.xsl
@@ -0,0 +1,154 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
+ xmlns:exsl="http://exslt.org/common"
+ extension-element-prefixes="exsl">
+
+<!-- Used to generate the Java classes in this package.
+ Changes to these classes should be effected by modifying this stylesheet then re-running it,
+ using a stylesheet processor that understands the exsl directives such as xsltproc -->
+
+<xsl:template match="/">
+ <xsl:variable name="license">/*
+ * 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.
+ *
+ */
+</xsl:variable>
+
+ <xsl:for-each select="descendant-or-self::node()[name()='type']">
+
+ <xsl:if test="@provides = 'frame' or @provides = 'sasl-frame'">
+ <xsl:variable name="classname"><xsl:call-template name="dashToCamel"><xsl:with-param name="input" select="@name"/></xsl:call-template>Frame</xsl:variable>
+
+ <xsl:call-template name="typeClass">
+ <xsl:with-param name="license" select="$license"/>
+ <xsl:with-param name="classname" select="$classname"/>
+ </xsl:call-template>
+ </xsl:if>
+
+ <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">
+ <xsl:with-param name="license" select="$license"/>
+ <xsl:with-param name="classname" select="$classname"/>
+ </xsl:call-template>
+ </xsl:if>
+ </xsl:for-each>
+</xsl:template>
+
+
+<!-- *************************************************************************************************************** -->
+
+<xsl:template name="typeClass">
+ <xsl:param name="license"/>
+ <xsl:param name="classname"/>
+ <exsl:document href="{$classname}.java" method="text">
+ <xsl:value-of select="$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-described-types.xsl, which resides in this package.
+ */
+public class <xsl:value-of select="$classname"/> extends ListDescribedType
+{
+ public static final Symbol DESCRIPTOR_SYMBOL = Symbol.valueOf("<xsl:value-of select="descendant::node()[name()='descriptor']/@name"/>");
+ public static final UnsignedLong DESCRIPTOR_CODE = UnsignedLong.valueOf(<xsl:value-of select="concat(substring(descendant::node()[name()='descriptor']/@code,1,10),substring(descendant::node()[name()='descriptor']/@code,14))"/>L);
+
+<xsl:for-each select="descendant::node()[name()='field']">
+ private static final int FIELD_<xsl:call-template name="toUpperDashToUnderscore"><xsl:with-param name="input" select="@name"/></xsl:call-template> = <xsl:value-of select="count(preceding-sibling::node()[name()='field'])"/>;</xsl:for-each>
+
+ public <xsl:value-of select="$classname"/>(Object... fields)
+ {
+ super(<xsl:value-of select="count(descendant::node()[name()='field'])"/>);
+ int i = 0;
+ for(Object field : fields)
+ {
+ getFields()[i++] = field;
+ }
+ }
+
+ @Override
+ public Symbol getDescriptor()
+ {
+ return DESCRIPTOR_SYMBOL;
+ }
+<xsl:for-each select="descendant::node()[name()='field']">
+ public <xsl:value-of select="$classname"/> set<xsl:call-template name="dashToCamel"><xsl:with-param name="input" select="@name"/></xsl:call-template>(Object o)
+ {
+ getFields()[FIELD_<xsl:call-template name="toUpperDashToUnderscore"><xsl:with-param name="input" select="@name"/></xsl:call-template>] = o;
+ return this;
+ }
+</xsl:for-each>
+}
+
+</exsl:document>
+
+</xsl:template>
+
+<!-- *************************************************************************************************************** -->
+
+<xsl:template name="constructFromLiteral">
+ <xsl:param name="type"/>
+ <xsl:param name="value"/>
+ <xsl:choose>
+ <xsl:when test="$type = 'string'">"<xsl:value-of select="$value"/></xsl:when>
+ <xsl:when test="$type = 'symbol'">Symbol.valueOf("<xsl:value-of select="$value"/>")</xsl:when>
+ <xsl:when test="$type = 'ubyte'">UnsignedByte.valueOf((byte) <xsl:value-of select="$value"/>)</xsl:when>
+ <xsl:when test="$type = 'ushort'">UnsignedShort.valueOf((short) <xsl:value-of select="$value"/>)</xsl:when>
+ <xsl:when test="$type = 'uint'">UnsignedInteger.valueOf(<xsl:value-of select="$value"/>)</xsl:when>
+ <xsl:when test="$type = 'ulong'">UnsignedLong.valueOf(<xsl:value-of select="$value"/>L)</xsl:when>
+ <xsl:when test="$type = 'long'"><xsl:value-of select="$value"/>L</xsl:when>
+ <xsl:when test="$type = 'short'">(short)<xsl:value-of select="$value"/></xsl:when>
+ <xsl:when test="$type = 'short'">(byte)<xsl:value-of select="$value"/></xsl:when>
+ <xsl:otherwise><xsl:value-of select="$value"/></xsl:otherwise>
+ </xsl:choose>
+</xsl:template>
+
+<!-- *************************************************************************************************************** -->
+<xsl:template name="substringAfterLast"><xsl:param name="input"/><xsl:param name="arg"/>
+ <xsl:choose>
+ <xsl:when test="contains($input,$arg)"><xsl:call-template name="substringAfterLast"><xsl:with-param name="input"><xsl:value-of select="substring-after($input,$arg)"/></xsl:with-param><xsl:with-param name="arg"><xsl:value-of select="$arg"/></xsl:with-param></xsl:call-template></xsl:when>
+ <xsl:otherwise><xsl:value-of select="$input"/></xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <xsl:template name="initCap"><xsl:param name="input"/><xsl:value-of select="translate(substring($input,1,1),'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/><xsl:value-of select="substring($input,2)"/></xsl:template>
+
+ <xsl:template name="initLower"><xsl:param name="input"/><xsl:value-of select="translate(substring($input,1,1),'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz')"/><xsl:value-of select="substring($input,2)"/></xsl:template>
+
+ <xsl:template name="toUpper"><xsl:param name="input"/><xsl:value-of select="translate($input,'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/></xsl:template>
+
+ <xsl:template name="toUpperDashToUnderscore"><xsl:param name="input"/><xsl:value-of select="translate($input,'abcdefghijklmnopqrstuvwxyz-','ABCDEFGHIJKLMNOPQRSTUVWXYZ_')"/></xsl:template>
+
+ <xsl:template name="dashToCamel">
+ <xsl:param name="input"/>
+ <xsl:choose>
+ <xsl:when test="contains($input,'-')"><xsl:call-template name="initCap"><xsl:with-param name="input" select="substring-before($input,'-')"/></xsl:call-template><xsl:call-template name="dashToCamel"><xsl:with-param name="input" select="substring-after($input,'-')"/></xsl:call-template></xsl:when>
+ <xsl:otherwise><xsl:call-template name="initCap"><xsl:with-param name="input" select="$input"/></xsl:call-template></xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <xsl:template name="dashToLowerCamel">
+ <xsl:param name="input"/>
+ <xsl:call-template name="initLower"><xsl:with-param name="input"><xsl:call-template name="dashToCamel"><xsl:with-param name="input" select="$input"/></xsl:call-template></xsl:with-param></xsl:call-template>
+ </xsl:template>
+</xsl:stylesheet>
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/b47fbb74/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
deleted file mode 100644
index 45330e9..0000000
--- a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/generate-frames.xsl
+++ /dev/null
@@ -1,154 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
- xmlns:exsl="http://exslt.org/common"
- extension-element-prefixes="exsl">
-
-<!-- Used to generate the Java classes in this package.
- Changes to these classes should be effected by modifying this stylesheet then re-running it,
- using a stylesheet processor that understands the exsl directives such as xsltproc -->
-
-<xsl:template match="/">
- <xsl:variable name="license">/*
- * 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.
- *
- */
-</xsl:variable>
-
- <xsl:for-each select="descendant-or-self::node()[name()='type']">
-
- <xsl:if test="@provides = 'frame' or @provides = 'sasl-frame'">
- <xsl:variable name="classname"><xsl:call-template name="dashToCamel"><xsl:with-param name="input" select="@name"/></xsl:call-template>Frame</xsl:variable>
-
- <xsl:call-template name="typeClass">
- <xsl:with-param name="license" select="$license"/>
- <xsl:with-param name="classname" select="$classname"/>
- </xsl:call-template>
- </xsl:if>
-
- <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">
- <xsl:with-param name="license" select="$license"/>
- <xsl:with-param name="classname" select="$classname"/>
- </xsl:call-template>
- </xsl:if>
- </xsl:for-each>
-</xsl:template>
-
-
-<!-- *************************************************************************************************************** -->
-
-<xsl:template name="typeClass">
- <xsl:param name="license"/>
- <xsl:param name="classname"/>
- <exsl:document href="{$classname}.java" method="text">
- <xsl:value-of select="$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 <xsl:value-of select="$classname"/> extends ListDescribedType
-{
- public static final Symbol DESCRIPTOR_SYMBOL = Symbol.valueOf("<xsl:value-of select="descendant::node()[name()='descriptor']/@name"/>");
- public static final UnsignedLong DESCRIPTOR_CODE = UnsignedLong.valueOf(<xsl:value-of select="concat(substring(descendant::node()[name()='descriptor']/@code,1,10),substring(descendant::node()[name()='descriptor']/@code,14))"/>L);
-
-<xsl:for-each select="descendant::node()[name()='field']">
- private static final int FIELD_<xsl:call-template name="toUpperDashToUnderscore"><xsl:with-param name="input" select="@name"/></xsl:call-template> = <xsl:value-of select="count(preceding-sibling::node()[name()='field'])"/>;</xsl:for-each>
-
- public <xsl:value-of select="$classname"/>(Object... fields)
- {
- super(<xsl:value-of select="count(descendant::node()[name()='field'])"/>);
- int i = 0;
- for(Object field : fields)
- {
- getFields()[i++] = field;
- }
- }
-
- @Override
- public Symbol getDescriptor()
- {
- return DESCRIPTOR_SYMBOL;
- }
-<xsl:for-each select="descendant::node()[name()='field']">
- public <xsl:value-of select="$classname"/> set<xsl:call-template name="dashToCamel"><xsl:with-param name="input" select="@name"/></xsl:call-template>(Object o)
- {
- getFields()[FIELD_<xsl:call-template name="toUpperDashToUnderscore"><xsl:with-param name="input" select="@name"/></xsl:call-template>] = o;
- return this;
- }
-</xsl:for-each>
-}
-
-</exsl:document>
-
-</xsl:template>
-
-<!-- *************************************************************************************************************** -->
-
-<xsl:template name="constructFromLiteral">
- <xsl:param name="type"/>
- <xsl:param name="value"/>
- <xsl:choose>
- <xsl:when test="$type = 'string'">"<xsl:value-of select="$value"/></xsl:when>
- <xsl:when test="$type = 'symbol'">Symbol.valueOf("<xsl:value-of select="$value"/>")</xsl:when>
- <xsl:when test="$type = 'ubyte'">UnsignedByte.valueOf((byte) <xsl:value-of select="$value"/>)</xsl:when>
- <xsl:when test="$type = 'ushort'">UnsignedShort.valueOf((short) <xsl:value-of select="$value"/>)</xsl:when>
- <xsl:when test="$type = 'uint'">UnsignedInteger.valueOf(<xsl:value-of select="$value"/>)</xsl:when>
- <xsl:when test="$type = 'ulong'">UnsignedLong.valueOf(<xsl:value-of select="$value"/>L)</xsl:when>
- <xsl:when test="$type = 'long'"><xsl:value-of select="$value"/>L</xsl:when>
- <xsl:when test="$type = 'short'">(short)<xsl:value-of select="$value"/></xsl:when>
- <xsl:when test="$type = 'short'">(byte)<xsl:value-of select="$value"/></xsl:when>
- <xsl:otherwise><xsl:value-of select="$value"/></xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!-- *************************************************************************************************************** -->
-<xsl:template name="substringAfterLast"><xsl:param name="input"/><xsl:param name="arg"/>
- <xsl:choose>
- <xsl:when test="contains($input,$arg)"><xsl:call-template name="substringAfterLast"><xsl:with-param name="input"><xsl:value-of select="substring-after($input,$arg)"/></xsl:with-param><xsl:with-param name="arg"><xsl:value-of select="$arg"/></xsl:with-param></xsl:call-template></xsl:when>
- <xsl:otherwise><xsl:value-of select="$input"/></xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template name="initCap"><xsl:param name="input"/><xsl:value-of select="translate(substring($input,1,1),'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/><xsl:value-of select="substring($input,2)"/></xsl:template>
-
- <xsl:template name="initLower"><xsl:param name="input"/><xsl:value-of select="translate(substring($input,1,1),'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz')"/><xsl:value-of select="substring($input,2)"/></xsl:template>
-
- <xsl:template name="toUpper"><xsl:param name="input"/><xsl:value-of select="translate($input,'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/></xsl:template>
-
- <xsl:template name="toUpperDashToUnderscore"><xsl:param name="input"/><xsl:value-of select="translate($input,'abcdefghijklmnopqrstuvwxyz-','ABCDEFGHIJKLMNOPQRSTUVWXYZ_')"/></xsl:template>
-
- <xsl:template name="dashToCamel">
- <xsl:param name="input"/>
- <xsl:choose>
- <xsl:when test="contains($input,'-')"><xsl:call-template name="initCap"><xsl:with-param name="input" select="substring-before($input,'-')"/></xsl:call-template><xsl:call-template name="dashToCamel"><xsl:with-param name="input" select="substring-after($input,'-')"/></xsl:call-template></xsl:when>
- <xsl:otherwise><xsl:call-template name="initCap"><xsl:with-param name="input" select="$input"/></xsl:call-template></xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template name="dashToLowerCamel">
- <xsl:param name="input"/>
- <xsl:call-template name="initLower"><xsl:with-param name="input"><xsl:call-template name="dashToCamel"><xsl:with-param name="input" select="$input"/></xsl:call-template></xsl:with-param></xsl:call-template>
- </xsl:template>
-</xsl:stylesheet>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org
[05/10] git commit: add the more general error-condition archetype
rather than just transaction-error specifically
Posted by ro...@apache.org.
add the more general error-condition archetype rather than just transaction-error specifically
Project: http://git-wip-us.apache.org/repos/asf/qpid-jms/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-jms/commit/39fc8b9e
Tree: http://git-wip-us.apache.org/repos/asf/qpid-jms/tree/39fc8b9e
Diff: http://git-wip-us.apache.org/repos/asf/qpid-jms/diff/39fc8b9e
Branch: refs/heads/master
Commit: 39fc8b9e894375ab72b6a72e35d7e25f47cc1863
Parents: a33cc98
Author: Robert Gemmell <ro...@apache.org>
Authored: Tue Oct 28 18:25:54 2014 +0000
Committer: Robert Gemmell <ro...@apache.org>
Committed: Tue Oct 28 18:25:54 2014 +0000
----------------------------------------------------------------------
.../jms/test/testpeer/basictypes/AmqpError.java | 50 ++++++++++++++++++++
.../testpeer/basictypes/ConnectionError.java | 40 ++++++++++++++++
.../jms/test/testpeer/basictypes/LinkError.java | 42 ++++++++++++++++
.../test/testpeer/basictypes/SessionError.java | 41 ++++++++++++++++
.../test/testpeer/basictypes/generate-types.xsl | 2 +-
5 files changed, 174 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/39fc8b9e/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/AmqpError.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/AmqpError.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/AmqpError.java
new file mode 100644
index 0000000..c946545
--- /dev/null
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/AmqpError.java
@@ -0,0 +1,50 @@
+/*
+ * 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.basictypes;
+
+
+import org.apache.qpid.proton.amqp.Symbol;
+
+
+/**
+ * Generated by generate-types.xsl, which resides in this package.
+ */
+public class AmqpError {
+
+ public static final Symbol INTERNAL_ERROR = Symbol.valueOf("amqp:internal-error");
+ public static final Symbol NOT_FOUND = Symbol.valueOf("amqp:not-found");
+ public static final Symbol UNAUTHORIZED_ACCESS = Symbol.valueOf("amqp:unauthorized-access");
+ public static final Symbol DECODE_ERROR = Symbol.valueOf("amqp:decode-error");
+ public static final Symbol RESOURCE_LIMIT_EXCEEDED = Symbol.valueOf("amqp:resource-limit-exceeded");
+ public static final Symbol NOT_ALLOWED = Symbol.valueOf("amqp:not-allowed");
+ public static final Symbol INVALID_FIELD = Symbol.valueOf("amqp:invalid-field");
+ public static final Symbol NOT_IMPLEMENTED = Symbol.valueOf("amqp:not-implemented");
+ public static final Symbol RESOURCE_LOCKED = Symbol.valueOf("amqp:resource-locked");
+ public static final Symbol PRECONDITION_FAILED = Symbol.valueOf("amqp:precondition-failed");
+ public static final Symbol RESOURCE_DELETED = Symbol.valueOf("amqp:resource-deleted");
+ public static final Symbol ILLEGAL_STATE = Symbol.valueOf("amqp:illegal-state");
+ public static final Symbol FRAME_SIZE_TOO_SMALL = Symbol.valueOf("amqp:frame-size-too-small");
+
+ private AmqpError() {
+ //No instances
+ }
+}
+
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/39fc8b9e/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/ConnectionError.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/ConnectionError.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/ConnectionError.java
new file mode 100644
index 0000000..3f817ca
--- /dev/null
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/ConnectionError.java
@@ -0,0 +1,40 @@
+/*
+ * 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.basictypes;
+
+
+import org.apache.qpid.proton.amqp.Symbol;
+
+
+/**
+ * Generated by generate-types.xsl, which resides in this package.
+ */
+public class ConnectionError {
+
+ public static final Symbol CONNECTION_FORCED = Symbol.valueOf("amqp:connection:forced");
+ public static final Symbol FRAMING_ERROR = Symbol.valueOf("amqp:connection:framing-error");
+ public static final Symbol REDIRECT = Symbol.valueOf("amqp:connection:redirect");
+
+ private ConnectionError() {
+ //No instances
+ }
+}
+
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/39fc8b9e/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/LinkError.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/LinkError.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/LinkError.java
new file mode 100644
index 0000000..7f919bd
--- /dev/null
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/LinkError.java
@@ -0,0 +1,42 @@
+/*
+ * 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.basictypes;
+
+
+import org.apache.qpid.proton.amqp.Symbol;
+
+
+/**
+ * Generated by generate-types.xsl, which resides in this package.
+ */
+public class LinkError {
+
+ public static final Symbol DETACH_FORCED = Symbol.valueOf("amqp:link:detach-forced");
+ public static final Symbol TRANSFER_LIMIT_EXCEEDED = Symbol.valueOf("amqp:link:transfer-limit-exceeded");
+ public static final Symbol MESSAGE_SIZE_EXCEEDED = Symbol.valueOf("amqp:link:message-size-exceeded");
+ public static final Symbol REDIRECT = Symbol.valueOf("amqp:link:redirect");
+ public static final Symbol STOLEN = Symbol.valueOf("amqp:link:stolen");
+
+ private LinkError() {
+ //No instances
+ }
+}
+
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/39fc8b9e/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/SessionError.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/SessionError.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/SessionError.java
new file mode 100644
index 0000000..66049af
--- /dev/null
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/SessionError.java
@@ -0,0 +1,41 @@
+/*
+ * 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.basictypes;
+
+
+import org.apache.qpid.proton.amqp.Symbol;
+
+
+/**
+ * Generated by generate-types.xsl, which resides in this package.
+ */
+public class SessionError {
+
+ public static final Symbol WINDOW_VIOLATION = Symbol.valueOf("amqp:session:window-violation");
+ public static final Symbol ERRANT_LINK = Symbol.valueOf("amqp:session:errant-link");
+ public static final Symbol HANDLE_IN_USE = Symbol.valueOf("amqp:session:handle-in-use");
+ public static final Symbol UNATTACHED_HANDLE = Symbol.valueOf("amqp:session:unattached-handle");
+
+ private SessionError() {
+ //No instances
+ }
+}
+
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/39fc8b9e/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/generate-types.xsl
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/generate-types.xsl b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/generate-types.xsl
index 4569714..b4361bd 100644
--- a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/generate-types.xsl
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/generate-types.xsl
@@ -30,7 +30,7 @@
</xsl:variable>
<xsl:for-each select="descendant-or-self::node()[name()='type']">
- <xsl:if test="@name = 'terminus-durability' or @name = 'terminus-expiry-policy' or @name = 'std-dist-mode' or @name = 'txn-capability' or @name = 'transaction-error'">
+ <xsl:if test="@name = 'terminus-durability' or @name = 'terminus-expiry-policy' or @name = 'std-dist-mode' or @name = 'txn-capability' or @provides = 'error-condition'">
<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">
<xsl:with-param name="license" select="$license"/>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org
[09/10] git commit: add dynamic node lifetime policies
Posted by ro...@apache.org.
add dynamic node lifetime policies
Project: http://git-wip-us.apache.org/repos/asf/qpid-jms/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-jms/commit/91e3627e
Tree: http://git-wip-us.apache.org/repos/asf/qpid-jms/tree/91e3627e
Diff: http://git-wip-us.apache.org/repos/asf/qpid-jms/diff/91e3627e
Branch: refs/heads/master
Commit: 91e3627e55fce8e852074414e045f7ff5b9e0a8c
Parents: e7af2e1
Author: Robert Gemmell <ro...@apache.org>
Authored: Tue Oct 28 18:44:31 2014 +0000
Committer: Robert Gemmell <ro...@apache.org>
Committed: Tue Oct 28 18:44:42 2014 +0000
----------------------------------------------------------------------
.../testpeer/describedtypes/DeleteOnClose.java | 54 ++++++++++++++++++++
.../describedtypes/DeleteOnNoLinks.java | 54 ++++++++++++++++++++
.../DeleteOnNoLinksOrMessages.java | 54 ++++++++++++++++++++
.../describedtypes/DeleteOnNoMessages.java | 54 ++++++++++++++++++++
.../describedtypes/generate-described-types.xsl | 2 +-
5 files changed, 217 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/91e3627e/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/DeleteOnClose.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/DeleteOnClose.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/DeleteOnClose.java
new file mode 100644
index 0000000..51c49de
--- /dev/null
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/DeleteOnClose.java
@@ -0,0 +1,54 @@
+/*
+ * 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-described-types.xsl, which resides in this package.
+ */
+public class DeleteOnClose extends ListDescribedType
+{
+ public static final Symbol DESCRIPTOR_SYMBOL = Symbol.valueOf("amqp:delete-on-close:list");
+ public static final UnsignedLong DESCRIPTOR_CODE = UnsignedLong.valueOf(0x000000000000002bL);
+
+
+
+ public DeleteOnClose(Object... fields)
+ {
+ super(0);
+ int i = 0;
+ for(Object field : fields)
+ {
+ getFields()[i++] = field;
+ }
+ }
+
+ @Override
+ public Symbol getDescriptor()
+ {
+ return DESCRIPTOR_SYMBOL;
+ }
+
+}
+
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/91e3627e/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/DeleteOnNoLinks.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/DeleteOnNoLinks.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/DeleteOnNoLinks.java
new file mode 100644
index 0000000..e5aa8c7
--- /dev/null
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/DeleteOnNoLinks.java
@@ -0,0 +1,54 @@
+/*
+ * 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-described-types.xsl, which resides in this package.
+ */
+public class DeleteOnNoLinks extends ListDescribedType
+{
+ public static final Symbol DESCRIPTOR_SYMBOL = Symbol.valueOf("amqp:delete-on-no-links:list");
+ public static final UnsignedLong DESCRIPTOR_CODE = UnsignedLong.valueOf(0x000000000000002cL);
+
+
+
+ public DeleteOnNoLinks(Object... fields)
+ {
+ super(0);
+ int i = 0;
+ for(Object field : fields)
+ {
+ getFields()[i++] = field;
+ }
+ }
+
+ @Override
+ public Symbol getDescriptor()
+ {
+ return DESCRIPTOR_SYMBOL;
+ }
+
+}
+
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/91e3627e/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/DeleteOnNoLinksOrMessages.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/DeleteOnNoLinksOrMessages.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/DeleteOnNoLinksOrMessages.java
new file mode 100644
index 0000000..11a711f
--- /dev/null
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/DeleteOnNoLinksOrMessages.java
@@ -0,0 +1,54 @@
+/*
+ * 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-described-types.xsl, which resides in this package.
+ */
+public class DeleteOnNoLinksOrMessages extends ListDescribedType
+{
+ public static final Symbol DESCRIPTOR_SYMBOL = Symbol.valueOf("amqp:delete-on-no-links-or-messages:list");
+ public static final UnsignedLong DESCRIPTOR_CODE = UnsignedLong.valueOf(0x000000000000002eL);
+
+
+
+ public DeleteOnNoLinksOrMessages(Object... fields)
+ {
+ super(0);
+ int i = 0;
+ for(Object field : fields)
+ {
+ getFields()[i++] = field;
+ }
+ }
+
+ @Override
+ public Symbol getDescriptor()
+ {
+ return DESCRIPTOR_SYMBOL;
+ }
+
+}
+
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/91e3627e/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/DeleteOnNoMessages.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/DeleteOnNoMessages.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/DeleteOnNoMessages.java
new file mode 100644
index 0000000..aeea691
--- /dev/null
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/DeleteOnNoMessages.java
@@ -0,0 +1,54 @@
+/*
+ * 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-described-types.xsl, which resides in this package.
+ */
+public class DeleteOnNoMessages extends ListDescribedType
+{
+ public static final Symbol DESCRIPTOR_SYMBOL = Symbol.valueOf("amqp:delete-on-no-messages:list");
+ public static final UnsignedLong DESCRIPTOR_CODE = UnsignedLong.valueOf(0x000000000000002dL);
+
+
+
+ public DeleteOnNoMessages(Object... fields)
+ {
+ super(0);
+ int i = 0;
+ for(Object field : fields)
+ {
+ getFields()[i++] = field;
+ }
+ }
+
+ @Override
+ public Symbol getDescriptor()
+ {
+ return DESCRIPTOR_SYMBOL;
+ }
+
+}
+
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/91e3627e/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/generate-described-types.xsl
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/generate-described-types.xsl b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/generate-described-types.xsl
index d467b37..21b438f 100644
--- a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/generate-described-types.xsl
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/generate-described-types.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' or @name = 'declare' or @name = 'discharge' or @name = 'error'">
+ <xsl:if test="@provides = 'delivery-state, outcome' or @provides = 'delivery-state' or @provides = 'source' or @provides = 'target' or @name = 'declare' or @name = 'discharge' or @name = 'error' or @provides = 'lifetime-policy'">
<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: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org
[02/10] git commit: add some more delivery state types
Posted by ro...@apache.org.
add some more delivery state 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/c227b29f
Tree: http://git-wip-us.apache.org/repos/asf/qpid-jms/tree/c227b29f
Diff: http://git-wip-us.apache.org/repos/asf/qpid-jms/diff/c227b29f
Branch: refs/heads/master
Commit: c227b29ffe8522f53681d08c8977e8db80d3b95c
Parents: ead083b
Author: Robert Gemmell <ro...@apache.org>
Authored: Tue Oct 28 17:35:42 2014 +0000
Committer: Robert Gemmell <ro...@apache.org>
Committed: Tue Oct 28 17:35:42 2014 +0000
----------------------------------------------------------------------
.../test/testpeer/describedtypes/Received.java | 68 ++++++++++++++++++++
.../describedtypes/TransactionalState.java | 68 ++++++++++++++++++++
.../testpeer/describedtypes/generate-frames.xsl | 2 +-
3 files changed, 137 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/c227b29f/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Received.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Received.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Received.java
new file mode 100644
index 0000000..c43ad52
--- /dev/null
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Received.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 Received extends ListDescribedType
+{
+ public static final Symbol DESCRIPTOR_SYMBOL = Symbol.valueOf("amqp:received:list");
+ public static final UnsignedLong DESCRIPTOR_CODE = UnsignedLong.valueOf(0x0000000000000023L);
+
+
+ private static final int FIELD_SECTION_NUMBER = 0;
+ private static final int FIELD_SECTION_OFFSET = 1;
+
+ public Received(Object... fields)
+ {
+ super(2);
+ int i = 0;
+ for(Object field : fields)
+ {
+ getFields()[i++] = field;
+ }
+ }
+
+ @Override
+ public Symbol getDescriptor()
+ {
+ return DESCRIPTOR_SYMBOL;
+ }
+
+ public Received setSectionNumber(Object o)
+ {
+ getFields()[FIELD_SECTION_NUMBER] = o;
+ return this;
+ }
+
+ public Received setSectionOffset(Object o)
+ {
+ getFields()[FIELD_SECTION_OFFSET] = o;
+ return this;
+ }
+
+}
+
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/c227b29f/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/TransactionalState.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/TransactionalState.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/TransactionalState.java
new file mode 100644
index 0000000..4f3463f
--- /dev/null
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/TransactionalState.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 TransactionalState extends ListDescribedType
+{
+ public static final Symbol DESCRIPTOR_SYMBOL = Symbol.valueOf("amqp:transactional-state:list");
+ public static final UnsignedLong DESCRIPTOR_CODE = UnsignedLong.valueOf(0x0000000000000034L);
+
+
+ private static final int FIELD_TXN_ID = 0;
+ private static final int FIELD_OUTCOME = 1;
+
+ public TransactionalState(Object... fields)
+ {
+ super(2);
+ int i = 0;
+ for(Object field : fields)
+ {
+ getFields()[i++] = field;
+ }
+ }
+
+ @Override
+ public Symbol getDescriptor()
+ {
+ return DESCRIPTOR_SYMBOL;
+ }
+
+ public TransactionalState setTxnId(Object o)
+ {
+ getFields()[FIELD_TXN_ID] = o;
+ return this;
+ }
+
+ public TransactionalState setOutcome(Object o)
+ {
+ getFields()[FIELD_OUTCOME] = o;
+ return this;
+ }
+
+}
+
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/c227b29f/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 75e3b65..2614c4d 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 = 'source' or @provides = 'target'">
+ <xsl:if test="@provides = 'delivery-state, outcome' or @provides = 'delivery-state' or @provides = 'source' or @provides = 'target'">
<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: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org
[04/10] git commit: add some more transaction related types
Posted by ro...@apache.org.
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/a33cc988
Tree: http://git-wip-us.apache.org/repos/asf/qpid-jms/tree/a33cc988
Diff: http://git-wip-us.apache.org/repos/asf/qpid-jms/diff/a33cc988
Branch: refs/heads/master
Commit: a33cc9881247907eb6ace1ed183ce3b6c475dddc
Parents: edb6aaf
Author: Robert Gemmell <ro...@apache.org>
Authored: Tue Oct 28 17:45:09 2014 +0000
Committer: Robert Gemmell <ro...@apache.org>
Committed: Tue Oct 28 17:45:09 2014 +0000
----------------------------------------------------------------------
.../testpeer/basictypes/TransactionError.java | 40 +++++++++++++++++++
.../test/testpeer/basictypes/TxnCapability.java | 42 ++++++++++++++++++++
.../test/testpeer/basictypes/generate-types.xsl | 2 +-
3 files changed, 83 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/a33cc988/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/TransactionError.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/TransactionError.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/TransactionError.java
new file mode 100644
index 0000000..87740f1
--- /dev/null
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/TransactionError.java
@@ -0,0 +1,40 @@
+/*
+ * 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.basictypes;
+
+
+import org.apache.qpid.proton.amqp.Symbol;
+
+
+/**
+ * Generated by generate-types.xsl, which resides in this package.
+ */
+public class TransactionError {
+
+ public static final Symbol UNKNOWN_ID = Symbol.valueOf("amqp:transaction:unknown-id");
+ public static final Symbol TRANSACTION_ROLLBACK = Symbol.valueOf("amqp:transaction:rollback");
+ public static final Symbol TRANSACTION_TIMEOUT = Symbol.valueOf("amqp:transaction:timeout");
+
+ private TransactionError() {
+ //No instances
+ }
+}
+
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/a33cc988/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/TxnCapability.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/TxnCapability.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/TxnCapability.java
new file mode 100644
index 0000000..c71ffd8
--- /dev/null
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/TxnCapability.java
@@ -0,0 +1,42 @@
+/*
+ * 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.basictypes;
+
+
+import org.apache.qpid.proton.amqp.Symbol;
+
+
+/**
+ * Generated by generate-types.xsl, which resides in this package.
+ */
+public class TxnCapability {
+
+ public static final Symbol LOCAL_TRANSACTIONS = Symbol.valueOf("amqp:local-transactions");
+ public static final Symbol DISTRIBUTED_TRANSACTIONS = Symbol.valueOf("amqp:distributed-transactions");
+ public static final Symbol PROMOTABLE_TRANSACTIONS = Symbol.valueOf("amqp:promotable-transactions");
+ public static final Symbol MULTI_TXNS_PER_SSN = Symbol.valueOf("amqp:multi-txns-per-ssn");
+ public static final Symbol MULTI_SSNS_PER_TXN = Symbol.valueOf("amqp:multi-ssns-per-txn");
+
+ private TxnCapability() {
+ //No instances
+ }
+}
+
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/a33cc988/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/generate-types.xsl
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/generate-types.xsl b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/generate-types.xsl
index 188a655..4569714 100644
--- a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/generate-types.xsl
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/generate-types.xsl
@@ -30,7 +30,7 @@
</xsl:variable>
<xsl:for-each select="descendant-or-self::node()[name()='type']">
- <xsl:if test="@name = 'terminus-durability' or @name = 'terminus-expiry-policy' or @name = 'std-dist-mode'">
+ <xsl:if test="@name = 'terminus-durability' or @name = 'terminus-expiry-policy' or @name = 'std-dist-mode' or @name = 'txn-capability' or @name = 'transaction-error'">
<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">
<xsl:with-param name="license" select="$license"/>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org
[06/10] git commit: add types for sender/reciever roles and settlement
Posted by ro...@apache.org.
add types for sender/reciever roles and settlement
Project: http://git-wip-us.apache.org/repos/asf/qpid-jms/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-jms/commit/8d9c1f38
Tree: http://git-wip-us.apache.org/repos/asf/qpid-jms/tree/8d9c1f38
Diff: http://git-wip-us.apache.org/repos/asf/qpid-jms/diff/8d9c1f38
Branch: refs/heads/master
Commit: 8d9c1f3883f361951cb5bad38ea5fd8dffacbb5e
Parents: 39fc8b9
Author: Robert Gemmell <ro...@apache.org>
Authored: Tue Oct 28 18:30:41 2014 +0000
Committer: Robert Gemmell <ro...@apache.org>
Committed: Tue Oct 28 18:30:41 2014 +0000
----------------------------------------------------------------------
.../testpeer/basictypes/ReceiverSettleMode.java | 39 +++++++++++++++++++
.../qpid/jms/test/testpeer/basictypes/Role.java | 37 ++++++++++++++++++
.../testpeer/basictypes/SenderSettleMode.java | 40 ++++++++++++++++++++
.../test/testpeer/basictypes/generate-types.xsl | 5 ++-
4 files changed, 119 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/8d9c1f38/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/ReceiverSettleMode.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/ReceiverSettleMode.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/ReceiverSettleMode.java
new file mode 100644
index 0000000..852b6b2
--- /dev/null
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/ReceiverSettleMode.java
@@ -0,0 +1,39 @@
+/*
+ * 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.basictypes;
+
+
+import org.apache.qpid.proton.amqp.UnsignedByte;
+
+
+/**
+ * Generated by generate-types.xsl, which resides in this package.
+ */
+public class ReceiverSettleMode {
+
+ public static final UnsignedByte FIRST = UnsignedByte.valueOf((byte) 0);
+ public static final UnsignedByte SECOND = UnsignedByte.valueOf((byte) 1);
+
+ private ReceiverSettleMode() {
+ //No instances
+ }
+}
+
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/8d9c1f38/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/Role.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/Role.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/Role.java
new file mode 100644
index 0000000..a92869a
--- /dev/null
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/Role.java
@@ -0,0 +1,37 @@
+/*
+ * 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.basictypes;
+
+
+
+/**
+ * Generated by generate-types.xsl, which resides in this package.
+ */
+public class Role {
+
+ public static final boolean SENDER = false;
+ public static final boolean RECEIVER = true;
+
+ private Role() {
+ //No instances
+ }
+}
+
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/8d9c1f38/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/SenderSettleMode.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/SenderSettleMode.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/SenderSettleMode.java
new file mode 100644
index 0000000..e81e6a9
--- /dev/null
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/SenderSettleMode.java
@@ -0,0 +1,40 @@
+/*
+ * 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.basictypes;
+
+
+import org.apache.qpid.proton.amqp.UnsignedByte;
+
+
+/**
+ * Generated by generate-types.xsl, which resides in this package.
+ */
+public class SenderSettleMode {
+
+ public static final UnsignedByte UNSETTLED = UnsignedByte.valueOf((byte) 0);
+ public static final UnsignedByte SETTLED = UnsignedByte.valueOf((byte) 1);
+ public static final UnsignedByte MIXED = UnsignedByte.valueOf((byte) 2);
+
+ private SenderSettleMode() {
+ //No instances
+ }
+}
+
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/8d9c1f38/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/generate-types.xsl
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/generate-types.xsl b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/generate-types.xsl
index b4361bd..af8e545 100644
--- a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/generate-types.xsl
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/generate-types.xsl
@@ -30,7 +30,7 @@
</xsl:variable>
<xsl:for-each select="descendant-or-self::node()[name()='type']">
- <xsl:if test="@name = 'terminus-durability' or @name = 'terminus-expiry-policy' or @name = 'std-dist-mode' or @name = 'txn-capability' or @provides = 'error-condition'">
+ <xsl:if test="@name = 'terminus-durability' or @name = 'terminus-expiry-policy' or @name = 'std-dist-mode' or @name = 'txn-capability' or @provides = 'error-condition' or @name = 'role' or @name = 'sender-settle-mode' or @name = 'receiver-settle-mode' ">
<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">
<xsl:with-param name="license" select="$license"/>
@@ -83,13 +83,14 @@ public class <xsl:value-of select="$classname"/> {
<xsl:choose>
<xsl:when test="$type = 'string'">String <xsl:value-of select="$constantName"/> ="<xsl:value-of select="$value"/>";</xsl:when>
<xsl:when test="$type = 'symbol'">Symbol <xsl:value-of select="$constantName"/> = Symbol.valueOf("<xsl:value-of select="$value"/>")</xsl:when>
- <xsl:when test="$type = 'ubyte'">UnsignedByte<xsl:value-of select="$constantName"/> = UnsignedByte.valueOf((byte) <xsl:value-of select="$value"/>)</xsl:when>
+ <xsl:when test="$type = 'ubyte'">UnsignedByte <xsl:value-of select="$constantName"/> = UnsignedByte.valueOf((byte) <xsl:value-of select="$value"/>)</xsl:when>
<xsl:when test="$type = 'ushort'">UnsignedShort <xsl:value-of select="$constantName"/> = UnsignedShort.valueOf((short) <xsl:value-of select="$value"/>)</xsl:when>
<xsl:when test="$type = 'uint'">UnsignedInteger <xsl:value-of select="$constantName"/> = UnsignedInteger.valueOf(<xsl:value-of select="$value"/>)</xsl:when>
<xsl:when test="$type = 'ulong'">UnsignedLong <xsl:value-of select="$constantName"/> = UnsignedLong.valueOf(<xsl:value-of select="$value"/>L)</xsl:when>
<xsl:when test="$type = 'long'">long <xsl:value-of select="$constantName"/> = <xsl:value-of select="$value"/>L</xsl:when>
<xsl:when test="$type = 'short'">short <xsl:value-of select="$constantName"/> = (short)<xsl:value-of select="$value"/></xsl:when>
<xsl:when test="$type = 'short'">byte <xsl:value-of select="$constantName"/> = (byte)<xsl:value-of select="$value"/></xsl:when>
+ <xsl:when test="$type = 'boolean'">boolean <xsl:value-of select="$constantName"/> = <xsl:value-of select="$value"/></xsl:when>
<xsl:otherwise><xsl:value-of select="$value"/></xsl:otherwise>
</xsl:choose>
</xsl:template>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org
[03/10] git commit: add some more transaction related types
Posted by ro...@apache.org.
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 <ro...@apache.org>
Authored: Tue Oct 28 17:42:13 2014 +0000
Committer: Robert Gemmell <ro...@apache.org>
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: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org
[08/10] git commit: add the error type
Posted by ro...@apache.org.
add the error type
Project: http://git-wip-us.apache.org/repos/asf/qpid-jms/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-jms/commit/e7af2e1e
Tree: http://git-wip-us.apache.org/repos/asf/qpid-jms/tree/e7af2e1e
Diff: http://git-wip-us.apache.org/repos/asf/qpid-jms/diff/e7af2e1e
Branch: refs/heads/master
Commit: e7af2e1e1624c00d70adc9806d0b0f7bd87d819d
Parents: b47fbb7
Author: Robert Gemmell <ro...@apache.org>
Authored: Tue Oct 28 18:41:06 2014 +0000
Committer: Robert Gemmell <ro...@apache.org>
Committed: Tue Oct 28 18:41:06 2014 +0000
----------------------------------------------------------------------
.../jms/test/testpeer/describedtypes/Error.java | 75 ++++++++++++++++++++
.../describedtypes/generate-described-types.xsl | 2 +-
2 files changed, 76 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/e7af2e1e/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Error.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Error.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Error.java
new file mode 100644
index 0000000..37ca712
--- /dev/null
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/Error.java
@@ -0,0 +1,75 @@
+/*
+ * 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-described-types.xsl, which resides in this package.
+ */
+public class Error extends ListDescribedType
+{
+ public static final Symbol DESCRIPTOR_SYMBOL = Symbol.valueOf("amqp:error:list");
+ public static final UnsignedLong DESCRIPTOR_CODE = UnsignedLong.valueOf(0x000000000000001dL);
+
+
+ private static final int FIELD_CONDITION = 0;
+ private static final int FIELD_DESCRIPTION = 1;
+ private static final int FIELD_INFO = 2;
+
+ public Error(Object... fields)
+ {
+ super(3);
+ int i = 0;
+ for(Object field : fields)
+ {
+ getFields()[i++] = field;
+ }
+ }
+
+ @Override
+ public Symbol getDescriptor()
+ {
+ return DESCRIPTOR_SYMBOL;
+ }
+
+ public Error setCondition(Object o)
+ {
+ getFields()[FIELD_CONDITION] = o;
+ return this;
+ }
+
+ public Error setDescription(Object o)
+ {
+ getFields()[FIELD_DESCRIPTION] = o;
+ return this;
+ }
+
+ public Error setInfo(Object o)
+ {
+ getFields()[FIELD_INFO] = o;
+ return this;
+ }
+
+}
+
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/e7af2e1e/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/generate-described-types.xsl
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/generate-described-types.xsl b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/generate-described-types.xsl
index 58fd866..d467b37 100644
--- a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/generate-described-types.xsl
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/describedtypes/generate-described-types.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' or @name = 'declare' or @name = 'discharge'">
+ <xsl:if test="@provides = 'delivery-state, outcome' or @provides = 'delivery-state' or @provides = 'source' or @provides = 'target' or @name = 'declare' or @name = 'discharge' or @name = 'error'">
<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: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org