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

website.automate.waml.io.model.main.criteria.IncludeCriteria Maven / Gradle / Ivy

The newest version!
package website.automate.waml.io.model.main.criteria;

public class IncludeCriteria implements Criteria {

    private static final String DEFAULT_CRITERION_NAME = "scenario";

    private String scenario;

    public IncludeCriteria() {
        super();
    }

    public IncludeCriteria(String scenario) {
        this();
        this.scenario = scenario;
    }

    public String getScenario() {
        return scenario;
    }

    public void setScenario(String scenario) {
        this.scenario = scenario;
    }

    @Override
    public boolean canBeShortNotated() {
        return true;
    }

    @Override
    public String getDefaultCriterionName() {
        return DEFAULT_CRITERION_NAME;
    }

    @Override
    public String getDefaultCriterionValue() {
        return getScenario();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy