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

com.commercetools.rmf.validators.Rule Maven / Gradle / Ivy

Go to download

RAML API client code generators based on the REST Modeling Framework. https://github.com/vrapio/rest-modeling-framework

There is a newer version: 1.0.0-20241120142200
Show newest version
package com.commercetools.rmf.validators;

import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;

import java.util.List;
import java.util.Map;

public class Rule {
    @JacksonXmlProperty(localName = "name")
    private String name;

    @JacksonXmlElementWrapper(localName = "options")
    private List options;

    @JacksonXmlProperty(localName = "severity")
    private RuleSeverity severity;

    @JacksonXmlProperty(localName = "enabled")
    private Boolean enabled = true;

    @JsonCreator
    public Rule() {
    }

    public Rule(String name, RuleSeverity severity, List options) {
        this.name = name;
        this.options = options;
        this.severity = severity;
    }

    public Rule(String name, RuleSeverity severity, List options, Boolean enabled) {
        this.name = name;
        this.options = options;
        this.severity = severity;
        this.enabled = enabled;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List getOptions() {
        return options;
    }

    public void setOptions(List options) {
        this.options = options;
    }

    public RuleSeverity getSeverity() {
        return severity;
    }

    public void setSeverity(RuleSeverity severity) {
        this.severity = severity;
    }

    public Boolean getEnabled() {
        return enabled;
    }

    public void setEnabled(Boolean enabled) {
        this.enabled = enabled;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy