Class KeyMapAdaptedEntryAdapter
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<Object,KeyMapAdaptedEntryAdapter.KeyMapAdaptedEntry>
de.hybris.platform.cmsoccaddon.jaxb.adapters.KeyMapAdaptedEntryAdapter
public class KeyMapAdaptedEntryAdapter
extends javax.xml.bind.annotation.adapters.XmlAdapter<Object,KeyMapAdaptedEntryAdapter.KeyMapAdaptedEntry>
This Adapter is used to convert KeyMapAdaptedEntry into an HTML or XML document element.
Example:
public class Container
{
private List entries;
}
would have the following JSON representation:
{
"key1": "strValue",
"key2": {"subkey1": "strValue", "subkey2": {"subKey3": "strValue}}
"key3": ["strUid1", "strUid2", "strUid3"]
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis class represents a key-value entry in a Map<String, Object>. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmarshal(KeyMapAdaptedEntryAdapter.KeyMapAdaptedEntry adaptedEntry) convert KeyMapAdaptedEntry object into an HTML or XML document element object.
-
Constructor Details
-
KeyMapAdaptedEntryAdapter
public KeyMapAdaptedEntryAdapter()
-
-
Method Details
-
unmarshal
- Specified by:
unmarshalin classjavax.xml.bind.annotation.adapters.XmlAdapter<Object,KeyMapAdaptedEntryAdapter.KeyMapAdaptedEntry> - Throws:
Exception
-
marshal
convert KeyMapAdaptedEntry object into an HTML or XML document element object.- Specified by:
marshalin classjavax.xml.bind.annotation.adapters.XmlAdapter<Object,KeyMapAdaptedEntryAdapter.KeyMapAdaptedEntry>
-