/**
 * A Rule class...
 *
 * @author    Maurits van Wijland
 */
 
package org.apache.lucene.analysis.nl;

public class Rule {

  private int id = 0;
  private String suffix;
  private String replace;
  private int minrootsize = -1;
  private int condition = 0;
  
  public void initRule(int id, String suffix, String replace, int minrootsize, int condition) {
    this.id = id;
    this.suffix = suffix;
    this.replace = replace;
    this.minrootsize = minrootsize;
    this.condition = condition;   
  }
  
  public void Rule() {
   this.id = 0;
    this.suffix = "";
    this.replace = "";
    this.minrootsize = -1;
    this.condition = 0;     
 }
  
  
  //Setters
  public void setId(int id) {
    this.id = id;
  }
  public void setSuffix(String suffix) {
    this.suffix = suffix;
  }
  public void setReplace(String replace) {
    this.replace = replace;
  }
  public void setMinrootsize(int minrootsize) {
    this.minrootsize = minrootsize;
  }
  public void setCondition(int condition) {
    this.condition = condition;
  }
  
  //Getters
  public int getId() {
    return this.id;
  }
  public String getSuffix() {
    return this.suffix;
  }
  public String getReplace() {
    return this.replace;
  }
  public int getMinrootsize() {
    return this.minrootsize;
  }
  public int getCondition() {
    return this.condition;
  }  
}