io.engineblock.activities.json.statements.FileStmtDef 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.engineblock.util.Tagged;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
/**
* Holds a base name, a set of statements, some bindings, and tags for a File statement.
* This version is meant to provide YAML-friendly field naming.
*/
public class FileStmtDef implements Tagged {
private Map tags = new LinkedHashMap<>();
private String name;
private List statements = new ArrayList<>();
private Map bindings = new LinkedHashMap<>();
public FileStmtDef() {};
public List getStatements() {
return statements;
}
public void setStatements(List statements) {
this.statements.clear();
this.statements.addAll(statements);
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Map getBindings() {
return bindings;
}
public void setBindings(Map bindings) {
this.bindings = bindings;
}
@Override
public Map getTags() {
return tags;
}
public void setTags(Map tags) {
this.tags.clear();
this.tags.putAll(tags);
}
}