Class StaticValueLoader

java.lang.Object
net.officefloor.plugin.xml.unmarshall.load.AbstractValueLoader
net.officefloor.plugin.xml.unmarshall.load.StaticValueLoader

public class StaticValueLoader extends AbstractValueLoader
Loader to load a static value onto target object.
Author:
Daniel Sagenschneider
  • Field Details

    • value

      protected final Object value
      Static value to load onto target object.
  • Constructor Details

    • StaticValueLoader

      public StaticValueLoader(Method loadMethod, Object value)
      Initiate with details to static load.
      Parameters:
      loadMethod - Method to load static value onto target object.
      value - Static value to load onto target object.
  • Method Details

    • loadValue

      public void loadValue(Object targetObject) throws XmlMarshallException
      Loads the static value onto the target object.
      Parameters:
      targetObject - Target object to receive the static value.
      Throws:
      XmlMarshallException - If fails to load the static value to target object.