Class ObjectLoader


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

      Fields 
      Modifier and Type Field Description
      protected java.lang.reflect.Method loadMethod
      Method to load object onto the target object.
      protected java.lang.Class<?> loadObjectType
      Type of object to be loaded to the target object.
    • Constructor Summary

      Constructors 
      Constructor Description
      ObjectLoader​(java.lang.reflect.Method loadMethod, java.lang.Class<?> loadObjectType)
      Initiate.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object loadObject​(java.lang.Object targetObject)
      Loads the object onto the target object and returns the loaded object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • loadMethod

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

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

      • ObjectLoader

        public ObjectLoader​(java.lang.reflect.Method loadMethod,
                            java.lang.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 Detail

      • loadObject

        public java.lang.Object loadObject​(java.lang.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.