Class AbstractXmlMapping
- java.lang.Object
-
- net.officefloor.plugin.xml.marshall.tree.AbstractXmlMapping
-
- All Implemented Interfaces:
XmlMapping
,XmlWriter
- Direct Known Subclasses:
AbstractTypeXmlMapping
,AbstractValueXmlMapping
,ObjectXmlMapping
public abstract class AbstractXmlMapping extends java.lang.Object implements XmlMapping, XmlWriter
AbstractXmlMapping
to aid in mapping.- Author:
- Daniel Sagenschneider
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.reflect.Method
getMethod
Method to obtain value from object to map to XML.
-
Constructor Summary
Constructors Constructor Description AbstractXmlMapping(java.lang.reflect.Method getMethod)
Initiate with method to obtain value to map.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XmlWriter
getWriter()
Obtains theXmlWriter
for this mapping.void
map(java.lang.Object object, XmlOutput output)
Maps the object into XML.
-
-
-
Method Detail
-
map
public void map(java.lang.Object object, XmlOutput output) throws XmlMarshallException
Description copied from interface:XmlMapping
Maps the object into XML.- Specified by:
map
in interfaceXmlMapping
- Parameters:
object
- Object to map into XML.output
- Output to send the XML.- Throws:
XmlMarshallException
- If fails to map object into XML.
-
getWriter
public XmlWriter getWriter()
Description copied from interface:XmlMapping
Obtains theXmlWriter
for this mapping.- Specified by:
getWriter
in interfaceXmlMapping
- Returns:
XmlWriter
for this mapping.
-
-