com.commercetools.rmf.validators.RuleSet Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ctp-validators Show documentation
Show all versions of ctp-validators Show documentation
RAML API client code generators based on the REST Modeling Framework. https://github.com/vrapio/rest-modeling-framework
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;
}
}