Class ObjectLoader

java.lang.Object
net.officefloor.plugin.xml.unmarshall.load.ObjectLoader

public class ObjectLoader extends Object
Loader to load objects onto the target object.
Author:
Daniel Sagenschneider
  • Field Details

    • loadMethod

      protected final Method loadMethod
      Method to load object onto the target object.
    • loadObjectType

      protected final Class<?> loadObjectType
      Type of object to be loaded to the target object.
  • Constructor Details

    • ObjectLoader

      public ObjectLoader(Method loadMethod, Class<?> loadObjectType)
      Initiate.
      Parameters:
      loadMethod - Method to load object onto the target object.
      loadObjectType - Type of object to be loaded to the target object.
  • Method Details

    • loadObject

      public Object loadObject(Object targetObject) throws XmlMarshallException
      Loads the object onto the target object and returns the loaded object.
      Parameters:
      targetObject - Target object to have object loaded onto it.
      Returns:
      Object created and loaded onto the target object.
      Throws:
      XmlMarshallException - If fails to marshal the data onto the Object.