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

io.engineblock.activities.csv.statements.CSVStmtDef Maven / Gradle / Ivy

Go to download

A engineblock ActivityType (AT) driver module; Provides a diagnostic activity that logs input at some interval

There is a newer version: 2.11.04
Show newest version
package io.engineblock.activities.csv.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 csv statement.
 * This version is meant to provide YAML-friendly field naming.
 */
public class CSVStmtDef implements Tagged {

    private Map tags = new LinkedHashMap<>();
    private String name;
    private List statements = new ArrayList<>();
    private Map bindings = new LinkedHashMap<>();

    public CSVStmtDef() {};

    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 - 2025 Weber Informatics LLC | Privacy Policy