Class AmqpValue
- java.lang.Object
-
- com.swiftmq.amqp.v100.types.AMQPType
-
- com.swiftmq.amqp.v100.generated.messaging.message_format.AmqpValue
-
-
Field Summary
Fields Modifier and Type Field Description AMQPDescribedConstructor
codeConstructor
static long
DESCRIPTOR_CODE
static java.lang.String
DESCRIPTOR_NAME
AMQPDescribedConstructor
nameConstructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(SectionVisitor visitor)
Accept method for a Section visitor.int
getPredictedSize()
Returns the predicted size of this AmqpValue.AMQPType
getValue()
Returns the value of this AmqpValue.java.lang.String
getValueString()
Returns the value string representation of the type.boolean
hasDescriptor()
Return whether this AmqpValue has a descriptorvoid
readContent(java.io.DataInput in)
Read the content of this type out of a DataInput.java.lang.String
toString()
void
writeContent(java.io.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 Detail
-
DESCRIPTOR_NAME
public static java.lang.String DESCRIPTOR_NAME
-
DESCRIPTOR_CODE
public static long DESCRIPTOR_CODE
-
codeConstructor
public AMQPDescribedConstructor codeConstructor
-
nameConstructor
public AMQPDescribedConstructor nameConstructor
-
-
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.
-
hasDescriptor
public boolean hasDescriptor()
Return whether this AmqpValue has a descriptor- Overrides:
hasDescriptor
in classAMQPType
- 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 classAMQPType
- 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 interfaceSectionIF
- Overrides:
getPredictedSize
in classAMQPType
- 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 classAMQPType
- 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 interfaceSectionIF
- Specified by:
getValueString
in classAMQPType
- Returns:
- value string
-
-