java.lang.Object
jakarta.xml.bind.annotation.adapters.XmlAdapter<ElementList,ElementMap>
cl.netswitch.lib.dto.ElementAdapter
Converts an
ElementMap
to an ElementList
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionmarshal
(ElementMap elementMap) Converts an ElementMap to an ElementList.unmarshal
(ElementList elementList) Converts an ElementList to an ElementMap.
-
Constructor Details
-
ElementAdapter
public ElementAdapter()Constructs a newElementAdapter
instance.
-
-
Method Details
-
marshal
Converts an ElementMap to an ElementList.- Specified by:
marshal
in classXmlAdapter<ElementList,
ElementMap> - Parameters:
elementMap
- the value to be converted.- Throws:
NullPointerException
- ifelementMap
isnull
.
-
unmarshal
Converts an ElementList to an ElementMap.- Specified by:
unmarshal
in classXmlAdapter<ElementList,
ElementMap> - Parameters:
elementList
- the value to be converted.- Throws:
NullPointerException
- ifelementList
isnull
.
-