SendableEntityCreator, SendableEntityCreatorTagpublic class ByteMessage extends java.lang.Object implements SendableEntityCreatorTag
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
PROPERTY_VALUE |
The Constant PROPERTY_VALUE.
|
NEW, REMOVE, REMOVE_YOU, SIMPLE, UPDATE| Constructor | Description |
|---|---|
ByteMessage() |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String[] |
getProperties() |
return the Properties
|
java.lang.Object |
getSendableInstance(boolean reference) |
Create new Instance of ByteMessage
|
java.lang.String |
getTag() |
Get the EventType of BasicMessage (0x42) UTF-8
|
byte[] |
getValue() |
Gets the value.
|
java.lang.Object |
getValue(java.lang.Object entity,
java.lang.String attrName) |
Generic Getter for Attributes
|
java.lang.String |
getValueString() |
Gets the value As String
|
boolean |
setValue(java.lang.Object entity,
java.lang.String attribute,
java.lang.Object value,
java.lang.String type) |
Generic Setter for Attributes
|
ByteMessage |
withValue(byte[] value) |
Sets the value.
|
ByteMessage |
withValue(java.lang.String value) |
Sets the value.
|
public static final java.lang.String PROPERTY_VALUE
public java.lang.Object getValue(java.lang.Object entity,
java.lang.String attrName)
getValue in interface SendableEntityCreatorentity - ByteMessage EntityattrName - Name of Attributepublic boolean setValue(java.lang.Object entity,
java.lang.String attribute,
java.lang.Object value,
java.lang.String type)
setValue in interface SendableEntityCreatorattribute - the Name of Attributevalue - the Value of Attributeentity - the entitytype - edit, update or remove operationpublic byte[] getValue()
public java.lang.String getValueString()
public ByteMessage withValue(byte[] value)
value - the new valuepublic ByteMessage withValue(java.lang.String value)
value - the new valuepublic java.lang.String[] getProperties()
getProperties in interface SendableEntityCreatorpublic java.lang.Object getSendableInstance(boolean reference)
getSendableInstance in interface SendableEntityCreatorreference - the prototyppublic java.lang.String getTag()
getTag in interface SendableEntityCreatorTag