Interface XmlMapping
-
- All Known Implementing Classes:
ObjectXmlMapping,RootXmlMapping,StaticXmlMapping,ValueXmlMapping
public interface XmlMappingMapping of XML element/attribute to either a value/new object on a target object.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidendMapping(XmlState state, java.lang.String value)Ends the load of the value/object to the target object based on the current context and state of unmarshalling.voidstartMapping(XmlState state, java.lang.String elementName)Starts the load of the value/object to the target object based on the current context and state of unmarshalling.
-
-
-
Method Detail
-
startMapping
void startMapping(XmlState state, java.lang.String elementName) throws XmlMarshallException
Starts the load of the value/object to the target object based on the current context and state of unmarshalling.- Parameters:
state- Current state of XML unmarshalling.elementName- Name of element/attribute being mapped.- Throws:
XmlMarshallException- If fail to load XML mapping.
-
endMapping
void endMapping(XmlState state, java.lang.String value) throws XmlMarshallException
Ends the load of the value/object to the target object based on the current context and state of unmarshalling.- Parameters:
state- state of XML unmarshalling.value- Value of the element/attribute.- Throws:
XmlMarshallException- If fail to load XML mapping.
-
-