001/*
002 * Sonar, open source software quality management tool.
003 * Copyright (C) 2008-2012 SonarSource
004 * mailto:contact AT sonarsource DOT com
005 *
006 * Sonar is free software; you can redistribute it and/or
007 * modify it under the terms of the GNU Lesser General Public
008 * License as published by the Free Software Foundation; either
009 * version 3 of the License, or (at your option) any later version.
010 *
011 * Sonar is distributed in the hope that it will be useful,
012 * but WITHOUT ANY WARRANTY; without even the implied warranty of
013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
014 * Lesser General Public License for more details.
015 *
016 * You should have received a copy of the GNU Lesser General Public
017 * License along with Sonar; if not, write to the Free Software
018 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02
019 */
020package org.sonar.core.filter;
021
022/**
023 * @since 3.1
024 */
025public final class CriterionDto {
026  private Long id;
027  private Long filterId;
028  private String family;
029  private String key;
030  private String operator;
031  private String textValue;
032  private Float value;
033  private Boolean variation;
034
035  /**
036   * @return the id
037   */
038  public Long getId() {
039    return id;
040  }
041
042  /**
043   * @return the family
044   */
045  public String getFamily() {
046    return family;
047  }
048
049  /**
050   * @return the filter id
051   */
052  public Long getFilterId() {
053    return filterId;
054  }
055
056  /**
057   * @return the key
058   */
059  public String getKey() {
060    return key;
061  }
062
063  /**
064   * @return the operator
065   */
066  public String getOperator() {
067    return operator;
068  }
069
070  /**
071   * @return the text value
072   */
073  public String getTextValue() {
074    return textValue;
075  }
076
077  /**
078   * @return the value
079   */
080  public Float getValue() {
081    return value;
082  }
083
084  /**
085   * @return the variation
086   */
087  public Boolean getVariation() {
088    return variation;
089  }
090
091  /**
092   * @param family the id to set
093   */
094  public CriterionDto setId(Long id) {
095    this.id = id;
096    return this;
097  }
098
099  /**
100   * @param family the family to set
101   */
102  public CriterionDto setFamily(String family) {
103    this.family = family;
104    return this;
105  }
106
107  /**
108   * @param filterId the filter id to set
109   */
110  public CriterionDto setFilterId(Long filterId) {
111    this.filterId = filterId;
112    return this;
113  }
114
115  /**
116   * @param key the key to set
117   */
118  public CriterionDto setKey(String key) {
119    this.key = key;
120    return this;
121  }
122
123  /**
124   * @param operator the operator to set
125   */
126  public CriterionDto setOperator(String operator) {
127    this.operator = operator;
128    return this;
129  }
130
131  /**
132   * @param textValue the textValue to set
133   */
134  public CriterionDto setTextValue(String textValue) {
135    this.textValue = textValue;
136    return this;
137  }
138
139  /**
140   * @param value the value to set
141   */
142  public CriterionDto setValue(Float value) {
143    this.value = value;
144    return this;
145  }
146
147  /**
148   * @param variation the variation to set
149   */
150  public CriterionDto setVariation(Boolean variation) {
151    this.variation = variation;
152    return this;
153  }
154}