Class XmlMapping
java.lang.Object
net.officefloor.plugin.xml.unmarshall.flat.XmlMapping
Provides an mapping of the XML element/attribute to a load method of a target
object.
- Author:
- Daniel Sagenschneider
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionXmlMapping(String elementName, String loadMethodName) Initiate with the element name to obtain the value from to load via the load method to the target object. -
Method Summary
Modifier and TypeMethodDescriptionObtains the element name.Obtains the load method name.
-
Field Details
-
elementName
Name of XML element containing the value. -
loadMethodName
Name of method on the target object to load the value.
-
-
Constructor Details
-
XmlMapping
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.
-
-
Method Details
-
getElementName
Obtains the element name.- Returns:
- Element name.
-
getLoadMethodName
Obtains the load method name.- Returns:
- Load method name.
-