website.automate.waml.io.model.Scenario 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
package website.automate.waml.io.model;
import java.util.List;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import website.automate.waml.io.model.action.Action;
@JsonPropertyOrder({"name", "meta", "precedence", "description", "fragment", "timeout", "if", "unless", "steps"})
public class Scenario {
private String name;
private String meta;
private Integer precedence = -1;
private String description;
private Boolean fragment = false;
private String timeout = "5";
@JsonProperty("if")
private String when;
private String unless;
private List steps;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Integer getPrecedence() {
return precedence;
}
public void setPrecedence(Integer precedence) {
this.precedence = precedence;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public Boolean getFragment() {
return fragment;
}
public void setFragment(Boolean fragment) {
this.fragment = fragment;
}
public String getTimeout() {
return timeout;
}
public void setTimeout(String timeout) {
this.timeout = timeout;
}
public String getWhen() {
return when;
}
public void setWhen(String when) {
this.when = when;
}
public String getUnless() {
return unless;
}
public void setUnless(String unless) {
this.unless = unless;
}
public List getSteps() {
return steps;
}
public void setSteps(List steps) {
this.steps = steps;
}
public String getMeta() {
return meta;
}
public void setMeta(String meta) {
this.meta = meta;
}
@Override
public int hashCode() {
return Objects.hash(name);
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
Scenario other = (Scenario) obj;
if (name == null) {
if (other.name != null)
return false;
} else if (!name.equals(other.name))
return false;
return true;
}
}