Interface IWritingContext<WRITER>

All Known Subinterfaces:
IJsonWritingContext, IXmlWritingContext
All Known Implementing Classes:
MetaschemaJsonWriter, MetaschemaXmlWriter

public interface IWritingContext<WRITER>
  • Method Details

    • getWriter

      @NonNull WRITER getWriter()
      Get the writer associated with the writing context.
      Returns:
      the writer
    • write

      void write(@NonNull IBoundDefinitionModelComplex definition, @NonNull IBoundObject targetObject) throws IOException
      Write the data described by the provided targetObject as an XML element.
      Parameters:
      definition - the bound Module definition describing the data to write
      targetObject - the Java object data to write
      Throws:
      IOException - if an error occurred while writing