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

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

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