Class AttributeXmlMapping
java.lang.Object
net.officefloor.plugin.xml.marshall.tree.AbstractXmlMapping
net.officefloor.plugin.xml.marshall.tree.AbstractValueXmlMapping
net.officefloor.plugin.xml.marshall.tree.AttributeXmlMapping
- All Implemented Interfaces:
XmlMapping,XmlWriter
Writes an XML attribute with value sourced from object.
- Author:
- Daniel Sagenschneider
-
Field Summary
Fields inherited from class net.officefloor.plugin.xml.marshall.tree.AbstractValueXmlMapping
isUseRaw, tagName, translatorFields inherited from class net.officefloor.plugin.xml.marshall.tree.AbstractXmlMapping
getMethod -
Constructor Summary
ConstructorsConstructorDescriptionAttributeXmlMapping(String tagName, Method getMethod, Translator translator, boolean isUseRaw) From super. -
Method Summary
Methods inherited from class net.officefloor.plugin.xml.marshall.tree.AbstractValueXmlMapping
writeXmlMethods inherited from class net.officefloor.plugin.xml.marshall.tree.AbstractXmlMapping
getWriter, map
-
Constructor Details
-
AttributeXmlMapping
public AttributeXmlMapping(String tagName, Method getMethod, Translator translator, boolean isUseRaw) From super.- Parameters:
tagName- Name of the XML tag.getMethod-Methodto obtain the value.translator-Translator.isUseRaw- Indicates to use raw.
-
-
Method Details
-
writeXml
Description copied from class:AbstractValueXmlMappingWrites the XML.- Specified by:
writeXmlin classAbstractValueXmlMapping- Parameters:
tagName- Tag name for writing XML snippet.value- Value of XML snippet.output- Output to send the XML snippet.- Throws:
XmlMarshallException- If fails to write XML.
-