public class Payload extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
Payload.ValueType
Type of the payload's value.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
ITEM_PREFIX
Prefix of the payload data type.
|
| Constructor and Description |
|---|
Payload(String key,
String value,
Payload.ValueType valueType)
Creates a payload object.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getKey()
Gets the key of this payload.
|
String |
getPayloadString()
Returns the string representation of this payload.
|
String |
getValue()
Gets the value of this payload.
|
Payload.ValueType |
getValueType()
Gets the value type of this payload.
|
static Payload |
parse(String payloadString)
Parses a payload string and returns a payload object represented by that
string.
|
void |
setKey(String key)
Sets the key of this payload.
|
void |
setValue(String value)
Sets the value of this payload.
|
void |
setValueType(Payload.ValueType valueType)
Sets the value type of this payload.
|
public static final String ITEM_PREFIX
public Payload(String key, String value, Payload.ValueType valueType)
key - key of the payloadvalue - value of the payloadvalueType - type of the payload valuepublic String getKey()
public void setKey(String key)
key - key that identifies the payloadpublic String getValue()
public void setValue(String value)
value - value of the payloadpublic Payload.ValueType getValueType()
public void setValueType(Payload.ValueType valueType)
valueType - type of the payload valuepublic String getPayloadString()
DataTransfer object.Copyright © 2021 Vaadin Ltd. All rights reserved.