public interface Extension
Modifier and Type | Method and Description |
---|---|
void |
deserialize(byte[] data)
Deserialize the extension from a byte array.
|
java.util.List<java.lang.String> |
getProperties()
Gets a list of all properties on the extension.
|
<T> T |
getPropertyValue(java.lang.String key)
Gets a property value of an extension.
|
byte[] |
serialize()
Serialize the extension to a byte array.
|
<T> void |
setPropertyValue(java.lang.String key,
T value)
Sets a property on the extension.
|
<T> void setPropertyValue(java.lang.String key, T value) throws ExtensionPropertyException
T
- class of the valuekey
- property keyvalue
- value to set for the given keyExtensionPropertyException
- if the given key is not a valid
property on this extension<T> T getPropertyValue(java.lang.String key) throws ExtensionPropertyException
T
- class of the valuekey
- property keyExtensionPropertyException
- if the given key is not a valid
property on this extensionjava.util.List<java.lang.String> getProperties()
byte[] serialize()
void deserialize(byte[] data)
data
- input byte array