Class RootXmlMapping
java.lang.Object
net.officefloor.plugin.xml.unmarshall.tree.RootXmlMapping
- All Implemented Interfaces:
XmlMapping
XmlMapping that puts the
root object into context.- Author:
- Daniel Sagenschneider
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final XmlContextXmlContextof the root target object. -
Constructor Summary
ConstructorsConstructorDescriptionRootXmlMapping(XmlContext rootObjectContext) Initiate withXmlContextfor the root target object. -
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.
-
Field Details
-
rootObjectContext
XmlContextof the root target object.
-
-
Constructor Details
-
RootXmlMapping
Initiate withXmlContextfor the root target object.- Parameters:
rootObjectContext-XmlContextfor the root target object.
-
-
Method Details
-
startMapping
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
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.
-