All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.engineblock.activities.json.statements.FileStmtDef Maven / Gradle / Ivy

Go to download

A engineblock ActivityType (AT) driver module; Provides an activity capable of writing results out via JSON

There is a newer version: 1.0.65
Show newest version
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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy