package eu.dnetlib.enabling.datastructures;

import java.util.Set;

public class AtomicCleaningRule {

	private String xpath = null;
	private String groovy = null;
	private Set<String> vocabularies = null;
	private boolean strict = true;

	public AtomicCleaningRule() {}

	public AtomicCleaningRule(final String xpath, final Set<String> vocabularies) {
		this(xpath, null, vocabularies, true);
	}

	public AtomicCleaningRule(final String xpath, final String groovy) {
		this(xpath, groovy, null, true);
	}

	private AtomicCleaningRule(final String xpath, final String groovy, final Set<String> vocabularies, final boolean strict) {
		this.xpath = xpath;
		this.groovy = groovy;
		this.vocabularies = vocabularies;
		this.strict = strict;
	}

	public String getXpath() {
		return xpath;
	}

	public void setXpath(final String xpath) {
		this.xpath = xpath;
	}

	public String getGroovy() {
		return groovy;
	}

	public void setGroovy(final String groovy) {
		this.groovy = groovy;
	}

	public Set<String> getVocabularies() {
		return vocabularies;
	}

	public void setVocabularies(final Set<String> vocabularies) {
		this.vocabularies = vocabularies;
	}

	public boolean isStrict() {
		return strict;
	}

	public void setStrict(final boolean strict) {
		this.strict = strict;
	}

}
