Interface XmlMapping

All Known Implementing Classes:
ObjectXmlMapping, RootXmlMapping, StaticXmlMapping, ValueXmlMapping

public interface XmlMapping
Mapping of XML element/attribute to either a value/new object on a target object.
Author:
Daniel Sagenschneider
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    endMapping(XmlState state, 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, String elementName)
    Starts the load of the value/object to the target object based on the current context and state of unmarshalling.
  • Method Details

    • startMapping

      void startMapping(XmlState state, String elementName) throws XmlMarshallException
      Starts the load of the value/object to the target object based on the current context and state of unmarshalling.
      Parameters:
      state - Current state of XML unmarshalling.
      elementName - Name of element/attribute being mapped.
      Throws:
      XmlMarshallException - If fail to load XML mapping.
    • endMapping

      void endMapping(XmlState state, String value) throws XmlMarshallException
      Ends the load of the value/object to the target object based on the current context and state of unmarshalling.
      Parameters:
      state - state of XML unmarshalling.
      value - Value of the element/attribute.
      Throws:
      XmlMarshallException - If fail to load XML mapping.