website.automate.waml.io.model.main.criteria.WaitCriteria Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of waml-io Show documentation
Show all versions of waml-io Show documentation
(De)Serializer of the web automation markup language (WAML) for Java
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