aboutsummaryrefslogtreecommitdiffstats
path: root/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/task/util/template/ListElement.java
blob: 24bb9ea6523b75441939e3ced706be7b111acd7a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.node.admin.task.util.template;

/**
 * @author hakonhall
 */
public class ListElement implements Form {
    private final Template template;

    ListElement(Template template) { this.template = template; }

    @Override
    public Template set(String name, String value) { return template.set(name, value); }

    @Override
    public ListElement add(String name) { return new ListElement(template.addElement(name)); }
}