Class StaticXmlMapping
java.lang.Object
net.officefloor.plugin.xml.marshall.tree.StaticXmlMapping
- All Implemented Interfaces:
XmlMapping,XmlWriter
Provides static mapping.
- Author:
- Daniel Sagenschneider
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
xmlSnippet
Static XML snippet for this mapping.
-
-
Constructor Details
-
StaticXmlMapping
Initiate with the static XML snippet.- Parameters:
xmlSnippet- Static XML snippet.
-
-
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.
-
writeXml
Description copied from interface:XmlWriterWrites the XML for the input object.- Specified by:
writeXmlin interfaceXmlWriter- Parameters:
object- Object to have XML written for it.output- Output to write the XML.- Throws:
XmlMarshallException- If fails to write the object into XML.
-