Class ValueXmlMapping

  • All Implemented Interfaces:
    XmlMapping

    public class ValueXmlMapping
    extends java.lang.Object
    implements XmlMapping
    XmlMapping that loads a value to the target object.
    Author:
    Daniel Sagenschneider
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected DynamicValueLoader loader
      Loads the value onto the target object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void endMapping​(XmlState state, java.lang.String value)
      Ends the load of the value/object to the target object based on the current context and state of unmarshalling.
      void startMapping​(XmlState state, java.lang.String elementName)
      Starts the load of the value/object to the target object based on the current context and state of unmarshalling.
      • Methods inherited from class java.lang.Object

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

      • loader

        protected final DynamicValueLoader loader
        Loads the value onto the target object.
    • Constructor Detail

    • Method Detail

      • startMapping

        public void startMapping​(XmlState state,
                                 java.lang.String elementName)
                          throws XmlMarshallException
        Description copied from interface: XmlMapping
        Starts the load of the value/object to the target object based on the current context and state of unmarshalling.
        Specified by:
        startMapping in interface XmlMapping
        Parameters:
        state - Current state of XML unmarshalling.
        elementName - Name of element/attribute being mapped.
        Throws:
        XmlMarshallException - If fail to load XML mapping.
      • endMapping

        public void endMapping​(XmlState state,
                               java.lang.String value)
                        throws XmlMarshallException
        Description copied from interface: XmlMapping
        Ends the load of the value/object to the target object based on the current context and state of unmarshalling.
        Specified by:
        endMapping in interface XmlMapping
        Parameters:
        state - state of XML unmarshalling.
        value - Value of the element/attribute.
        Throws:
        XmlMarshallException - If fail to load XML mapping.