From 6f3fbc6e525e9291bb00312f3e32d71c082baf60 Mon Sep 17 00:00:00 2001 From: Stephen Vinoski Date: Sat, 18 Nov 2006 03:48:15 +0000 Subject: complete bringing initial maven work to trunk git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@476431 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/java/common/src/main/xsl/java.xsl | 250 +++++++++++++++++++++++++++++++++ 1 file changed, 250 insertions(+) create mode 100644 qpid/java/common/src/main/xsl/java.xsl (limited to 'qpid/java/common/src/main/xsl/java.xsl') diff --git a/qpid/java/common/src/main/xsl/java.xsl b/qpid/java/common/src/main/xsl/java.xsl new file mode 100644 index 0000000000..685a9a27ed --- /dev/null +++ b/qpid/java/common/src/main/xsl/java.xsl @@ -0,0 +1,250 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + wrote + + + + + + + + + + + + +package org.apache.qpid.framing; + +import org.apache.mina.common.ByteBuffer; +import org.apache.qpid.framing.AMQFrame; +import org.apache.qpid.framing.AMQFrameDecodingException; +import org.apache.qpid.framing.AMQMethodBody; +import org.apache.qpid.framing.EncodableAMQDataBlock; +import org.apache.qpid.framing.EncodingUtils; +import org.apache.qpid.framing.FieldTable; + +/** + * This class is autogenerated, do not modify. [From ] + */ +public class extends AMQMethodBody implements EncodableAMQDataBlock +{ + public static final int CLASS_ID = ; + public static final int METHOD_ID = ; + + + public + + ; + + + protected int getClazz() + { + return ; + } + + protected int getMethod() + { + return ; + } + + protected int getBodySize() + { + + + return + + + + + + + ; + + return 0; + + } + + protected void writeMethodPayload(ByteBuffer buffer) + { + + + ; + + + EncodingUtils.writeBooleans(buffer, new boolean[]{ + }); + + + } + + public void populateMethodBodyFromBuffer(ByteBuffer buffer) throws AMQFrameDecodingException + { + + ; + + } + + public String toString() + { + StringBuffer buf = new StringBuffer(super.toString()); + + buf.append(" : ").append(); + + return buf.toString(); + } + + public static AMQFrame createAMQFrame(int channelId, ) + { + body = new (); + + ; + + AMQFrame frame = new AMQFrame(); + frame.channel = channelId; + frame.bodyFrame = body; + return frame; + } +} + + + + Matching root for registry mode! + + + + + +Wrote MethodBodyDecoderRegistry.java + + + +package org.apache.qpid.framing; + +import java.util.Map; +import java.util.HashMap; +import org.apache.log4j.Logger; +import org.apache.qpid.AMQException; +import org.apache.qpid.framing.AMQFrameDecodingException; +import org.apache.qpid.framing.AMQMethodBody; + +/** + * This class is autogenerated, do not modify. + */ +public final class MethodBodyDecoderRegistry +{ + private static final Logger _log = Logger.getLogger(MethodBodyDecoderRegistry.class); + + private static final Map _classMethodProductToMethodBodyMap = new HashMap(); + + static + { + + ; + + } + + public static AMQMethodBody get(int clazz, int method) throws AMQFrameDecodingException + { + Class bodyClass = (Class) _classMethodProductToMethodBodyMap.get(new Integer(clazz * 1000 + method)); + if (bodyClass != null) + { + try + { + return (AMQMethodBody) bodyClass.newInstance(); + } + catch (Exception e) + { + throw new AMQFrameDecodingException(_log, + "Unable to instantiate body class for class " + clazz + " and method " + method + ": " + e, e); + } + } + else + { + throw new AMQFrameDecodingException(_log, + "Unable to find a suitable decoder for class " + clazz + " and method " + method); + } + } +} + + + + + + + + wrote + + + +package org.apache.qpid.framing; + +import java.util.Map; + +/** + * This class is autogenerated, do not modify. [From ] + */ +class +{ + static void register(Map map) + { + + map.put(new Integer( + + * 1000 + + + ), + ); + + } +} + + + + + + -- cgit v1.2.1