Class AbstractXmlMapping
java.lang.Object
net.officefloor.plugin.xml.marshall.tree.AbstractXmlMapping
- All Implemented Interfaces:
XmlMapping,XmlWriter
- Direct Known Subclasses:
AbstractTypeXmlMapping,AbstractValueXmlMapping,ObjectXmlMapping
Abstract
XmlMapping to aid
in mapping.- Author:
- Daniel Sagenschneider
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractXmlMapping(Method getMethod) Initiate with method to obtain value to map. -
Method Summary
-
Field Details
-
getMethod
Method to obtain value from object to map to XML.
-
-
Constructor Details
-
AbstractXmlMapping
Initiate with method to obtain value to map.- Parameters:
getMethod- Method to obtain value to be mapped.
-
-
Method Details
-
map
Description copied from interface:XmlMappingMaps the object into XML.- Specified by:
mapin interfaceXmlMapping- Parameters:
object- Object to map into XML.output- Output to send the XML.- Throws:
XmlMarshallException- If fails to map object into XML.
-
getWriter
Description copied from interface:XmlMappingObtains theXmlWriterfor this mapping.- Specified by:
getWriterin interfaceXmlMapping- Returns:
XmlWriterfor this mapping.
-