Class StaticXmlMapping

  • All Implemented Interfaces:
    XmlMapping, XmlWriter

    public class StaticXmlMapping
    extends java.lang.Object
    implements XmlMapping, XmlWriter
    Provides static mapping.
    Author:
    Daniel Sagenschneider
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String xmlSnippet
      Static XML snippet for this mapping.
    • Constructor Summary

      Constructors 
      Constructor Description
      StaticXmlMapping​(java.lang.String xmlSnippet)
      Initiate with the static XML snippet.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      XmlWriter getWriter()
      Obtains the XmlWriter for this mapping.
      void map​(java.lang.Object object, XmlOutput output)
      Maps the object into XML.
      void writeXml​(java.lang.Object object, XmlOutput output)
      Writes the XML for the input object.
      • Methods inherited from class java.lang.Object

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

      • xmlSnippet

        protected final java.lang.String xmlSnippet
        Static XML snippet for this mapping.
    • Constructor Detail

      • StaticXmlMapping

        public StaticXmlMapping​(java.lang.String xmlSnippet)
        Initiate with the static XML snippet.
        Parameters:
        xmlSnippet - Static XML snippet.