Interface WriterConstructor


public interface WriterConstructor

Functional interface for something that is able to create a RiskscapeWriter.

  • Method Details

    • newWriter

      ResultOrProblems<? extends RiskscapeWriter> newWriter(ExecutionContext context, Struct type, CreateHandle handle, StructDeclaration formatOptions)

      Create a new writer that can write the given type.

      Parameters:
      context -
      type - the type to be written
      handle - where to write to
      formatOptions - options for the format. Type should match Format#getWriterOptionsClass().
      Returns:
      writer or problems encountered