Class AbstractValueLoader

java.lang.Object
net.officefloor.plugin.xml.unmarshall.load.AbstractValueLoader
Direct Known Subclasses:
DynamicValueLoader, StaticValueLoader

public abstract class AbstractValueLoader extends Object
Abstract value loader.
Author:
Daniel Sagenschneider
  • Field Details

    • loadMethod

      protected final Method loadMethod
      Method to load value onto the target object.
  • Constructor Details

    • AbstractValueLoader

      public AbstractValueLoader(Method loadMethod)
      Initiate with ability to load value onto target object.
      Parameters:
      loadMethod - Method to load the value.
  • Method Details

    • setValue

      protected void setValue(Object targetObject, Object value) throws XmlMarshallException
      Sets the value onto the target object.
      Parameters:
      targetObject - Target object to have value loaded on.
      value - Value to load onto the target object.
      Throws:
      XmlMarshallException - Failed to load value onto target object.