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

io.qameta.allure.tree.DefaultTreeGroup Maven / Gradle / Ivy

There is a newer version: 2.32.0
Show newest version
package io.qameta.allure.tree;

import java.util.HashSet;
import java.util.Set;

/**
 * @author charlie (Dmitry Baev).
 */
public class DefaultTreeGroup implements TreeGroup {

    private String name;

    private Set children = new HashSet<>();

    public DefaultTreeGroup(final String name) {
        this.name = name;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public Set getChildren() {
        return children;
    }

    @Override
    public void addChild(final TreeNode node) {
        children.add(node);
    }

    public void setName(final String name) {
        this.name = name;
    }

    public void setChildren(final Set children) {
        this.children = children;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy