Class AmqpValue

  • All Implemented Interfaces:
    SectionIF

    public class AmqpValue
    extends AMQPType
    implements SectionIF

    An amqp-value section contains a single AMQP value.

    Version:
    AMQP Version v100. Generation Date: Wed Apr 18 14:09:32 CEST 2012
    Author:
    IIT Software GmbH, Bremen/Germany, (c) 2012, All Rights Reserved
    • Constructor Detail

      • AmqpValue

        public AmqpValue​(AMQPType initValue)
        Constructs a AmqpValue.
        Parameters:
        initValue - initial value
    • Method Detail

      • getValue

        public AMQPType getValue()
        Returns the value of this AmqpValue.
        Returns:
        value
      • accept

        public void accept​(SectionVisitor visitor)
        Accept method for a Section visitor.
        Specified by:
        accept in interface SectionIF
        Parameters:
        visitor - Section visitor
      • hasDescriptor

        public boolean hasDescriptor()
        Return whether this AmqpValue has a descriptor
        Overrides:
        hasDescriptor in class AMQPType
        Returns:
        true/false
      • writeContent

        public void writeContent​(java.io.DataOutput out)
                          throws java.io.IOException
        Description copied from class: AMQPType
        Write the content of this type to a DataOutput.
        Overrides:
        writeContent in class AMQPType
        Parameters:
        out - DataOutput
        Throws:
        java.io.IOException - on error
      • getPredictedSize

        public int getPredictedSize()
        Returns the predicted size of this AmqpValue. The predicted size may be greater than the actual size but it can never be less.
        Specified by:
        getPredictedSize in interface SectionIF
        Overrides:
        getPredictedSize in class AMQPType
        Returns:
        predicted size
      • readContent

        public void readContent​(java.io.DataInput in)
                         throws java.io.IOException
        Description copied from class: AMQPType
        Read the content of this type out of a DataInput.
        Specified by:
        readContent in class AMQPType
        Parameters:
        in - DataInput
        Throws:
        java.io.IOException - on error
      • getValueString

        public java.lang.String getValueString()
        Description copied from class: AMQPType
        Returns the value string representation of the type.
        Specified by:
        getValueString in interface SectionIF
        Specified by:
        getValueString in class AMQPType
        Returns:
        value string
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class AMQPType