Class ReferenceXmlMapping
java.lang.Object
net.officefloor.plugin.xml.marshall.tree.ReferenceXmlMapping
- All Implemented Interfaces:
XmlMapping
Enables referencing another
XmlWriter to write the XML
of the object obtained from the source object.- Author:
- Daniel Sagenschneider
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final XmlMappingXmlMappingbeing wrapped to delegate XML writing.protected final StringName of method to obtain object to write as XML.Methods specific to a class. -
Constructor Summary
ConstructorsConstructorDescriptionReferenceXmlMapping(Method getMethod, XmlMapping delegate) Initiate to apply reference mapping. -
Method Summary
-
Field Details
-
getMethodName
Name of method to obtain object to write as XML. -
delegate
XmlMappingbeing wrapped to delegate XML writing. -
methods
Methods specific to a class.
-
-
Constructor Details
-
ReferenceXmlMapping
Initiate to apply reference mapping.- Parameters:
getMethod- Method to obtain object to apply reference from upper bound type of source object.delegate- Delgate to object theXmlWriterto write the XML.
-
-
Method Details
-
map
Description copied from interface:XmlMappingMaps the object into XML.- Specified by:
mapin interfaceXmlMapping- Parameters:
source- 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.
-