io.engineblock.activities.json.statements.ReadyFileStatementTemplate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of at-json Show documentation
Show all versions of at-json Show documentation
A engineblock ActivityType (AT) driver module;
Provides an activity capable of writing results out via JSON
package io.engineblock.activities.json.statements;
import io.virtdata.core.AllDataMapperLibraries;
import io.virtdata.core.BindingsTemplate;
import java.util.Map;
public class ReadyFileStatementTemplate {
private final String stmtTemplate;
private final BindingsTemplate bindingsTemplate;
private String name;
public ReadyFileStatementTemplate(String name, String stmtTemplate, Map bindingSpecs) {
this.name = name;
this.stmtTemplate = stmtTemplate;
this.bindingsTemplate = new BindingsTemplate(AllDataMapperLibraries.get(), bindingSpecs);
}
public ReadyFileStatement resolve() {
return new ReadyFileMapStatement(stmtTemplate,bindingsTemplate.resolveBindings());
}
}