Package nz.org.riskscape.engine.output
Interface WriterConstructor
public interface WriterConstructor
Functional interface for something that is able to create a RiskscapeWriter.
-
Method Summary
Modifier and TypeMethodDescriptionResultOrProblems<? extends RiskscapeWriter>newWriter(ExecutionContext context, Struct type, CreateHandle handle, Optional<? extends Format.FormatOptions> formatOptions) Create a new writer that can write the given type.
-
Method Details
-
newWriter
ResultOrProblems<? extends RiskscapeWriter> newWriter(ExecutionContext context, Struct type, CreateHandle handle, Optional<? extends Format.FormatOptions> formatOptions) Create a new writer that can write the given type.
- Parameters:
context-type- the type to be writtenhandle- where to write toformatOptions- options for the format. Type should matchFormat.getWriterOptionsClass().- Returns:
- writer or problems encountered
-