Class AmqpValue
java.lang.Object
com.swiftmq.amqp.v100.types.AMQPType
com.swiftmq.amqp.v100.generated.messaging.message_format.AmqpValue
- All Implemented Interfaces:
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(SectionVisitor visitor) Accept method for a Section visitor.int
Returns the predicted size of this AmqpValue.getValue()
Returns the value of this AmqpValue.Returns the value string representation of the type.boolean
Return whether this AmqpValue has a descriptorvoid
readContent
(DataInput in) Read the content of this type out of a DataInput.toString()
void
writeContent
(DataOutput out) Write the content of this type to a DataOutput.Methods inherited from class com.swiftmq.amqp.v100.types.AMQPType
getCode, getConstructor, getName, isWriteCode, resetConstructor, setCode, setConstructor, setWriteCode
-
Field Details
-
DESCRIPTOR_NAME
-
DESCRIPTOR_CODE
public static long DESCRIPTOR_CODE -
codeConstructor
-
nameConstructor
-
-
Constructor Details
-
AmqpValue
Constructs a AmqpValue.- Parameters:
initValue
- initial value
-
-
Method Details
-
getValue
Returns the value of this AmqpValue.- Returns:
- value
-
accept
Accept method for a Section visitor. -
hasDescriptor
public boolean hasDescriptor()Return whether this AmqpValue has a descriptor- Overrides:
hasDescriptor
in classAMQPType
- Returns:
- true/false
-
writeContent
Description copied from class:AMQPType
Write the content of this type to a DataOutput.- Overrides:
writeContent
in classAMQPType
- 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 interfaceSectionIF
- Overrides:
getPredictedSize
in classAMQPType
- Returns:
- predicted size
-
readContent
Description copied from class:AMQPType
Read the content of this type out of a DataInput.- Specified by:
readContent
in classAMQPType
- Parameters:
in
- DataInput- Throws:
IOException
- on error
-
getValueString
Description copied from class:AMQPType
Returns the value string representation of the type.- Specified by:
getValueString
in interfaceSectionIF
- Specified by:
getValueString
in classAMQPType
- Returns:
- value string
-
toString
-