Class AbstractValueLoader

  • Direct Known Subclasses:
    DynamicValueLoader, StaticValueLoader

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

      Fields 
      Modifier and Type Field Description
      protected java.lang.reflect.Method loadMethod
      Method to load value onto the target object.
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractValueLoader​(java.lang.reflect.Method loadMethod)
      Initiate with ability to load value onto target object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void setValue​(java.lang.Object targetObject, java.lang.Object value)
      Sets the value onto the target 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 value onto the target object.
    • Constructor Detail

      • AbstractValueLoader

        public AbstractValueLoader​(java.lang.reflect.Method loadMethod)
        Initiate with ability to load value onto target object.
        Parameters:
        loadMethod - Method to load the value.
    • Method Detail

      • setValue

        protected void setValue​(java.lang.Object targetObject,
                                java.lang.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.