activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cmacn...@apache.org
Subject svn commit: r909712 - in /activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src: handcoded/org/apache/activemq/amqp/generator/handcoded/ handcoded/org/apache/activemq/amqp/generator/handcoded/marshaller/ handcoded/org/apache/activemq/amqp/...
Date Sat, 13 Feb 2010 03:50:37 GMT
Author: cmacnaug
Date: Sat Feb 13 03:50:35 2010
New Revision: 909712

URL: http://svn.apache.org/viewvc?rev=909712&view=rev
Log:
Adding auto generation warnings to generated source.

Modified:
    activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/AmqpCommand.java
    activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/AmqpFrame.java
    activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/AmqpFramingException.java
    activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/AmqpSessionFrame.java
    activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/BitUtils.java
    activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/marshaller/AmqpEncodingError.java
    activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/marshaller/AmqpVersion.java
    activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/marshaller/Encoded.java
    activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/marshaller/Encoding.java
    activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/marshaller/UnexpectedTypeException.java
    activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/marshaller/v1_0_0/BaseEncoder.java
    activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/marshaller/v1_0_0/DescribedTypeMarshaller.java
    activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/marshaller/v1_0_0/Encoder.java
    activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/types/AmqpBuffer.java
    activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/types/AmqpType.java
    activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/types/IAmqpList.java
    activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/types/IAmqpMap.java
    activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/main/java/org/apache/activemq/amqp/generator/AmqpClass.java
    activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/main/java/org/apache/activemq/amqp/generator/Generator.java
    activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/main/java/org/apache/activemq/amqp/generator/Utils.java

