Class ObjectXmlMapping
- java.lang.Object
-
- net.officefloor.plugin.xml.unmarshall.tree.ObjectXmlMapping
-
- All Implemented Interfaces:
XmlMapping
public class ObjectXmlMapping extends java.lang.Object implements XmlMapping
XmlMappingthat loads object onto target object.- Author:
- Daniel Sagenschneider
-
-
Field Summary
Fields Modifier and Type Field Description protected ObjectLoaderloaderLoads the object onto the target object.protected XmlContextloadObjectContextXmlContextof the object to be loaded onto the target object.
-
Constructor Summary
Constructors Constructor Description ObjectXmlMapping(ObjectLoader loader, XmlContext loadObjectContext)Initiate with loader andXmlContextfor the object loaded.
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Field Detail
-
loader
protected final ObjectLoader loader
Loads the object onto the target object.
-
loadObjectContext
protected final XmlContext loadObjectContext
XmlContextof the object to be loaded onto the target object.
-
-
Constructor Detail
-
ObjectXmlMapping
public ObjectXmlMapping(ObjectLoader loader, XmlContext loadObjectContext)
Initiate with loader andXmlContextfor the object loaded.- Parameters:
loader- Loads the object onto the target object.loadObjectContext-XmlContextfor thisXmlMapping.
-
-
Method Detail
-
startMapping
public void startMapping(XmlState state, java.lang.String elementName) throws XmlMarshallException
Description copied from interface:XmlMappingStarts the load of the value/object to the target object based on the current context and state of unmarshalling.- Specified by:
startMappingin interfaceXmlMapping- Parameters:
state- Current state of XML unmarshalling.elementName- Name of element/attribute being mapped.- Throws:
XmlMarshallException- If fail to load XML mapping.
-
endMapping
public void endMapping(XmlState state, java.lang.String value) throws XmlMarshallException
Description copied from interface:XmlMappingEnds the load of the value/object to the target object based on the current context and state of unmarshalling.- Specified by:
endMappingin interfaceXmlMapping- Parameters:
state- state of XML unmarshalling.value- Value of the element/attribute.- Throws:
XmlMarshallException- If fail to load XML mapping.
-
-