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

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

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

public class WaitCriteria implements Criteria {

    private static final String DEFAULT_CRITERION_NAME = "time";

    public WaitCriteria() {
        super();
    }

    public WaitCriteria(String time) {
        this();
        this.time = time;
    }

    public WaitCriteria(int number) {
        this(Integer.toString(number));
    }

    private String time;

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

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

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

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy