Interface IXmlWritingContext

All Superinterfaces:
IWritingContext<org.codehaus.stax2.XMLStreamWriter2>
All Known Implementing Classes:
MetaschemaXmlWriter

public interface IXmlWritingContext extends IWritingContext<org.codehaus.stax2.XMLStreamWriter2>
Provides the writing context for serializing Java objects to XML format.

This interface extends IWritingContext with an XML-specific writer type and adds a method for writing root elements.

See Also:
  • XMLStreamWriter2
  • Method Details

    • writeRoot

      void writeRoot(@NonNull IBoundDefinitionModelAssembly definition, @NonNull IBoundObject item) throws IOException
      Write the root element for the provided definition and bound object.
      Parameters:
      definition - the assembly definition describing the root element
      item - the bound object to serialize as the root element
      Throws:
      IOException - if an error occurs during writing