java.lang.Object
com.swiftmq.amqp.v100.types.AMQPType
com.swiftmq.amqp.v100.generated.messaging.message_format.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
  • Field Details

  • Constructor Details

    • AmqpValue

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

    • 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(DataOutput out) throws IOException
      Description copied from class: AMQPType
      Write the content of this type to a DataOutput.
      Overrides:
      writeContent in class AMQPType
      Parameters:
      out - DataOutput
      Throws:
      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(DataInput in) throws 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:
      IOException - on error
    • getValueString

      public 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 String toString()
      Overrides:
      toString in class AMQPType