Modified: activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/AmqpCommand.java
URL: http://svn.apache.org/viewvc/activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/AmqpCommand.java?rev=909712&r1=909711&r2=909712&view=diff
==============================================================================
--- activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/AmqpCommand.java
(original)
+++ activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/AmqpCommand.java
Sat Feb 13 03:50:35 2010
@@ -16,6 +16,10 @@
  */
 package org.apache.activemq.amqp.generator.handcoded;
 
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
+//!!!!!!!!THIS CLASS IS AUTOGENERATED DO NOT MODIFY DIRECTLY!!!!!!!!!!!!//
+//!!!!!!Instead, modify the generator in activemq-amqp-generator!!!!!!!!//
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
 public interface AmqpCommand {
 
     public void handle(AmqpCommandHandler handler) throws Exception;

Modified: activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/AmqpFrame.java
URL: http://svn.apache.org/viewvc/activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/AmqpFrame.java?rev=909712&r1=909711&r2=909712&view=diff
==============================================================================
--- activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/AmqpFrame.java
(original)
+++ activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/AmqpFrame.java
Sat Feb 13 03:50:35 2010
@@ -128,7 +128,10 @@
  * are defined in the "commands"and "controls" sections respectively.
  * </p>
  */
-
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
+//!!!!!!!!THIS CLASS IS AUTOGENERATED DO NOT MODIFY DIRECTLY!!!!!!!!!!!!//
+//!!!!!!Instead, modify the generator in activemq-amqp-generator!!!!!!!!//
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
 public class AmqpFrame {
 
     protected byte[] frameHeader;

Modified: activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/AmqpFramingException.java
URL: http://svn.apache.org/viewvc/activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/AmqpFramingException.java?rev=909712&r1=909711&r2=909712&view=diff
==============================================================================
--- activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/AmqpFramingException.java
(original)
+++ activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/AmqpFramingException.java
Sat Feb 13 03:50:35 2010
@@ -18,6 +18,10 @@
 
 import java.io.IOException;
 
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
+//!!!!!!!!THIS CLASS IS AUTOGENERATED DO NOT MODIFY DIRECTLY!!!!!!!!!!!!//
+//!!!!!!Instead, modify the generator in activemq-amqp-generator!!!!!!!!//
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
 public class AmqpFramingException extends IOException{
 
     private static final long serialVersionUID = 1L;

Modified: activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/AmqpSessionFrame.java
URL: http://svn.apache.org/viewvc/activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/AmqpSessionFrame.java?rev=909712&r1=909711&r2=909712&view=diff
==============================================================================
--- activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/AmqpSessionFrame.java
(original)
+++ activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/AmqpSessionFrame.java
Sat Feb 13 03:50:35 2010
@@ -16,6 +16,10 @@
  */
 package org.apache.activemq.amqp.generator.handcoded;
 
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
+//!!!!!!!!THIS CLASS IS AUTOGENERATED DO NOT MODIFY DIRECTLY!!!!!!!!!!!!//
+//!!!!!!Instead, modify the generator in activemq-amqp-generator!!!!!!!!//
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
 public class AmqpSessionFrame extends AmqpFrame {
 
     private static final byte COMMAND_MASK = 0x01;

Modified: activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/BitUtils.java
URL: http://svn.apache.org/viewvc/activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/BitUtils.java?rev=909712&r1=909711&r2=909712&view=diff
==============================================================================
--- activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/BitUtils.java
(original)
+++ activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/BitUtils.java
Sat Feb 13 03:50:35 2010
@@ -18,6 +18,10 @@
 
 import java.math.BigInteger;
 
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
+//!!!!!!!!THIS CLASS IS AUTOGENERATED DO NOT MODIFY DIRECTLY!!!!!!!!!!!!//
+//!!!!!!Instead, modify the generator in activemq-amqp-generator!!!!!!!!//
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
 public class BitUtils {
     
     public static final void setUByte(final byte[] target, final int offset, final short
value) {

Modified: activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/marshaller/AmqpEncodingError.java
URL: http://svn.apache.org/viewvc/activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/marshaller/AmqpEncodingError.java?rev=909712&r1=909711&r2=909712&view=diff
==============================================================================
--- activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/marshaller/AmqpEncodingError.java
(original)
+++ activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/marshaller/AmqpEncodingError.java
Sat Feb 13 03:50:35 2010
@@ -16,6 +16,10 @@
  */
 package org.apache.activemq.amqp.generator.handcoded.marshaller;
 
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
+//!!!!!!!!THIS CLASS IS AUTOGENERATED DO NOT MODIFY DIRECTLY!!!!!!!!!!!!//
+//!!!!!!Instead, modify the generator in activemq-amqp-generator!!!!!!!!//
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
 public class AmqpEncodingError extends Error {
     private static final long serialVersionUID = 1L;
 

Modified: activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/marshaller/AmqpVersion.java
URL: http://svn.apache.org/viewvc/activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/marshaller/AmqpVersion.java?rev=909712&r1=909711&r2=909712&view=diff
==============================================================================
--- activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/marshaller/AmqpVersion.java
(original)
+++ activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/marshaller/AmqpVersion.java
Sat Feb 13 03:50:35 2010
@@ -18,6 +18,10 @@
 
 import org.apache.activemq.amqp.generator.handcoded.BitUtils;
 
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
+//!!!!!!!!THIS CLASS IS AUTOGENERATED DO NOT MODIFY DIRECTLY!!!!!!!!!!!!//
+//!!!!!!Instead, modify the generator in activemq-amqp-generator!!!!!!!!//
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
 public class AmqpVersion {
 
     private static final short PROTOCOL_ID = 0;

Modified: activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/marshaller/Encoded.java
URL: http://svn.apache.org/viewvc/activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/marshaller/Encoded.java?rev=909712&r1=909711&r2=909712&view=diff
==============================================================================
--- activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/marshaller/Encoded.java
(original)
+++ activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/marshaller/Encoded.java
Sat Feb 13 03:50:35 2010
@@ -22,6 +22,10 @@
 import org.apache.activemq.amqp.protocol.marshaller.AmqpEncodingError;
 import org.apache.activemq.util.buffer.Buffer;
 
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
+//!!!!!!!!THIS CLASS IS AUTOGENERATED DO NOT MODIFY DIRECTLY!!!!!!!!!!!!//
+//!!!!!!Instead, modify the generator in activemq-amqp-generator!!!!!!!!//
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
 public interface Encoded<E> extends Encoding {
 
     public boolean isNull();

Modified: activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/marshaller/Encoding.java
URL: http://svn.apache.org/viewvc/activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/marshaller/Encoding.java?rev=909712&r1=909711&r2=909712&view=diff
==============================================================================
--- activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/marshaller/Encoding.java
(original)
+++ activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/marshaller/Encoding.java
Sat Feb 13 03:50:35 2010
@@ -16,6 +16,10 @@
  */
 package org.apache.activemq.amqp.generator.handcoded.marshaller;
 
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
+//!!!!!!!!THIS CLASS IS AUTOGENERATED DO NOT MODIFY DIRECTLY!!!!!!!!!!!!//
+//!!!!!!Instead, modify the generator in activemq-amqp-generator!!!!!!!!//
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
 public interface Encoding {
     
     public AmqpVersion getEncodingVersion();

Modified: activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/marshaller/UnexpectedTypeException.java
URL: http://svn.apache.org/viewvc/activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/marshaller/UnexpectedTypeException.java?rev=909712&r1=909711&r2=909712&view=diff
==============================================================================
--- activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/marshaller/UnexpectedTypeException.java
(original)
+++ activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/marshaller/UnexpectedTypeException.java
Sat Feb 13 03:50:35 2010
@@ -16,6 +16,10 @@
  */
 package org.apache.activemq.amqp.generator.handcoded.marshaller;
 
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
+//!!!!!!!!THIS CLASS IS AUTOGENERATED DO NOT MODIFY DIRECTLY!!!!!!!!!!!!//
+//!!!!!!Instead, modify the generator in activemq-amqp-generator!!!!!!!!//
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
 public class UnexpectedTypeException extends AmqpEncodingError {
 
     private static final long serialVersionUID = 4306936382810257248L;

Modified: activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/marshaller/v1_0_0/BaseEncoder.java
URL: http://svn.apache.org/viewvc/activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/marshaller/v1_0_0/BaseEncoder.java?rev=909712&r1=909711&r2=909712&view=diff
==============================================================================
--- activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/marshaller/v1_0_0/BaseEncoder.java
(original)
+++ activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/marshaller/v1_0_0/BaseEncoder.java
Sat Feb 13 03:50:35 2010
@@ -30,6 +30,10 @@
 import org.apache.activemq.amqp.generator.handcoded.marshaller.AmqpEncodingError;
 import org.apache.activemq.util.buffer.Buffer;
 
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
+//!!!!!!!!THIS CLASS IS AUTOGENERATED DO NOT MODIFY DIRECTLY!!!!!!!!!!!!//
+//!!!!!!Instead, modify the generator in activemq-amqp-generator!!!!!!!!//
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
 class BaseEncoder implements PrimitiveEncoder {
     public final Buffer decodeBinary(Buffer encoded, int offset, int length) throws AmqpEncodingError
{
         return new Buffer(encoded.data, encoded.offset + offset, length);

Modified: activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/marshaller/v1_0_0/DescribedTypeMarshaller.java
URL: http://svn.apache.org/viewvc/activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/marshaller/v1_0_0/DescribedTypeMarshaller.java?rev=909712&r1=909711&r2=909712&view=diff
==============================================================================
--- activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/marshaller/v1_0_0/DescribedTypeMarshaller.java
(original)
+++ activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/marshaller/v1_0_0/DescribedTypeMarshaller.java
Sat Feb 13 03:50:35 2010
@@ -22,6 +22,10 @@
 
 import org.apache.activemq.amqp.generator.handcoded.types.AmqpType;
 
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
+//!!!!!!!!THIS CLASS IS AUTOGENERATED DO NOT MODIFY DIRECTLY!!!!!!!!!!!!//
+//!!!!!!Instead, modify the generator in activemq-amqp-generator!!!!!!!!//
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
 public interface DescribedTypeMarshaller<D extends AmqpType<?, ?>> {
     
     public D decodeDescribedType(AmqpType<?, ?> descriptor, DescribedBuffer buffer)
throws AmqpEncodingError;

Modified: activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/marshaller/v1_0_0/Encoder.java
URL: http://svn.apache.org/viewvc/activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/marshaller/v1_0_0/Encoder.java?rev=909712&r1=909711&r2=909712&view=diff
==============================================================================
--- activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/marshaller/v1_0_0/Encoder.java
(original)
+++ activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/marshaller/v1_0_0/Encoder.java
Sat Feb 13 03:50:35 2010
@@ -37,6 +37,10 @@
 import org.apache.activemq.amqp.generator.handcoded.types.IAmqpMap;
 import org.apache.activemq.util.buffer.Buffer;
 
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
+//!!!!!!!!THIS CLASS IS AUTOGENERATED DO NOT MODIFY DIRECTLY!!!!!!!!!!!!//
+//!!!!!!Instead, modify the generator in activemq-amqp-generator!!!!!!!!//
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
 public class Encoder extends BaseEncoder {
 
     static final Encoder SINGLETON = new Encoder();

Modified: activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/types/AmqpBuffer.java
URL: http://svn.apache.org/viewvc/activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/types/AmqpBuffer.java?rev=909712&r1=909711&r2=909712&view=diff
==============================================================================
--- activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/types/AmqpBuffer.java
(original)
+++ activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/types/AmqpBuffer.java
Sat Feb 13 03:50:35 2010
@@ -18,6 +18,10 @@
 
 import org.apache.activemq.amqp.generator.handcoded.marshaller.Encoded;
 
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
+//!!!!!!!!THIS CLASS IS AUTOGENERATED DO NOT MODIFY DIRECTLY!!!!!!!!!!!!//
+//!!!!!!Instead, modify the generator in activemq-amqp-generator!!!!!!!!//
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
 public interface AmqpBuffer<V> {
 
     public Encoded<V> getEncoded();

Modified: activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/types/AmqpType.java
URL: http://svn.apache.org/viewvc/activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/types/AmqpType.java?rev=909712&r1=909711&r2=909712&view=diff
==============================================================================
--- activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/types/AmqpType.java
(original)
+++ activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/types/AmqpType.java
Sat Feb 13 03:50:35 2010
@@ -21,6 +21,10 @@
 import org.apache.activemq.amqp.protocol.marshaller.AmqpEncodingError;
 import org.apache.activemq.amqp.protocol.marshaller.AmqpMarshaller;
 
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
+//!!!!!!!!THIS CLASS IS AUTOGENERATED DO NOT MODIFY DIRECTLY!!!!!!!!!!!!//
+//!!!!!!Instead, modify the generator in activemq-amqp-generator!!!!!!!!//
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
 public interface AmqpType<Bean, EncodedBuffer extends AmqpBuffer<?>> {
 
     public EncodedBuffer getBuffer(AmqpMarshaller marshaller) throws AmqpEncodingError;

Modified: activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/types/IAmqpList.java
URL: http://svn.apache.org/viewvc/activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/types/IAmqpList.java?rev=909712&r1=909711&r2=909712&view=diff
==============================================================================
--- activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/types/IAmqpList.java
(original)
+++ activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/types/IAmqpList.java
Sat Feb 13 03:50:35 2010
@@ -19,6 +19,10 @@
 import java.util.Iterator;
 import java.util.List;
 
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
+//!!!!!!!!THIS CLASS IS AUTOGENERATED DO NOT MODIFY DIRECTLY!!!!!!!!!!!!//
+//!!!!!!Instead, modify the generator in activemq-amqp-generator!!!!!!!!//
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
 public interface IAmqpList<E extends AmqpType<?, ?>> extends Iterable<E>
{
 
     public E get(int index);

Modified: activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/types/IAmqpMap.java
URL: http://svn.apache.org/viewvc/activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/types/IAmqpMap.java?rev=909712&r1=909711&r2=909712&view=diff
==============================================================================
--- activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/types/IAmqpMap.java
(original)
+++ activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/handcoded/org/apache/activemq/amqp/generator/handcoded/types/IAmqpMap.java
Sat Feb 13 03:50:35 2010
@@ -19,7 +19,10 @@
 import java.util.Iterator;
 import java.util.Map;
 
-
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
+//!!!!!!!!THIS CLASS IS AUTOGENERATED DO NOT MODIFY DIRECTLY!!!!!!!!!!!!//
+//!!!!!!Instead, modify the generator in activemq-amqp-generator!!!!!!!!//
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
 public interface IAmqpMap<K extends AmqpType<?, ?>, V extends AmqpType<?, ?>>
extends Iterable<Map.Entry<K, V>> {
 
     public void put(K key, V value);

Modified: activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/main/java/org/apache/activemq/amqp/generator/AmqpClass.java
URL: http://svn.apache.org/viewvc/activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/main/java/org/apache/activemq/amqp/generator/AmqpClass.java?rev=909712&r1=909711&r2=909712&view=diff
==============================================================================
--- activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/main/java/org/apache/activemq/amqp/generator/AmqpClass.java
(original)
+++ activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/main/java/org/apache/activemq/amqp/generator/AmqpClass.java
Sat Feb 13 03:50:35 2010
@@ -146,6 +146,8 @@
         } else if (label != null) {
             writeJavaComment(writer, 0, "Represents a " + label);
         }
+        
+        Utils.writeAutoGeneratedWarning(writer, 0);
 
         // We use enums for restricted types with a choice:
         if (isEnumType()) {
@@ -159,7 +161,7 @@
             } else {
                 writer.write("public interface " + typeMapping + " extends AmqpType<"
+ beanMapping + ", " + bufferMapping + ">");
             }
-            
+
             if (isList() || isMap()) {
                 writer.write(", " + valueMapping.getJavaType());
             }
@@ -573,12 +575,23 @@
                 writer.newLine();
                 writer.write(tab(4) + "}");
                 writer.newLine();
+                for (AmqpField field : fields.values()) {
+                    if (field.isRequired()) {
+                        writer.newLine();
+                        writer.write(tab(4) + "boolean saw" + capFirst(field.getName()) +
" = false;");
+                    }
+                }
                 writer.newLine();
                 int f = 0;
                 for (AmqpField field : fields.values()) {
                     AmqpClass fieldType = field.resolveAmqpFieldType();
                     writer.write(tab(4) + (f > 0 ? "else " : "") + "if (key.equals(" +
typeMapping + "." + toJavaConstant(field.getName()) + "_KEY)){");
                     writer.newLine();
+                    if (field.isRequired()) {
+                        writer.write(tab(5) + "saw" + capFirst(field.getName()) + " = true;");
+                        writer.newLine();
+                    }
+                    
                     if (fieldType.isAny()) {
                         writer.write(tab(5) + "rc.put(" + typeMapping + "." + toJavaConstant(field.getName())
+ "_KEY, AmqpMarshaller.SINGLETON.decodeType(constituents[i + 1]));");
                     } else {
@@ -596,6 +609,16 @@
                 writer.write(tab(4) + "}");
                 writer.newLine();
                 writer.write(tab(3) + "}");
+                for (AmqpField field : fields.values()) {
+                    if (field.isRequired()) {
+                        writer.newLine();
+                        writer.write(tab(3) + "if(!saw" + field.getName() + ") {");
+                        writer.newLine();
+                        writer.write(tab(4) + "throw new AmqpEncodingError(\"Missing required
field for \" + SYMBOLIC_ID + \": " + field.getName() + "\");");
+                        writer.newLine();
+                        writer.write(tab(3) + "}");
+                    }
+                }
                 writer.newLine();
                 writer.write(tab(3) + "return rc;");
                 writer.newLine();
@@ -625,11 +648,22 @@
                 writer.write(tab(4) + "}");
                 writer.newLine();
                 writer.newLine();
+                for (AmqpField field : fields.values()) {
+                    if (field.isRequired()) {
+                        writer.newLine();
+                        writer.write(tab(4) + "boolean saw" + capFirst(field.getName()) +
" = false;");
+                    }
+                }
+                writer.newLine();
                 f = 0;
                 for (AmqpField field : fields.values()) {
                     AmqpClass fieldType = field.resolveAmqpFieldType();
                     writer.write(tab(4) + (f > 0 ? "else " : "") + "if (key.equals(" +
typeMapping + "." + toJavaConstant(field.getName()) + "_KEY)){");
                     writer.newLine();
+                    if (field.isRequired()) {
+                        writer.write(tab(4) + "saw" + capFirst(field.getName()) + " = true;");
+                        writer.newLine();
+                    }
                     if (fieldType.isAny()) {
                         writer.write(tab(5) + "rc.put(" + typeMapping + "." + toJavaConstant(field.getName())
+ "_KEY, AmqpMarshaller.SINGLETON.decodeType(in));");
                     } else {
@@ -647,6 +681,16 @@
                 writer.write(tab(4) + "}");
                 writer.newLine();
                 writer.write(tab(3) + "}");
+                for (AmqpField field : fields.values()) {
+                    if (field.isRequired()) {
+                        writer.newLine();
+                        writer.write(tab(3) + "if(!saw" + field.getName() + ") {");
+                        writer.newLine();
+                        writer.write(tab(4) + "throw new AmqpEncodingError(\"Missing required
field for \" + SYMBOLIC_ID + \": " + field.getName() + "\");");
+                        writer.newLine();
+                        writer.write(tab(3) + "}");
+                    }
+                }
                 writer.newLine();
                 writer.write(tab(3) + "return rc;");
                 writer.newLine();
@@ -2045,6 +2089,7 @@
         if (writeImports(writer, generator, true)) {
             writer.newLine();
         }
+        Utils.writeAutoGeneratedWarning(writer, 0);
 
         // Write out the descriptor (for compound types):
         if (descriptor != null) {

Modified: activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/main/java/org/apache/activemq/amqp/generator/Generator.java
URL: http://svn.apache.org/viewvc/activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/main/java/org/apache/activemq/amqp/generator/Generator.java?rev=909712&r1=909711&r2=909712&view=diff
==============================================================================
--- activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/main/java/org/apache/activemq/amqp/generator/Generator.java
(original)
+++ activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/main/java/org/apache/activemq/amqp/generator/Generator.java
Sat Feb 13 03:50:35 2010
@@ -163,7 +163,7 @@
         generateMarshallerInterface();
         generateMarshaller();
         generateTypeFactory();
-        writeDefinitions();
+        generateDefinitions();
     }
 
     private void generateCommandHandler() throws IOException {
@@ -183,7 +183,7 @@
                 writer.newLine();
             }
         }
-
+        Utils.writeAutoGeneratedWarning(writer, 0);
         writer.write("public interface AmqpCommandHandler {");
         writer.newLine();
         // Generate Handler methods:
@@ -199,7 +199,7 @@
         writer.close();
     }
 
-    private void writeDefinitions() throws IOException {
+    private void generateDefinitions() throws IOException {
         String outputPackage = packagePrefix.replace(".", File.separator);
         File out = new File(outputDirectory + File.separator + outputPackage + File.separator
+ "Definitions.java");
 
@@ -210,6 +210,7 @@
         writer.newLine();
         writer.newLine();
 
+        Utils.writeAutoGeneratedWarning(writer, 0);
         writer.write("public interface Definitions {");
         writer.newLine();
         // Generate Handler methods:
@@ -242,6 +243,7 @@
         writeMarshallerImports(writer, false, imports, outputPackage);
 
         writer.newLine();
+        Utils.writeAutoGeneratedWarning(writer, 0);
         writer.write("public interface AmqpMarshaller {");
         writer.newLine();
 
@@ -304,6 +306,7 @@
         writeMarshallerImports(writer, false, imports, getMarshallerPackage());
 
         writer.newLine();
+        Utils.writeAutoGeneratedWarning(writer, 0);
         writer.write("public class AmqpMarshaller implements " + getPackagePrefix() + ".marshaller.AmqpMarshaller
{");
         writer.newLine();
 
@@ -510,6 +513,7 @@
         writer.newLine();
 
         writer.newLine();
+        Utils.writeAutoGeneratedWarning(writer, 0);
         writer.write("public interface PrimitiveEncoder {");
         writer.newLine();
 
@@ -589,6 +593,7 @@
         writer.newLine();
 
         writer.newLine();
+        Utils.writeAutoGeneratedWarning(writer, 0);
         writer.write("public class TypeFactory {");
         writer.newLine();
         

Modified: activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/main/java/org/apache/activemq/amqp/generator/Utils.java
URL: http://svn.apache.org/viewvc/activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/main/java/org/apache/activemq/amqp/generator/Utils.java?rev=909712&r1=909711&r2=909712&view=diff
==============================================================================
--- activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/main/java/org/apache/activemq/amqp/generator/Utils.java
(original)
+++ activemq/sandbox/activemq-apollo-actor/activemq-amqp-generator/src/main/java/org/apache/activemq/amqp/generator/Utils.java
Sat Feb 13 03:50:35 2010
@@ -66,6 +66,18 @@
         return hex;
     }
 
+    public static void writeAutoGeneratedWarning(BufferedWriter writer, int indent) throws
IOException {
+
+        writer.write(tab(indent) + "//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//");
+        writer.newLine();
+        writer.write(tab(indent) + "//!!!!!!!!THIS CLASS IS AUTOGENERATED DO NOT MODIFY DIRECTLY!!!!!!!!!!!!//");
+        writer.newLine();
+        writer.write(tab(indent) + "//!!!!!!Instead, modify the generator in activemq-amqp-generator!!!!!!!!//");
+        writer.newLine();
+        writer.write(tab(indent) + "//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//");
+        writer.newLine();
+    }
+
     public static void writeJavaCopyWrite(BufferedWriter writer) throws IOException {
 
         writeJavaComment(writer, 0, "Licensed to the Apache Software Foundation (ASF) under
one or more", "contributor license agreements.  See the NOTICE file distributed with",
@@ -129,11 +141,10 @@
         return rc.toArray(new String[] {});
     }
 
-    public static final String javaPackageOf(String fullName)
-    {
+    public static final String javaPackageOf(String fullName) {
         return fullName.substring(0, fullName.lastIndexOf("."));
     }
-    
+
     public static final List<File> findFiles(File dir) {
         LinkedList<File> rc = new LinkedList<File>();
         for (File file : dir.listFiles()) {
@@ -143,7 +154,7 @@
                 rc.addAll(findFiles(file));
             }
         }
-        
+
         return rc;
     }
 



Mime
View raw message