Interface IMarshaller

    • Method Detail

      • isExtension

        boolean isExtension​(java.lang.String mapname)
        Check if marshaller represents an extension mapping. This is used by the framework in generated code to verify compatibility of objects being marshalled using an abstract mapping.
        Parameters:
        mapname - marshaller mapping name (generally the class name to be handled, or abstract mapping type name)
        Returns:
        true if this mapping is an extension of the abstract mapping, false if not
      • marshal

        void marshal​(java.lang.Object obj,
                     IMarshallingContext ctx)
              throws JiBXException
        Marshal instance of handled class. This method call is responsible for all handling of the marshalling of an object to XML text. It is called at the point where the start tag for the associated element should be generated.
        Parameters:
        obj - object to be marshalled (may be null if property is not optional)
        ctx - XML text output context
        Throws:
        JiBXException - on error in marshalling process