Class XmlMapping

java.lang.Object
net.officefloor.plugin.xml.unmarshall.flat.XmlMapping

public class XmlMapping extends Object
Provides an mapping of the XML element/attribute to a load method of a target object.
Author:
Daniel Sagenschneider
  • Field Details

    • elementName

      protected final String elementName
      Name of XML element containing the value.
    • loadMethodName

      protected final String loadMethodName
      Name of method on the target object to load the value.
  • Constructor Details

    • XmlMapping

      public XmlMapping(String elementName, 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.
  • Method Details

    • getElementName

      public String getElementName()
      Obtains the element name.
      Returns:
      Element name.
    • getLoadMethodName

      public String getLoadMethodName()
      Obtains the load method name.
      Returns:
      Load method name.