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

com.commercetools.rmf.validators.RuleSet 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.JsonCreator;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;

import java.util.ArrayList;
import java.util.List;

@JacksonXmlRootElement(localName = "ruleset")
public class RuleSet {
    @JacksonXmlProperty(localName = "name")
    private String name;

    @JacksonXmlProperty(localName = "apply")
    private List apply = new ArrayList<>();

    @JacksonXmlElementWrapper(localName = "rules")
    @JacksonXmlProperty(localName = "rule")
    private List rules;

    @JsonCreator
    public RuleSet() {
    }

    public RuleSet(String name, List rules) {
        this.name = name;
        this.rules = rules;
    }

    public RuleSet(String name, List apply, List rules) {
        this.name = name;
        this.apply = apply;
        this.rules = rules;
    }

    public String getName() {
        return name;
    }

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

    public List getRules() {
        return rules;
    }

    public void setRules(List rules) {
        this.rules = rules;
    }

    public List getApply() {
        return apply;
    }

    public void setApply(List apply) {
        this.apply = apply;
    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy