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

org.yamcs.templating.TemplateBody Maven / Gradle / Ivy

There is a newer version: 5.10.9
Show newest version
package org.yamcs.templating;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public class TemplateBody {

    private List statements = new ArrayList<>();

    public void addStatement(Statement statement) {
        statements.add(statement);
    }

    public String render(Map vars, Map filters) {
        var buf = new StringBuilder();
        for (var statement : statements) {
            statement.render(buf, vars, filters);
        }
        return buf.toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy