Class XmlMapping
- java.lang.Object
-
- net.officefloor.plugin.xml.unmarshall.flat.XmlMapping
-
public class XmlMapping extends java.lang.ObjectProvides an mapping of the XML element/attribute to a load method of a target object.- Author:
- Daniel Sagenschneider
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringelementNameName of XML element containing the value.protected java.lang.StringloadMethodNameName of method on the target object to load the value.
-
Constructor Summary
Constructors Constructor Description XmlMapping(java.lang.String elementName, java.lang.String loadMethodName)Initiate with the element name to obtain the value from to load via the load method to the target object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetElementName()Obtains the element name.java.lang.StringgetLoadMethodName()Obtains the load method name.
-
-
-
Constructor Detail
-
XmlMapping
public XmlMapping(java.lang.String elementName, java.lang.String loadMethodName)Initiate with the element name to obtain the value from to load via the load method to the target object.- Parameters:
elementName- Name of XML element containing the value.loadMethodName- Method of target object to utilise to load the value.
-
-