Interface XmlMapping
- All Known Implementing Classes:
ObjectXmlMapping,RootXmlMapping,StaticXmlMapping,ValueXmlMapping
public interface XmlMapping
Mapping of XML element/attribute to either a value/new object on a target
object.
- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptionvoidendMapping(XmlState state, 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, String elementName) Starts the load of the value/object to the target object based on the current context and state of unmarshalling.
-
Method Details
-
startMapping
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
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.
-