public final class LocalMessageType extends MessageType
EMessageObject
sub-classes which are annotated with
ELocalOnly. This means that the
message will not be serialized for remote transmission but
instead is used only within a JVM. Because of this, local
message fields are not collected. If the underlying type is
a request message, then the supported reply message types are
collected.MessageType.MessageFieldBUILD_INNER_CLASS, BUILDER_METHOD, mFields, mReplyClasses, mSubject, PUBLIC_FINAL, PUBLIC_STATIC, SUBJECT_FIELDADDRESS_TYPE, ARRAY_SUFFIX, CHARSET, CLASS_TYPE, EMPTY_STRING, FIELD_MASK_SIZE, INDENT, INDENT1, KEY_TYPE, MAX_ARRAY_SIZE, MAX_FIELDS, MAX_FILE_NAME_LENGTH, MAX_STRING_LENGTH, mBuiltinFlag, mClass, mDefaultValue, mSize, sClasses, sCompiledClasses, STRING_TYPE, VARIABLE_SIZE| Modifier and Type | Method and Description |
|---|---|
protected void |
createDeserializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output,
boolean useBuilder)
Does nothing since local-only message objects are not
serialized or de-serialized.
|
protected void |
createSerializer(MessageType.MessageField field,
String fieldName,
String indent,
Formatter output)
Does nothing since local-only message objects are not
serialized or de-serialized.
|
Object |
deserialize(ByteBuffer buffer)
Does nothing since local-only message objects are not
serialized or de-serialized.
|
void |
serialize(Object o,
ByteBuffer buffer)
Does nothing since local-only message objects are not
serialized or de-serialized.
|
deserializeFields, fields, findFields, isValidReply, numberFields, replyTypes, serializeFields, subject, valuescompareTo, dataClass, dataClassName, defaultValue, equals, fields, findCharset, findType, hashCode, isArray, isBuiltin, isEnum, isInstance, isLocalOnly, isMessage, isPrimitive, replyClasses, size, toStringpublic void serialize(Object o, ByteBuffer buffer) throws BufferOverflowException
serialize in class DataTypeo - serialize this message object.buffer - place serialized message object into this
buffer.BufferOverflowException - is never thrown since no data is written to
buffer.UnsupportedOperationException - since this operation is not supported for local-only
message objects.public Object deserialize(ByteBuffer buffer) throws BufferUnderflowException, ValidationException
deserialize in class DataTypebuffer - read on serialized message from this buffer.BufferUnderflowException - is never thrown since no data is read from buffer.ValidationException - if never thrown since no message object is de-serialized.UnsupportedOperationException - since this operation is not supported for local-only
message objects.protected void createSerializer(MessageType.MessageField field, String fieldName, String indent, Formatter output)
createSerializer in class DataTypefield - generate serializer code for this field.fieldName - serialized message field.indent - indent generated code by this amount.output - place generated code into this formatter.UnsupportedOperationException - since this operation is not supported for local-only
message objects.protected void createDeserializer(MessageType.MessageField field, String fieldName, String indent, Formatter output, boolean useBuilder)
createDeserializer in class DataTypefield - generate de-serializer code for this field.fieldName - field name.indent - indent generated code by this amount.output - place generated code into this formatter.useBuilder - if true place de-serialized
message object into builder; otherwise into a local
variable.UnsupportedOperationException - since this operation is not supported for local-only
message objects.Copyright © 2019. All rights reserved.