website.automate.waml.io.model.main.criteria.DefineCriteria 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;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Map;
public class DefineCriteria implements Criteria {
private static final String DEFAULT_CRITERION_NAME = "facts";
private Map facts;
public DefineCriteria() {
super();
}
@JsonCreator
public DefineCriteria(Map facts) {
this();
this.facts = facts;
}
public Map getFacts() {
return facts;
}
public void setFacts(Map facts) {
this.facts = facts;
}
@Override
public boolean canBeShortNotated() {
return true;
}
@Override
public String getDefaultCriterionName() {
return DEFAULT_CRITERION_NAME;
}
@Override
public Map getDefaultCriterionValue() {
return getFacts();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy