public abstract class DefaultTypedKeyValue extends Object implements TypedKeyValue
An abstract model that represents a key-value pair with mediaType and encoding
| Modifier and Type | Field and Description |
|---|---|
protected String |
encoding |
protected String |
key |
protected String |
mediaType |
protected Serializable |
value |
| Constructor and Description |
|---|
DefaultTypedKeyValue() |
| Modifier and Type | Method and Description |
|---|---|
String |
getEncoding() |
String |
getKey() |
String |
getMediaType() |
Serializable |
getValue() |
void |
setEncoding(String encoding) |
void |
setKey(String key) |
void |
setMediaType(String mediaType) |
void |
setValue(Serializable value) |
@Parameter @Placement(order=0) protected String key
@Parameter @Placement(order=1) protected Serializable value
@Optional @Example(value="application/java") @Placement(order=2) @Parameter protected String mediaType
@Optional @Example(value="UTF-8") @Placement(order=3) @Parameter protected String encoding
public String getKey()
getKey in interface TypedKeyValuepublic void setKey(String key)
setKey in interface TypedKeyValuepublic Serializable getValue()
getValue in interface TypedKeyValuepublic void setValue(Serializable value)
setValue in interface TypedKeyValuepublic String getMediaType()
getMediaType in interface TypedKeyValuepublic void setMediaType(String mediaType)
setMediaType in interface TypedKeyValuepublic String getEncoding()
getEncoding in interface TypedKeyValuepublic void setEncoding(String encoding)
setEncoding in interface TypedKeyValueCopyright © 2018. All rights reserved.