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 Object |
value |
| Constructor and Description |
|---|
DefaultTypedKeyValue() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
String |
getEncoding() |
String |
getKey() |
String |
getMediaType() |
Object |
getValue() |
int |
hashCode() |
void |
setEncoding(String encoding) |
void |
setKey(String key) |
void |
setMediaType(String mediaType) |
void |
setValue(Object value) |
@Parameter @Placement(order=0) protected String key
@Parameter @Placement(order=1) protected Object 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 Object getValue()
getValue in interface TypedKeyValuepublic void setValue(Object 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 © 2020. All rights reserved.