Class StaticValueLoader


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

      Fields 
      Modifier and Type Field Description
      protected java.lang.Object value
      Static value to load onto target object.
    • Constructor Summary

      Constructors 
      Constructor Description
      StaticValueLoader​(java.lang.reflect.Method loadMethod, java.lang.Object value)
      Initiate with details to static load.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void loadValue​(java.lang.Object targetObject)
      Loads the static 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

      • value

        protected final java.lang.Object value
        Static value to load onto target object.
    • Constructor Detail

      • StaticValueLoader

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

      • loadValue

        public void loadValue​(java.lang.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.