Class ReferenceXmlMapping

java.lang.Object
net.officefloor.plugin.xml.marshall.tree.ReferenceXmlMapping
All Implemented Interfaces:
XmlMapping

public class ReferenceXmlMapping extends Object implements XmlMapping
Enables referencing another XmlWriter to write the XML of the object obtained from the source object.
Author:
Daniel Sagenschneider
  • Field Details

    • getMethodName

      protected final String getMethodName
      Name of method to obtain object to write as XML.
    • delegate

      protected final XmlMapping delegate
      XmlMapping being wrapped to delegate XML writing.
    • methods

      protected final Map<Class<?>,Method> methods
      Methods specific to a class.
  • Constructor Details

    • ReferenceXmlMapping

      public ReferenceXmlMapping(Method getMethod, XmlMapping delegate)
      Initiate to apply reference mapping.
      Parameters:
      getMethod - Method to obtain object to apply reference from upper bound type of source object.
      delegate - Delgate to object the XmlWriter to write the XML.
  • Method Details