Class DiscardListMapper

  • All Implemented Interfaces:
    org.jibx.runtime.IMarshaller, org.jibx.runtime.IUnmarshaller

    public class DiscardListMapper
    extends Object
    implements org.jibx.runtime.IMarshaller, org.jibx.runtime.IUnmarshaller

    Custom marshaller/unmarshaller for arbitrary ignored content to end of element. This ignores all content to the end of the enclosing element when unmarshalling, and does nothing with marshalling.

    Author:
    Dennis M. Sosnoski
    • Constructor Detail

      • DiscardListMapper

        public DiscardListMapper()
    • Method Detail

      • isExtension

        public boolean isExtension​(String mapname)
        Specified by:
        isExtension in interface org.jibx.runtime.IMarshaller
      • marshal

        public void marshal​(Object obj,
                            org.jibx.runtime.IMarshallingContext ictx)
        Specified by:
        marshal in interface org.jibx.runtime.IMarshaller
      • isPresent

        public boolean isPresent​(org.jibx.runtime.IUnmarshallingContext ctx)
                          throws org.jibx.runtime.JiBXException
        Specified by:
        isPresent in interface org.jibx.runtime.IUnmarshaller
        Throws:
        org.jibx.runtime.JiBXException
      • unmarshal

        public Object unmarshal​(Object obj,
                                org.jibx.runtime.IUnmarshallingContext ictx)
                         throws org.jibx.runtime.JiBXException
        Specified by:
        unmarshal in interface org.jibx.runtime.IUnmarshaller
        Throws:
        org.jibx.runtime.JiBXException