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 <[email protected]> Authored: Tue Oct 28 18:41:06 2014 +0000 Committer: Robert Gemmell <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected]
