website.automate.waml.io.model.main.criteria.ExecuteCriteria 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 ExecuteCriteria implements Criteria {
private static final String DEFAULT_CRITERION_NAME = "script";
private String script;
private String async;
public ExecuteCriteria() {
super();
}
public ExecuteCriteria(String script) {
this();
this.script = script;
}
public void setScript(String script) {
this.script = script;
}
@Override
public boolean canBeShortNotated() {
return async == null;
}
@Override
public String getDefaultCriterionName() {
return DEFAULT_CRITERION_NAME;
}
@Override
public Object getDefaultCriterionValue() {
return getScript();
}
public String getScript() {
return script;
}
public String getAsync() {
return async;
}
public void setAsync(String async) {
this.async = async;
}
@Override
public String toString() {
return "ExecuteCriteria{" +
"script='" + script + '\'' +
", async='" + async + '\'' +
'}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy