Return-Path: Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: (qmail 46122 invoked from network); 30 Jul 2009 19:08:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Jul 2009 19:08:04 -0000 Received: (qmail 46738 invoked by uid 500); 30 Jul 2009 19:08:05 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 46686 invoked by uid 500); 30 Jul 2009 19:08:05 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 46668 invoked by uid 99); 30 Jul 2009 19:08:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Jul 2009 19:08:05 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Jul 2009 19:07:49 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 61BE523889D0; Thu, 30 Jul 2009 19:06:59 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r799407 [11/29] - in /activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp: ./ Commands/ OpenWire/ OpenWire/V1/ OpenWire/V2/ OpenWire/V3/ OpenWire/V4/ OpenWire/V5/ State/ Transport/ Date: Thu, 30 Jul 2009 19:06:44 -0000 To: commits@activemq.apache.org From: tabish@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090730190659.61BE523889D0@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V1/SessionInfoMarshaller.cs URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V1/SessionInfoMarshaller.cs?rev=799407&r1=799406&r2=799407&view=diff ============================================================================== --- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V1/SessionInfoMarshaller.cs (original) +++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V1/SessionInfoMarshaller.cs Thu Jul 30 19:06:34 2009 @@ -1,25 +1,29 @@ /* -* 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. -*/ - -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-core module -// + * 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. + */ + +/* + * + * Marshaler code for OpenWire format for SessionInfo + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the Java Classes + * in the nms-activemq-openwire-generator module + * + */ using System; using System.Collections; @@ -31,81 +35,83 @@ namespace Apache.NMS.ActiveMQ.OpenWire.V1 { - /// - /// Marshalling code for Open Wire Format for SessionInfo - /// - class SessionInfoMarshaller : BaseCommandMarshaller - { - - - public override DataStructure CreateObject() - { - return new SessionInfo(); - } - - public override byte GetDataStructureType() - { - return SessionInfo.ID_SessionInfo; - } - - // - // Un-marshal an object instance from the data input stream - // - public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) - { - base.TightUnmarshal(wireFormat, o, dataIn, bs); - - SessionInfo info = (SessionInfo)o; - info.SessionId = (SessionId) TightUnmarshalCachedObject(wireFormat, dataIn, bs); - - } - - // - // Write the booleans that this object uses to a BooleanStream - // - public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) { - SessionInfo info = (SessionInfo)o; - - int rc = base.TightMarshal1(wireFormat, info, bs); - rc += TightMarshalCachedObject1(wireFormat, (DataStructure)info.SessionId, bs); - - return rc + 0; - } - - // - // Write a object instance to data output stream - // - public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) { - base.TightMarshal2(wireFormat, o, dataOut, bs); - - SessionInfo info = (SessionInfo)o; - TightMarshalCachedObject2(wireFormat, (DataStructure)info.SessionId, dataOut, bs); - - } - - // - // Un-marshal an object instance from the data input stream - // - public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) + /// + /// Marshalling code for Open Wire Format for SessionInfo + /// + class SessionInfoMarshaller : BaseCommandMarshaller { - base.LooseUnmarshal(wireFormat, o, dataIn); - - SessionInfo info = (SessionInfo)o; - info.SessionId = (SessionId) LooseUnmarshalCachedObject(wireFormat, dataIn); - - } - - // - // Write a object instance to data output stream - // - public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) { - - SessionInfo info = (SessionInfo)o; - - base.LooseMarshal(wireFormat, o, dataOut); - LooseMarshalCachedObject(wireFormat, (DataStructure)info.SessionId, dataOut); - + /// + /// Creates an instance of the Object that this marshaller handles. + /// + public override DataStructure CreateObject() + { + return new SessionInfo(); + } + + /// + /// Returns the type code for the Object that this Marshaller handles.. + /// + public override byte GetDataStructureType() + { + return SessionInfo.ID_SESSIONINFO; + } + + // + // Un-marshal an object instance from the data input stream + // + public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) + { + base.TightUnmarshal(wireFormat, o, dataIn, bs); + + SessionInfo info = (SessionInfo)o; + info.SessionId = (SessionId) TightUnmarshalCachedObject(wireFormat, dataIn, bs); + } + + // + // Write the booleans that this object uses to a BooleanStream + // + public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) + { + SessionInfo info = (SessionInfo)o; + + int rc = base.TightMarshal1(wireFormat, o, bs); + rc += TightMarshalCachedObject1(wireFormat, (DataStructure)info.SessionId, bs); + + return rc + 0; + } + + // + // Write a object instance to data output stream + // + public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) + { + base.TightMarshal2(wireFormat, o, dataOut, bs); + + SessionInfo info = (SessionInfo)o; + TightMarshalCachedObject2(wireFormat, (DataStructure)info.SessionId, dataOut, bs); + } + + // + // Un-marshal an object instance from the data input stream + // + public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) + { + base.LooseUnmarshal(wireFormat, o, dataIn); + + SessionInfo info = (SessionInfo)o; + info.SessionId = (SessionId) LooseUnmarshalCachedObject(wireFormat, dataIn); + } + + // + // Write a object instance to data output stream + // + public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) + { + + SessionInfo info = (SessionInfo)o; + + base.LooseMarshal(wireFormat, o, dataOut); + LooseMarshalCachedObject(wireFormat, (DataStructure)info.SessionId, dataOut); + } } - - } } Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V1/ShutdownInfoMarshaller.cs URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V1/ShutdownInfoMarshaller.cs?rev=799407&r1=799406&r2=799407&view=diff ============================================================================== --- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V1/ShutdownInfoMarshaller.cs (original) +++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V1/ShutdownInfoMarshaller.cs Thu Jul 30 19:06:34 2009 @@ -1,25 +1,29 @@ /* -* 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. -*/ - -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-core module -// + * 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. + */ + +/* + * + * Marshaler code for OpenWire format for ShutdownInfo + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the Java Classes + * in the nms-activemq-openwire-generator module + * + */ using System; using System.Collections; @@ -31,68 +35,69 @@ namespace Apache.NMS.ActiveMQ.OpenWire.V1 { - /// - /// Marshalling code for Open Wire Format for ShutdownInfo - /// - class ShutdownInfoMarshaller : BaseCommandMarshaller - { - - - public override DataStructure CreateObject() - { - return new ShutdownInfo(); - } - - public override byte GetDataStructureType() + /// + /// Marshalling code for Open Wire Format for ShutdownInfo + /// + class ShutdownInfoMarshaller : BaseCommandMarshaller { - return ShutdownInfo.ID_ShutdownInfo; - } - - // - // Un-marshal an object instance from the data input stream - // - public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) - { - base.TightUnmarshal(wireFormat, o, dataIn, bs); - - } - - // - // Write the booleans that this object uses to a BooleanStream - // - public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) { - ShutdownInfo info = (ShutdownInfo)o; - - int rc = base.TightMarshal1(wireFormat, info, bs); - - return rc + 0; - } - - // - // Write a object instance to data output stream - // - public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) { - base.TightMarshal2(wireFormat, o, dataOut, bs); - - } - - // - // Un-marshal an object instance from the data input stream - // - public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) - { - base.LooseUnmarshal(wireFormat, o, dataIn); - - } - - // - // Write a object instance to data output stream - // - public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) { - - base.LooseMarshal(wireFormat, o, dataOut); + /// + /// Creates an instance of the Object that this marshaller handles. + /// + public override DataStructure CreateObject() + { + return new ShutdownInfo(); + } + + /// + /// Returns the type code for the Object that this Marshaller handles.. + /// + public override byte GetDataStructureType() + { + return ShutdownInfo.ID_SHUTDOWNINFO; + } + + // + // Un-marshal an object instance from the data input stream + // + public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) + { + base.TightUnmarshal(wireFormat, o, dataIn, bs); + } + + // + // Write the booleans that this object uses to a BooleanStream + // + public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) + { + + int rc = base.TightMarshal1(wireFormat, o, bs); + + return rc + 0; + } + + // + // Write a object instance to data output stream + // + public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) + { + base.TightMarshal2(wireFormat, o, dataOut, bs); + } + + // + // Un-marshal an object instance from the data input stream + // + public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) + { + base.LooseUnmarshal(wireFormat, o, dataIn); + } + + // + // Write a object instance to data output stream + // + public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) + { + base.LooseMarshal(wireFormat, o, dataOut); + } } - - } } Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V1/SubscriptionInfoMarshaller.cs URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V1/SubscriptionInfoMarshaller.cs?rev=799407&r1=799406&r2=799407&view=diff ============================================================================== --- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V1/SubscriptionInfoMarshaller.cs (original) +++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V1/SubscriptionInfoMarshaller.cs Thu Jul 30 19:06:34 2009 @@ -1,25 +1,29 @@ /* -* 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. -*/ - -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-core module -// + * 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. + */ + +/* + * + * Marshaler code for OpenWire format for SubscriptionInfo + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the Java Classes + * in the nms-activemq-openwire-generator module + * + */ using System; using System.Collections; @@ -31,96 +35,98 @@ namespace Apache.NMS.ActiveMQ.OpenWire.V1 { - /// - /// Marshalling code for Open Wire Format for SubscriptionInfo - /// - class SubscriptionInfoMarshaller : BaseDataStreamMarshaller - { - - - public override DataStructure CreateObject() - { - return new SubscriptionInfo(); - } - - public override byte GetDataStructureType() - { - return SubscriptionInfo.ID_SubscriptionInfo; - } - - // - // Un-marshal an object instance from the data input stream - // - public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) - { - base.TightUnmarshal(wireFormat, o, dataIn, bs); - - SubscriptionInfo info = (SubscriptionInfo)o; - info.ClientId = TightUnmarshalString(dataIn, bs); - info.Destination = (ActiveMQDestination) TightUnmarshalCachedObject(wireFormat, dataIn, bs); - info.Selector = TightUnmarshalString(dataIn, bs); - info.SubcriptionName = TightUnmarshalString(dataIn, bs); - - } - - // - // Write the booleans that this object uses to a BooleanStream - // - public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) { - SubscriptionInfo info = (SubscriptionInfo)o; - - int rc = base.TightMarshal1(wireFormat, info, bs); - rc += TightMarshalString1(info.ClientId, bs); - rc += TightMarshalCachedObject1(wireFormat, (DataStructure)info.Destination, bs); - rc += TightMarshalString1(info.Selector, bs); - rc += TightMarshalString1(info.SubcriptionName, bs); - - return rc + 0; - } - - // - // Write a object instance to data output stream - // - public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) { - base.TightMarshal2(wireFormat, o, dataOut, bs); - - SubscriptionInfo info = (SubscriptionInfo)o; - TightMarshalString2(info.ClientId, dataOut, bs); - TightMarshalCachedObject2(wireFormat, (DataStructure)info.Destination, dataOut, bs); - TightMarshalString2(info.Selector, dataOut, bs); - TightMarshalString2(info.SubcriptionName, dataOut, bs); - - } - - // - // Un-marshal an object instance from the data input stream - // - public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) + /// + /// Marshalling code for Open Wire Format for SubscriptionInfo + /// + class SubscriptionInfoMarshaller : BaseDataStreamMarshaller { - base.LooseUnmarshal(wireFormat, o, dataIn); - - SubscriptionInfo info = (SubscriptionInfo)o; - info.ClientId = LooseUnmarshalString(dataIn); - info.Destination = (ActiveMQDestination) LooseUnmarshalCachedObject(wireFormat, dataIn); - info.Selector = LooseUnmarshalString(dataIn); - info.SubcriptionName = LooseUnmarshalString(dataIn); - - } - - // - // Write a object instance to data output stream - // - public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) { - - SubscriptionInfo info = (SubscriptionInfo)o; - - base.LooseMarshal(wireFormat, o, dataOut); - LooseMarshalString(info.ClientId, dataOut); - LooseMarshalCachedObject(wireFormat, (DataStructure)info.Destination, dataOut); - LooseMarshalString(info.Selector, dataOut); - LooseMarshalString(info.SubcriptionName, dataOut); - + /// + /// Creates an instance of the Object that this marshaller handles. + /// + public override DataStructure CreateObject() + { + return new SubscriptionInfo(); + } + + /// + /// Returns the type code for the Object that this Marshaller handles.. + /// + public override byte GetDataStructureType() + { + return SubscriptionInfo.ID_SUBSCRIPTIONINFO; + } + + // + // Un-marshal an object instance from the data input stream + // + public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) + { + base.TightUnmarshal(wireFormat, o, dataIn, bs); + + SubscriptionInfo info = (SubscriptionInfo)o; + info.ClientId = TightUnmarshalString(dataIn, bs); + info.Destination = (ActiveMQDestination) TightUnmarshalCachedObject(wireFormat, dataIn, bs); + info.Selector = TightUnmarshalString(dataIn, bs); + info.SubcriptionName = TightUnmarshalString(dataIn, bs); + } + + // + // Write the booleans that this object uses to a BooleanStream + // + public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) + { + SubscriptionInfo info = (SubscriptionInfo)o; + + int rc = base.TightMarshal1(wireFormat, o, bs); + rc += TightMarshalString1(info.ClientId, bs); + rc += TightMarshalCachedObject1(wireFormat, (DataStructure)info.Destination, bs); + rc += TightMarshalString1(info.Selector, bs); + rc += TightMarshalString1(info.SubcriptionName, bs); + + return rc + 0; + } + + // + // Write a object instance to data output stream + // + public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) + { + base.TightMarshal2(wireFormat, o, dataOut, bs); + + SubscriptionInfo info = (SubscriptionInfo)o; + TightMarshalString2(info.ClientId, dataOut, bs); + TightMarshalCachedObject2(wireFormat, (DataStructure)info.Destination, dataOut, bs); + TightMarshalString2(info.Selector, dataOut, bs); + TightMarshalString2(info.SubcriptionName, dataOut, bs); + } + + // + // Un-marshal an object instance from the data input stream + // + public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) + { + base.LooseUnmarshal(wireFormat, o, dataIn); + + SubscriptionInfo info = (SubscriptionInfo)o; + info.ClientId = LooseUnmarshalString(dataIn); + info.Destination = (ActiveMQDestination) LooseUnmarshalCachedObject(wireFormat, dataIn); + info.Selector = LooseUnmarshalString(dataIn); + info.SubcriptionName = LooseUnmarshalString(dataIn); + } + + // + // Write a object instance to data output stream + // + public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) + { + + SubscriptionInfo info = (SubscriptionInfo)o; + + base.LooseMarshal(wireFormat, o, dataOut); + LooseMarshalString(info.ClientId, dataOut); + LooseMarshalCachedObject(wireFormat, (DataStructure)info.Destination, dataOut); + LooseMarshalString(info.Selector, dataOut); + LooseMarshalString(info.SubcriptionName, dataOut); + } } - - } } Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V1/TransactionIdMarshaller.cs URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V1/TransactionIdMarshaller.cs?rev=799407&r1=799406&r2=799407&view=diff ============================================================================== --- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V1/TransactionIdMarshaller.cs (original) +++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V1/TransactionIdMarshaller.cs Thu Jul 30 19:06:34 2009 @@ -1,25 +1,29 @@ /* -* 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. -*/ - -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-core module -// + * 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. + */ + +/* + * + * Marshaler code for OpenWire format for TransactionId + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the Java Classes + * in the nms-activemq-openwire-generator module + * + */ using System; using System.Collections; @@ -31,57 +35,54 @@ namespace Apache.NMS.ActiveMQ.OpenWire.V1 { - /// - /// Marshalling code for Open Wire Format for TransactionId - /// - abstract class TransactionIdMarshaller : BaseDataStreamMarshaller - { - - // - // Un-marshal an object instance from the data input stream - // - public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) - { - base.TightUnmarshal(wireFormat, o, dataIn, bs); - - } - - // - // Write the booleans that this object uses to a BooleanStream - // - public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) { - TransactionId info = (TransactionId)o; - - int rc = base.TightMarshal1(wireFormat, info, bs); - - return rc + 0; - } - - // - // Write a object instance to data output stream - // - public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) { - base.TightMarshal2(wireFormat, o, dataOut, bs); - - } - - // - // Un-marshal an object instance from the data input stream - // - public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) + /// + /// Marshalling code for Open Wire Format for TransactionId + /// + abstract class TransactionIdMarshaller : BaseDataStreamMarshaller { - base.LooseUnmarshal(wireFormat, o, dataIn); - - } - - // - // Write a object instance to data output stream - // - public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) { - base.LooseMarshal(wireFormat, o, dataOut); + // + // Un-marshal an object instance from the data input stream + // + public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) + { + base.TightUnmarshal(wireFormat, o, dataIn, bs); + } + + // + // Write the booleans that this object uses to a BooleanStream + // + public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) + { + + int rc = base.TightMarshal1(wireFormat, o, bs); + + return rc + 0; + } + + // + // Write a object instance to data output stream + // + public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) + { + base.TightMarshal2(wireFormat, o, dataOut, bs); + } + + // + // Un-marshal an object instance from the data input stream + // + public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) + { + base.LooseUnmarshal(wireFormat, o, dataIn); + } + + // + // Write a object instance to data output stream + // + public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) + { + base.LooseMarshal(wireFormat, o, dataOut); + } } - - } } Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V1/TransactionInfoMarshaller.cs URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V1/TransactionInfoMarshaller.cs?rev=799407&r1=799406&r2=799407&view=diff ============================================================================== --- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V1/TransactionInfoMarshaller.cs (original) +++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V1/TransactionInfoMarshaller.cs Thu Jul 30 19:06:34 2009 @@ -1,25 +1,29 @@ /* -* 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. -*/ - -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-core module -// + * 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. + */ + +/* + * + * Marshaler code for OpenWire format for TransactionInfo + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the Java Classes + * in the nms-activemq-openwire-generator module + * + */ using System; using System.Collections; @@ -31,90 +35,92 @@ namespace Apache.NMS.ActiveMQ.OpenWire.V1 { - /// - /// Marshalling code for Open Wire Format for TransactionInfo - /// - class TransactionInfoMarshaller : BaseCommandMarshaller - { - - - public override DataStructure CreateObject() - { - return new TransactionInfo(); - } - - public override byte GetDataStructureType() - { - return TransactionInfo.ID_TransactionInfo; - } - - // - // Un-marshal an object instance from the data input stream - // - public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) - { - base.TightUnmarshal(wireFormat, o, dataIn, bs); - - TransactionInfo info = (TransactionInfo)o; - info.ConnectionId = (ConnectionId) TightUnmarshalCachedObject(wireFormat, dataIn, bs); - info.TransactionId = (TransactionId) TightUnmarshalCachedObject(wireFormat, dataIn, bs); - info.Type = dataIn.ReadByte(); - - } - - // - // Write the booleans that this object uses to a BooleanStream - // - public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) { - TransactionInfo info = (TransactionInfo)o; - - int rc = base.TightMarshal1(wireFormat, info, bs); - rc += TightMarshalCachedObject1(wireFormat, (DataStructure)info.ConnectionId, bs); - rc += TightMarshalCachedObject1(wireFormat, (DataStructure)info.TransactionId, bs); - - return rc + 1; - } - - // - // Write a object instance to data output stream - // - public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) { - base.TightMarshal2(wireFormat, o, dataOut, bs); - - TransactionInfo info = (TransactionInfo)o; - TightMarshalCachedObject2(wireFormat, (DataStructure)info.ConnectionId, dataOut, bs); - TightMarshalCachedObject2(wireFormat, (DataStructure)info.TransactionId, dataOut, bs); - dataOut.Write(info.Type); - - } - - // - // Un-marshal an object instance from the data input stream - // - public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) + /// + /// Marshalling code for Open Wire Format for TransactionInfo + /// + class TransactionInfoMarshaller : BaseCommandMarshaller { - base.LooseUnmarshal(wireFormat, o, dataIn); - - TransactionInfo info = (TransactionInfo)o; - info.ConnectionId = (ConnectionId) LooseUnmarshalCachedObject(wireFormat, dataIn); - info.TransactionId = (TransactionId) LooseUnmarshalCachedObject(wireFormat, dataIn); - info.Type = dataIn.ReadByte(); - - } - - // - // Write a object instance to data output stream - // - public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) { - - TransactionInfo info = (TransactionInfo)o; - - base.LooseMarshal(wireFormat, o, dataOut); - LooseMarshalCachedObject(wireFormat, (DataStructure)info.ConnectionId, dataOut); - LooseMarshalCachedObject(wireFormat, (DataStructure)info.TransactionId, dataOut); - dataOut.Write(info.Type); - + /// + /// Creates an instance of the Object that this marshaller handles. + /// + public override DataStructure CreateObject() + { + return new TransactionInfo(); + } + + /// + /// Returns the type code for the Object that this Marshaller handles.. + /// + public override byte GetDataStructureType() + { + return TransactionInfo.ID_TRANSACTIONINFO; + } + + // + // Un-marshal an object instance from the data input stream + // + public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) + { + base.TightUnmarshal(wireFormat, o, dataIn, bs); + + TransactionInfo info = (TransactionInfo)o; + info.ConnectionId = (ConnectionId) TightUnmarshalCachedObject(wireFormat, dataIn, bs); + info.TransactionId = (TransactionId) TightUnmarshalCachedObject(wireFormat, dataIn, bs); + info.Type = dataIn.ReadByte(); + } + + // + // Write the booleans that this object uses to a BooleanStream + // + public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) + { + TransactionInfo info = (TransactionInfo)o; + + int rc = base.TightMarshal1(wireFormat, o, bs); + rc += TightMarshalCachedObject1(wireFormat, (DataStructure)info.ConnectionId, bs); + rc += TightMarshalCachedObject1(wireFormat, (DataStructure)info.TransactionId, bs); + + return rc + 1; + } + + // + // Write a object instance to data output stream + // + public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) + { + base.TightMarshal2(wireFormat, o, dataOut, bs); + + TransactionInfo info = (TransactionInfo)o; + TightMarshalCachedObject2(wireFormat, (DataStructure)info.ConnectionId, dataOut, bs); + TightMarshalCachedObject2(wireFormat, (DataStructure)info.TransactionId, dataOut, bs); + dataOut.Write(info.Type); + } + + // + // Un-marshal an object instance from the data input stream + // + public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) + { + base.LooseUnmarshal(wireFormat, o, dataIn); + + TransactionInfo info = (TransactionInfo)o; + info.ConnectionId = (ConnectionId) LooseUnmarshalCachedObject(wireFormat, dataIn); + info.TransactionId = (TransactionId) LooseUnmarshalCachedObject(wireFormat, dataIn); + info.Type = dataIn.ReadByte(); + } + + // + // Write a object instance to data output stream + // + public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) + { + + TransactionInfo info = (TransactionInfo)o; + + base.LooseMarshal(wireFormat, o, dataOut); + LooseMarshalCachedObject(wireFormat, (DataStructure)info.ConnectionId, dataOut); + LooseMarshalCachedObject(wireFormat, (DataStructure)info.TransactionId, dataOut); + dataOut.Write(info.Type); + } } - - } } Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V1/WireFormatInfoMarshaller.cs URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V1/WireFormatInfoMarshaller.cs?rev=799407&r1=799406&r2=799407&view=diff ============================================================================== --- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V1/WireFormatInfoMarshaller.cs (original) +++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V1/WireFormatInfoMarshaller.cs Thu Jul 30 19:06:34 2009 @@ -1,25 +1,29 @@ /* -* 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. -*/ - -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-core module -// + * 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. + */ + +/* + * + * Marshaler code for OpenWire format for WireFormatInfo + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the Java Classes + * in the nms-activemq-openwire-generator module + * + */ using System; using System.Collections; @@ -31,115 +35,117 @@ namespace Apache.NMS.ActiveMQ.OpenWire.V1 { - /// - /// Marshalling code for Open Wire Format for WireFormatInfo - /// - class WireFormatInfoMarshaller : BaseDataStreamMarshaller - { - - - public override DataStructure CreateObject() + /// + /// Marshalling code for Open Wire Format for WireFormatInfo + /// + class WireFormatInfoMarshaller : BaseDataStreamMarshaller { - return new WireFormatInfo(); - } - - public override byte GetDataStructureType() - { - return WireFormatInfo.ID_WireFormatInfo; - } - - // - // Un-marshal an object instance from the data input stream - // - public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) - { - base.TightUnmarshal(wireFormat, o, dataIn, bs); - - WireFormatInfo info = (WireFormatInfo)o; - - info.BeforeUnmarshall(wireFormat); - - info.Magic = ReadBytes(dataIn, 8); - info.Version = dataIn.ReadInt32(); - info.MarshalledProperties = ReadBytes(dataIn, bs.ReadBoolean()); - - info.AfterUnmarshall(wireFormat); - - } - - // - // Write the booleans that this object uses to a BooleanStream - // - public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) { - WireFormatInfo info = (WireFormatInfo)o; - - info.BeforeMarshall(wireFormat); - - int rc = base.TightMarshal1(wireFormat, info, bs); - bs.WriteBoolean(info.MarshalledProperties!=null); - rc += info.MarshalledProperties==null ? 0 : info.MarshalledProperties.Length+4; - - return rc + 12; - } - - // - // Write a object instance to data output stream - // - public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) { - base.TightMarshal2(wireFormat, o, dataOut, bs); - - WireFormatInfo info = (WireFormatInfo)o; - dataOut.Write(info.Magic, 0, 8); - dataOut.Write(info.Version); - if(bs.ReadBoolean()) { - dataOut.Write(info.MarshalledProperties.Length); - dataOut.Write(info.MarshalledProperties); + /// + /// Creates an instance of the Object that this marshaller handles. + /// + public override DataStructure CreateObject() + { + return new WireFormatInfo(); } - info.AfterMarshall(wireFormat); - - } - - // - // Un-marshal an object instance from the data input stream - // - public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) - { - base.LooseUnmarshal(wireFormat, o, dataIn); + /// + /// Returns the type code for the Object that this Marshaller handles.. + /// + public override byte GetDataStructureType() + { + return WireFormatInfo.ID_WIREFORMATINFO; + } - WireFormatInfo info = (WireFormatInfo)o; + // + // Un-marshal an object instance from the data input stream + // + public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) + { + base.TightUnmarshal(wireFormat, o, dataIn, bs); + + WireFormatInfo info = (WireFormatInfo)o; + + info.BeforeUnmarshall(wireFormat); + + info.Magic = ReadBytes(dataIn, 8); + info.Version = dataIn.ReadInt32(); + info.MarshalledProperties = ReadBytes(dataIn, bs.ReadBoolean()); - info.BeforeUnmarshall(wireFormat); - - info.Magic = ReadBytes(dataIn, 8); - info.Version = dataIn.ReadInt32(); - info.MarshalledProperties = ReadBytes(dataIn, dataIn.ReadBoolean()); + info.AfterUnmarshall(wireFormat); + } - info.AfterUnmarshall(wireFormat); + // + // Write the booleans that this object uses to a BooleanStream + // + public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) + { + WireFormatInfo info = (WireFormatInfo)o; + + info.BeforeMarshall(wireFormat); + + int rc = base.TightMarshal1(wireFormat, o, bs); + bs.WriteBoolean(info.MarshalledProperties!=null); + rc += info.MarshalledProperties==null ? 0 : info.MarshalledProperties.Length+4; - } + return rc + 12; + } - // - // Write a object instance to data output stream - // - public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) { + // + // Write a object instance to data output stream + // + public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) + { + base.TightMarshal2(wireFormat, o, dataOut, bs); + + WireFormatInfo info = (WireFormatInfo)o; + dataOut.Write(info.Magic, 0, 8); + dataOut.Write(info.Version); + if(bs.ReadBoolean()) { + dataOut.Write(info.MarshalledProperties.Length); + dataOut.Write(info.MarshalledProperties); + } - WireFormatInfo info = (WireFormatInfo)o; + info.AfterMarshall(wireFormat); + } - info.BeforeMarshall(wireFormat); + // + // Un-marshal an object instance from the data input stream + // + public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) + { + base.LooseUnmarshal(wireFormat, o, dataIn); + + WireFormatInfo info = (WireFormatInfo)o; + + info.BeforeUnmarshall(wireFormat); + + info.Magic = ReadBytes(dataIn, 8); + info.Version = dataIn.ReadInt32(); + info.MarshalledProperties = ReadBytes(dataIn, dataIn.ReadBoolean()); - base.LooseMarshal(wireFormat, o, dataOut); - dataOut.Write(info.Magic, 0, 8); - dataOut.Write(info.Version); - dataOut.Write(info.MarshalledProperties!=null); - if(info.MarshalledProperties!=null) { - dataOut.Write(info.MarshalledProperties.Length); - dataOut.Write(info.MarshalledProperties); + info.AfterUnmarshall(wireFormat); } - info.AfterMarshall(wireFormat); + // + // Write a object instance to data output stream + // + public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) + { + + WireFormatInfo info = (WireFormatInfo)o; + + info.BeforeMarshall(wireFormat); + + base.LooseMarshal(wireFormat, o, dataOut); + dataOut.Write(info.Magic, 0, 8); + dataOut.Write(info.Version); + dataOut.Write(info.MarshalledProperties!=null); + if(info.MarshalledProperties!=null) { + dataOut.Write(info.MarshalledProperties.Length); + dataOut.Write(info.MarshalledProperties); + } + info.AfterMarshall(wireFormat); + } } - - } } Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V1/XATransactionIdMarshaller.cs URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V1/XATransactionIdMarshaller.cs?rev=799407&r1=799406&r2=799407&view=diff ============================================================================== --- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V1/XATransactionIdMarshaller.cs (original) +++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V1/XATransactionIdMarshaller.cs Thu Jul 30 19:06:34 2009 @@ -1,25 +1,29 @@ /* -* 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. -*/ - -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-core module -// + * 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. + */ + +/* + * + * Marshaler code for OpenWire format for XATransactionId + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the Java Classes + * in the nms-activemq-openwire-generator module + * + */ using System; using System.Collections; @@ -31,106 +35,108 @@ namespace Apache.NMS.ActiveMQ.OpenWire.V1 { - /// - /// Marshalling code for Open Wire Format for XATransactionId - /// - class XATransactionIdMarshaller : TransactionIdMarshaller - { - - - public override DataStructure CreateObject() - { - return new XATransactionId(); - } - - public override byte GetDataStructureType() - { - return XATransactionId.ID_XATransactionId; - } - - // - // Un-marshal an object instance from the data input stream - // - public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) + /// + /// Marshalling code for Open Wire Format for XATransactionId + /// + class XATransactionIdMarshaller : TransactionIdMarshaller { - base.TightUnmarshal(wireFormat, o, dataIn, bs); - - XATransactionId info = (XATransactionId)o; - info.FormatId = dataIn.ReadInt32(); - info.GlobalTransactionId = ReadBytes(dataIn, bs.ReadBoolean()); - info.BranchQualifier = ReadBytes(dataIn, bs.ReadBoolean()); - - } - - // - // Write the booleans that this object uses to a BooleanStream - // - public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) { - XATransactionId info = (XATransactionId)o; - - int rc = base.TightMarshal1(wireFormat, info, bs); - bs.WriteBoolean(info.GlobalTransactionId!=null); - rc += info.GlobalTransactionId==null ? 0 : info.GlobalTransactionId.Length+4; - bs.WriteBoolean(info.BranchQualifier!=null); - rc += info.BranchQualifier==null ? 0 : info.BranchQualifier.Length+4; - - return rc + 4; - } + /// + /// Creates an instance of the Object that this marshaller handles. + /// + public override DataStructure CreateObject() + { + return new XATransactionId(); + } - // - // Write a object instance to data output stream - // - public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) { - base.TightMarshal2(wireFormat, o, dataOut, bs); - - XATransactionId info = (XATransactionId)o; - dataOut.Write(info.FormatId); - if(bs.ReadBoolean()) { - dataOut.Write(info.GlobalTransactionId.Length); - dataOut.Write(info.GlobalTransactionId); - } - if(bs.ReadBoolean()) { - dataOut.Write(info.BranchQualifier.Length); - dataOut.Write(info.BranchQualifier); + /// + /// Returns the type code for the Object that this Marshaller handles.. + /// + public override byte GetDataStructureType() + { + return XATransactionId.ID_XATRANSACTIONID; } - } + // + // Un-marshal an object instance from the data input stream + // + public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) + { + base.TightUnmarshal(wireFormat, o, dataIn, bs); + + XATransactionId info = (XATransactionId)o; + info.FormatId = dataIn.ReadInt32(); + info.GlobalTransactionId = ReadBytes(dataIn, bs.ReadBoolean()); + info.BranchQualifier = ReadBytes(dataIn, bs.ReadBoolean()); + } - // - // Un-marshal an object instance from the data input stream - // - public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) - { - base.LooseUnmarshal(wireFormat, o, dataIn); + // + // Write the booleans that this object uses to a BooleanStream + // + public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) + { + XATransactionId info = (XATransactionId)o; + + int rc = base.TightMarshal1(wireFormat, o, bs); + bs.WriteBoolean(info.GlobalTransactionId!=null); + rc += info.GlobalTransactionId==null ? 0 : info.GlobalTransactionId.Length+4; + bs.WriteBoolean(info.BranchQualifier!=null); + rc += info.BranchQualifier==null ? 0 : info.BranchQualifier.Length+4; - XATransactionId info = (XATransactionId)o; - info.FormatId = dataIn.ReadInt32(); - info.GlobalTransactionId = ReadBytes(dataIn, dataIn.ReadBoolean()); - info.BranchQualifier = ReadBytes(dataIn, dataIn.ReadBoolean()); + return rc + 4; + } - } + // + // Write a object instance to data output stream + // + public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) + { + base.TightMarshal2(wireFormat, o, dataOut, bs); + + XATransactionId info = (XATransactionId)o; + dataOut.Write(info.FormatId); + if(bs.ReadBoolean()) { + dataOut.Write(info.GlobalTransactionId.Length); + dataOut.Write(info.GlobalTransactionId); + } + if(bs.ReadBoolean()) { + dataOut.Write(info.BranchQualifier.Length); + dataOut.Write(info.BranchQualifier); + } + } - // - // Write a object instance to data output stream - // - public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) { - - XATransactionId info = (XATransactionId)o; - - base.LooseMarshal(wireFormat, o, dataOut); - dataOut.Write(info.FormatId); - dataOut.Write(info.GlobalTransactionId!=null); - if(info.GlobalTransactionId!=null) { - dataOut.Write(info.GlobalTransactionId.Length); - dataOut.Write(info.GlobalTransactionId); - } - dataOut.Write(info.BranchQualifier!=null); - if(info.BranchQualifier!=null) { - dataOut.Write(info.BranchQualifier.Length); - dataOut.Write(info.BranchQualifier); + // + // Un-marshal an object instance from the data input stream + // + public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) + { + base.LooseUnmarshal(wireFormat, o, dataIn); + + XATransactionId info = (XATransactionId)o; + info.FormatId = dataIn.ReadInt32(); + info.GlobalTransactionId = ReadBytes(dataIn, dataIn.ReadBoolean()); + info.BranchQualifier = ReadBytes(dataIn, dataIn.ReadBoolean()); } + // + // Write a object instance to data output stream + // + public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) + { + + XATransactionId info = (XATransactionId)o; + + base.LooseMarshal(wireFormat, o, dataOut); + dataOut.Write(info.FormatId); + dataOut.Write(info.GlobalTransactionId!=null); + if(info.GlobalTransactionId!=null) { + dataOut.Write(info.GlobalTransactionId.Length); + dataOut.Write(info.GlobalTransactionId); + } + dataOut.Write(info.BranchQualifier!=null); + if(info.BranchQualifier!=null) { + dataOut.Write(info.BranchQualifier.Length); + dataOut.Write(info.BranchQualifier); + } + } } - - } } Added: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V2/ActiveMQBlobMessageMarshaller.cs URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V2/ActiveMQBlobMessageMarshaller.cs?rev=799407&view=auto ============================================================================== --- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V2/ActiveMQBlobMessageMarshaller.cs (added) +++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V2/ActiveMQBlobMessageMarshaller.cs Thu Jul 30 19:06:34 2009 @@ -0,0 +1,103 @@ +/* + * 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. + */ + +/* + * + * Marshaler code for OpenWire format for ActiveMQBlobMessage + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the Java Classes + * in the nms-activemq-openwire-generator module + * + */ + +using System; +using System.Collections; +using System.IO; + +using Apache.NMS.ActiveMQ.Commands; +using Apache.NMS.ActiveMQ.OpenWire; +using Apache.NMS.ActiveMQ.OpenWire.V2; + +namespace Apache.NMS.ActiveMQ.OpenWire.V2 +{ + /// + /// Marshalling code for Open Wire Format for ActiveMQBlobMessage + /// + class ActiveMQBlobMessageMarshaller : ActiveMQMessageMarshaller + { + /// + /// Creates an instance of the Object that this marshaller handles. + /// + public override DataStructure CreateObject() + { + return new ActiveMQBlobMessage(); + } + + /// + /// Returns the type code for the Object that this Marshaller handles.. + /// + public override byte GetDataStructureType() + { + return ActiveMQBlobMessage.ID_ACTIVEMQBLOBMESSAGE; + } + + // + // Un-marshal an object instance from the data input stream + // + public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) + { + base.TightUnmarshal(wireFormat, o, dataIn, bs); + } + + // + // Write the booleans that this object uses to a BooleanStream + // + public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) + { + + int rc = base.TightMarshal1(wireFormat, o, bs); + + return rc + 0; + } + + // + // Write a object instance to data output stream + // + public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) + { + base.TightMarshal2(wireFormat, o, dataOut, bs); + } + + // + // Un-marshal an object instance from the data input stream + // + public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) + { + base.LooseUnmarshal(wireFormat, o, dataIn); + } + + // + // Write a object instance to data output stream + // + public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) + { + + base.LooseMarshal(wireFormat, o, dataOut); + } + } +} Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V2/ActiveMQBytesMessageMarshaller.cs URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V2/ActiveMQBytesMessageMarshaller.cs?rev=799407&r1=799406&r2=799407&view=diff ============================================================================== --- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V2/ActiveMQBytesMessageMarshaller.cs (original) +++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V2/ActiveMQBytesMessageMarshaller.cs Thu Jul 30 19:06:34 2009 @@ -15,11 +15,15 @@ * limitations under the License. */ -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-core module -// +/* + * + * Marshaler code for OpenWire format for ActiveMQBytesMessage + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the Java Classes + * in the nms-activemq-openwire-generator module + * + */ using System; using System.Collections; @@ -31,67 +35,69 @@ namespace Apache.NMS.ActiveMQ.OpenWire.V2 { - /// - /// Marshalling code for Open Wire Format for ActiveMQBytesMessage - /// - class ActiveMQBytesMessageMarshaller : ActiveMQMessageMarshaller - { - - - public override DataStructure CreateObject() - { - return new ActiveMQBytesMessage(); - } - - public override byte GetDataStructureType() - { - return ActiveMQBytesMessage.ID_ActiveMQBytesMessage; - } - - // - // Un-marshal an object instance from the data input stream - // - public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) - { - base.TightUnmarshal(wireFormat, o, dataIn, bs); - - } - - // - // Write the booleans that this object uses to a BooleanStream - // - public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) { - ActiveMQBytesMessage info = (ActiveMQBytesMessage)o; - - int rc = base.TightMarshal1(wireFormat, info, bs); - - return rc + 0; - } - - // - // Write a object instance to data output stream - // - public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) { - base.TightMarshal2(wireFormat, o, dataOut, bs); - - } - - // - // Un-marshal an object instance from the data input stream - // - public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) + /// + /// Marshalling code for Open Wire Format for ActiveMQBytesMessage + /// + class ActiveMQBytesMessageMarshaller : ActiveMQMessageMarshaller { - base.LooseUnmarshal(wireFormat, o, dataIn); - - } - - // - // Write a object instance to data output stream - // - public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) { - - base.LooseMarshal(wireFormat, o, dataOut); + /// + /// Creates an instance of the Object that this marshaller handles. + /// + public override DataStructure CreateObject() + { + return new ActiveMQBytesMessage(); + } + + /// + /// Returns the type code for the Object that this Marshaller handles.. + /// + public override byte GetDataStructureType() + { + return ActiveMQBytesMessage.ID_ACTIVEMQBYTESMESSAGE; + } + + // + // Un-marshal an object instance from the data input stream + // + public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) + { + base.TightUnmarshal(wireFormat, o, dataIn, bs); + } + + // + // Write the booleans that this object uses to a BooleanStream + // + public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) + { + + int rc = base.TightMarshal1(wireFormat, o, bs); + + return rc + 0; + } + + // + // Write a object instance to data output stream + // + public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) + { + base.TightMarshal2(wireFormat, o, dataOut, bs); + } + + // + // Un-marshal an object instance from the data input stream + // + public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) + { + base.LooseUnmarshal(wireFormat, o, dataIn); + } + + // + // Write a object instance to data output stream + // + public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) + { + base.LooseMarshal(wireFormat, o, dataOut); + } } - } } Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V2/ActiveMQDestinationMarshaller.cs URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V2/ActiveMQDestinationMarshaller.cs?rev=799407&r1=799406&r2=799407&view=diff ============================================================================== --- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V2/ActiveMQDestinationMarshaller.cs (original) +++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V2/ActiveMQDestinationMarshaller.cs Thu Jul 30 19:06:34 2009 @@ -15,11 +15,15 @@ * limitations under the License. */ -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-core module -// +/* + * + * Marshaler code for OpenWire format for ActiveMQDestination + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the Java Classes + * in the nms-activemq-openwire-generator module + * + */ using System; using System.Collections; @@ -31,69 +35,68 @@ namespace Apache.NMS.ActiveMQ.OpenWire.V2 { - /// - /// Marshalling code for Open Wire Format for ActiveMQDestination - /// - abstract class ActiveMQDestinationMarshaller : BaseDataStreamMarshaller - { - - // - // Un-marshal an object instance from the data input stream - // - public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) - { - base.TightUnmarshal(wireFormat, o, dataIn, bs); - - ActiveMQDestination info = (ActiveMQDestination)o; - info.PhysicalName = TightUnmarshalString(dataIn, bs); - - } - - // - // Write the booleans that this object uses to a BooleanStream - // - public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) { - ActiveMQDestination info = (ActiveMQDestination)o; - - int rc = base.TightMarshal1(wireFormat, info, bs); - rc += TightMarshalString1(info.PhysicalName, bs); - - return rc + 0; - } - - // - // Write a object instance to data output stream - // - public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) { - base.TightMarshal2(wireFormat, o, dataOut, bs); - - ActiveMQDestination info = (ActiveMQDestination)o; - TightMarshalString2(info.PhysicalName, dataOut, bs); - - } - - // - // Un-marshal an object instance from the data input stream - // - public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) + /// + /// Marshalling code for Open Wire Format for ActiveMQDestination + /// + abstract class ActiveMQDestinationMarshaller : BaseDataStreamMarshaller { - base.LooseUnmarshal(wireFormat, o, dataIn); - - ActiveMQDestination info = (ActiveMQDestination)o; - info.PhysicalName = LooseUnmarshalString(dataIn); - - } - - // - // Write a object instance to data output stream - // - public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) { - - ActiveMQDestination info = (ActiveMQDestination)o; - - base.LooseMarshal(wireFormat, o, dataOut); - LooseMarshalString(info.PhysicalName, dataOut); + // + // Un-marshal an object instance from the data input stream + // + public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) + { + base.TightUnmarshal(wireFormat, o, dataIn, bs); + + ActiveMQDestination info = (ActiveMQDestination)o; + info.PhysicalName = TightUnmarshalString(dataIn, bs); + } + + // + // Write the booleans that this object uses to a BooleanStream + // + public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) + { + ActiveMQDestination info = (ActiveMQDestination)o; + + int rc = base.TightMarshal1(wireFormat, o, bs); + rc += TightMarshalString1(info.PhysicalName, bs); + + return rc + 0; + } + + // + // Write a object instance to data output stream + // + public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) + { + base.TightMarshal2(wireFormat, o, dataOut, bs); + + ActiveMQDestination info = (ActiveMQDestination)o; + TightMarshalString2(info.PhysicalName, dataOut, bs); + } + + // + // Un-marshal an object instance from the data input stream + // + public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) + { + base.LooseUnmarshal(wireFormat, o, dataIn); + + ActiveMQDestination info = (ActiveMQDestination)o; + info.PhysicalName = LooseUnmarshalString(dataIn); + } + + // + // Write a object instance to data output stream + // + public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) + { + + ActiveMQDestination info = (ActiveMQDestination)o; + + base.LooseMarshal(wireFormat, o, dataOut); + LooseMarshalString(info.PhysicalName, dataOut); + } } - } } Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V2/ActiveMQMapMessageMarshaller.cs URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V2/ActiveMQMapMessageMarshaller.cs?rev=799407&r1=799406&r2=799407&view=diff ============================================================================== --- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V2/ActiveMQMapMessageMarshaller.cs (original) +++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V2/ActiveMQMapMessageMarshaller.cs Thu Jul 30 19:06:34 2009 @@ -15,11 +15,15 @@ * limitations under the License. */ -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-core module -// +/* + * + * Marshaler code for OpenWire format for ActiveMQMapMessage + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the Java Classes + * in the nms-activemq-openwire-generator module + * + */ using System; using System.Collections; @@ -31,67 +35,69 @@ namespace Apache.NMS.ActiveMQ.OpenWire.V2 { - /// - /// Marshalling code for Open Wire Format for ActiveMQMapMessage - /// - class ActiveMQMapMessageMarshaller : ActiveMQMessageMarshaller - { - - - public override DataStructure CreateObject() - { - return new ActiveMQMapMessage(); - } - - public override byte GetDataStructureType() - { - return ActiveMQMapMessage.ID_ActiveMQMapMessage; - } - - // - // Un-marshal an object instance from the data input stream - // - public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) - { - base.TightUnmarshal(wireFormat, o, dataIn, bs); - - } - - // - // Write the booleans that this object uses to a BooleanStream - // - public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) { - ActiveMQMapMessage info = (ActiveMQMapMessage)o; - - int rc = base.TightMarshal1(wireFormat, info, bs); - - return rc + 0; - } - - // - // Write a object instance to data output stream - // - public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) { - base.TightMarshal2(wireFormat, o, dataOut, bs); - - } - - // - // Un-marshal an object instance from the data input stream - // - public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) + /// + /// Marshalling code for Open Wire Format for ActiveMQMapMessage + /// + class ActiveMQMapMessageMarshaller : ActiveMQMessageMarshaller { - base.LooseUnmarshal(wireFormat, o, dataIn); - - } - - // - // Write a object instance to data output stream - // - public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) { - - base.LooseMarshal(wireFormat, o, dataOut); + /// + /// Creates an instance of the Object that this marshaller handles. + /// + public override DataStructure CreateObject() + { + return new ActiveMQMapMessage(); + } + + /// + /// Returns the type code for the Object that this Marshaller handles.. + /// + public override byte GetDataStructureType() + { + return ActiveMQMapMessage.ID_ACTIVEMQMAPMESSAGE; + } + + // + // Un-marshal an object instance from the data input stream + // + public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) + { + base.TightUnmarshal(wireFormat, o, dataIn, bs); + } + + // + // Write the booleans that this object uses to a BooleanStream + // + public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) + { + + int rc = base.TightMarshal1(wireFormat, o, bs); + + return rc + 0; + } + + // + // Write a object instance to data output stream + // + public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) + { + base.TightMarshal2(wireFormat, o, dataOut, bs); + } + + // + // Un-marshal an object instance from the data input stream + // + public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) + { + base.LooseUnmarshal(wireFormat, o, dataIn); + } + + // + // Write a object instance to data output stream + // + public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) + { + base.LooseMarshal(wireFormat, o, dataOut); + } } - } } Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V2/ActiveMQMessageMarshaller.cs URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V2/ActiveMQMessageMarshaller.cs?rev=799407&r1=799406&r2=799407&view=diff ============================================================================== --- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V2/ActiveMQMessageMarshaller.cs (original) +++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/V2/ActiveMQMessageMarshaller.cs Thu Jul 30 19:06:34 2009 @@ -15,11 +15,15 @@ * limitations under the License. */ -// -// NOTE!: This file is autogenerated - do not modify! -// if you need to make a change, please see the Groovy scripts in the -// activemq-core module -// +/* + * + * Marshaler code for OpenWire format for ActiveMQMessage + * + * NOTE!: This file is auto generated - do not modify! + * if you need to make a change, please see the Java Classes + * in the nms-activemq-openwire-generator module + * + */ using System; using System.Collections; @@ -31,93 +35,96 @@ namespace Apache.NMS.ActiveMQ.OpenWire.V2 { - /// - /// Marshalling code for Open Wire Format for ActiveMQMessage - /// - class ActiveMQMessageMarshaller : MessageMarshaller - { - - - public override DataStructure CreateObject() - { - return new ActiveMQMessage(); - } - - public override byte GetDataStructureType() - { - return ActiveMQMessage.ID_ActiveMQMessage; - } - - // - // Un-marshal an object instance from the data input stream - // - public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) + /// + /// Marshalling code for Open Wire Format for ActiveMQMessage + /// + class ActiveMQMessageMarshaller : MessageMarshaller { - base.TightUnmarshal(wireFormat, o, dataIn, bs); - - ActiveMQMessage info = (ActiveMQMessage)o; + /// + /// Creates an instance of the Object that this marshaller handles. + /// + public override DataStructure CreateObject() + { + return new ActiveMQMessage(); + } - info.BeforeUnmarshall(wireFormat); + /// + /// Returns the type code for the Object that this Marshaller handles.. + /// + public override byte GetDataStructureType() + { + return ActiveMQMessage.ID_ACTIVEMQMESSAGE; + } + // + // Un-marshal an object instance from the data input stream + // + public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs) + { + base.TightUnmarshal(wireFormat, o, dataIn, bs); - info.AfterUnmarshall(wireFormat); - - } + ActiveMQMessage info = (ActiveMQMessage)o; - // - // Write the booleans that this object uses to a BooleanStream - // - public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) { - ActiveMQMessage info = (ActiveMQMessage)o; + info.BeforeUnmarshall(wireFormat); - info.BeforeMarshall(wireFormat); - int rc = base.TightMarshal1(wireFormat, info, bs); + info.AfterUnmarshall(wireFormat); + } - return rc + 0; - } + // + // Write the booleans that this object uses to a BooleanStream + // + public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) + { + ActiveMQMessage info = (ActiveMQMessage)o; - // - // Write a object instance to data output stream - // - public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) { - base.TightMarshal2(wireFormat, o, dataOut, bs); + info.BeforeMarshall(wireFormat); - ActiveMQMessage info = (ActiveMQMessage)o; + int rc = base.TightMarshal1(wireFormat, o, bs); - info.AfterMarshall(wireFormat); + return rc + 0; + } - } + // + // Write a object instance to data output stream + // + public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) + { + base.TightMarshal2(wireFormat, o, dataOut, bs); - // - // Un-marshal an object instance from the data input stream - // - public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) - { - base.LooseUnmarshal(wireFormat, o, dataIn); + ActiveMQMessage info = (ActiveMQMessage)o; - ActiveMQMessage info = (ActiveMQMessage)o; + info.AfterMarshall(wireFormat); + } - info.BeforeUnmarshall(wireFormat); + // + // Un-marshal an object instance from the data input stream + // + public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn) + { + base.LooseUnmarshal(wireFormat, o, dataIn); + ActiveMQMessage info = (ActiveMQMessage)o; - info.AfterUnmarshall(wireFormat); + info.BeforeUnmarshall(wireFormat); - } - // - // Write a object instance to data output stream - // - public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) { + info.AfterUnmarshall(wireFormat); + } - ActiveMQMessage info = (ActiveMQMessage)o; + // + // Write a object instance to data output stream + // + public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut) + { - info.BeforeMarshall(wireFormat); + ActiveMQMessage info = (ActiveMQMessage)o; - base.LooseMarshal(wireFormat, o, dataOut); + info.BeforeMarshall(wireFormat); - info.AfterMarshall(wireFormat); + base.LooseMarshal(wireFormat, o, dataOut); + info.AfterMarshall(wireFormat); + } } - } }