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

website.automate.waml.io.model.action.ConditionalAction Maven / Gradle / Ivy

There is a newer version: 2.1.3
Show newest version
package website.automate.waml.io.model.action;

import com.fasterxml.jackson.annotation.JsonProperty;

public abstract class ConditionalAction implements Action {

    @JsonProperty("if")
    private String when;
    
    private String unless;
    
    private String meta;
    
    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 boolean canBeShortNotated(){
        return when == null
                && unless == null;
    }
    public String getMeta() {
        return meta;
    }

    public void setMeta(String meta) {
        this.meta = meta;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy