io.engineblock.activities.json.statements.ReadyFileStatementsTemplate 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 java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
public class ReadyFileStatementsTemplate {
private List templateList = new ArrayList<>();
public void addTemplate(String name, String stmtTemplate, Map bindingSpecs) {
ReadyFileStatementTemplate rgst = new ReadyFileStatementTemplate(name, stmtTemplate, bindingSpecs);
}
public void addTemplate(ReadyFileStatementTemplate template) {
this.templateList.add(template);
}
public List resolve() {
return templateList.stream().map(ReadyFileStatementTemplate::resolve)
.collect(Collectors.toList());
}
public int size() {
return templateList.size();
}
}