Package org.teamapps.protocol.schema
Class AbstractMessageProperty
java.lang.Object
org.teamapps.protocol.schema.AbstractMessageProperty
- All Implemented Interfaces:
MessageProperty
public class AbstractMessageProperty extends java.lang.Object implements MessageProperty
-
Constructor Summary
Constructors Constructor Description AbstractMessageProperty(io.netty.buffer.ByteBuf buf, MessageModel model, FileProvider fileProvider, PojoObjectDecoderRegistry decoderRegistry)AbstractMessageProperty(java.io.DataInputStream dis, MessageModel model, FileProvider fileProvider, PojoObjectDecoderRegistry decoderRegistry)AbstractMessageProperty(AbstractMessageProperty property, PojoObjectDecoderRegistry decoderRegistry)AbstractMessageProperty(PropertyDefinition propertyDefinition, java.lang.Object value) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
AbstractMessageProperty
-
AbstractMessageProperty
public AbstractMessageProperty(AbstractMessageProperty property, PojoObjectDecoderRegistry decoderRegistry) -
AbstractMessageProperty
public AbstractMessageProperty(java.io.DataInputStream dis, MessageModel model, FileProvider fileProvider, PojoObjectDecoderRegistry decoderRegistry) throws java.io.IOException- Throws:
java.io.IOException
-
AbstractMessageProperty
public AbstractMessageProperty(io.netty.buffer.ByteBuf buf, MessageModel model, FileProvider fileProvider, PojoObjectDecoderRegistry decoderRegistry) throws java.io.IOException- Throws:
java.io.IOException
-
-
Method Details
-
write
- Specified by:
writein interfaceMessageProperty- Throws:
java.io.IOException
-
write
- Specified by:
writein interfaceMessageProperty- Throws:
java.io.IOException
-
toBytes
public byte[] toBytes() throws java.io.IOException- Specified by:
toBytesin interfaceMessageProperty- Throws:
java.io.IOException
-
toBytes
- Specified by:
toBytesin interfaceMessageProperty- Throws:
java.io.IOException
-
getPropertyDefinition
- Specified by:
getPropertyDefinitionin interfaceMessageProperty
-
getReferencedObject
- Specified by:
getReferencedObjectin interfaceMessageProperty
-
getReferencedObjects
- Specified by:
getReferencedObjectsin interfaceMessageProperty
-
getReferencedObjectAsType
- Specified by:
getReferencedObjectAsTypein interfaceMessageProperty
-
getReferencedObjectsAsType
- Specified by:
getReferencedObjectsAsTypein interfaceMessageProperty
-
getBooleanProperty
public boolean getBooleanProperty()- Specified by:
getBooleanPropertyin interfaceMessageProperty
-
getByteProperty
public byte getByteProperty()- Specified by:
getBytePropertyin interfaceMessageProperty
-
getIntProperty
public int getIntProperty()- Specified by:
getIntPropertyin interfaceMessageProperty
-
getLongProperty
public long getLongProperty()- Specified by:
getLongPropertyin interfaceMessageProperty
-
getFloatProperty
public float getFloatProperty()- Specified by:
getFloatPropertyin interfaceMessageProperty
-
getDoubleProperty
public double getDoubleProperty()- Specified by:
getDoublePropertyin interfaceMessageProperty
-
getStringProperty
public java.lang.String getStringProperty()- Specified by:
getStringPropertyin interfaceMessageProperty
-
getFileProperty
- Specified by:
getFilePropertyin interfaceMessageProperty
-
getFilePropertyAsFile
public java.io.File getFilePropertyAsFile()- Specified by:
getFilePropertyAsFilein interfaceMessageProperty
-
getFilePropertyAsFileName
public java.lang.String getFilePropertyAsFileName()- Specified by:
getFilePropertyAsFileNamein interfaceMessageProperty
-
getFilePropertyAsFileLength
public long getFilePropertyAsFileLength()- Specified by:
getFilePropertyAsFileLengthin interfaceMessageProperty
-
getBitSetProperty
public java.util.BitSet getBitSetProperty()- Specified by:
getBitSetPropertyin interfaceMessageProperty
-
getByteArrayProperty
public byte[] getByteArrayProperty()- Specified by:
getByteArrayPropertyin interfaceMessageProperty
-
getIntArrayProperty
public int[] getIntArrayProperty()- Specified by:
getIntArrayPropertyin interfaceMessageProperty
-
getLongArrayProperty
public long[] getLongArrayProperty()- Specified by:
getLongArrayPropertyin interfaceMessageProperty
-
getFloatArrayProperty
public float[] getFloatArrayProperty()- Specified by:
getFloatArrayPropertyin interfaceMessageProperty
-
getDoubleArrayProperty
public double[] getDoubleArrayProperty()- Specified by:
getDoubleArrayPropertyin interfaceMessageProperty
-
getStringArrayProperty
public java.lang.String[] getStringArrayProperty()- Specified by:
getStringArrayPropertyin interfaceMessageProperty
-
getAsString
public java.lang.String getAsString()- Specified by:
getAsStringin interfaceMessageProperty
-
explain
public java.lang.String explain(int level)- Specified by:
explainin interfaceMessageProperty
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-