View Javadoc
1   package fr.ifremer.reefdb.dto.configuration.control;
2   
3   /*-
4    * #%L
5    * Reef DB :: Core
6    * $Id:$
7    * $HeadURL:$
8    * %%
9    * Copyright (C) 2014 - 2022 Ifremer
10   * %%
11   * This program is free software: you can redistribute it and/or modify
12   * it under the terms of the GNU Affero General Public License as published by
13   * the Free Software Foundation, either version 3 of the License, or
14   * (at your option) any later version.
15   * 
16   * This program is distributed in the hope that it will be useful,
17   * but WITHOUT ANY WARRANTY; without even the implied warranty of
18   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19   * GNU General Public License for more details.
20   * 
21   * You should have received a copy of the GNU Affero General Public License
22   * along with this program.  If not, see <http://www.gnu.org/licenses/>.
23   * #L%
24   */
25  
26  import fr.ifremer.quadrige3.ui.core.dto.referential.BaseReferentialDTOBean;
27  import fr.ifremer.reefdb.dto.referential.pmfm.QualitativeValueDTO;
28  import javax.annotation.Generated;
29  
30  @Generated(value = "org.nuiton.eugene.java.SimpleJavaBeanTransformer", date = "Mon May 09 09:01:00 CEST 2022")
31  public abstract class AbstractNumericPreconditionDTOBean extends BaseReferentialDTOBean implements NumericPreconditionDTO {
32  
33      private static final long serialVersionUID = 3762024347269870946L;
34  
35      protected Double min;
36  
37      protected Double max;
38  
39      protected QualitativeValueDTO qualitativeValue;
40  
41      @Override
42      public Double getMin() {
43          return min;
44      }
45  
46      @Override
47      public void setMin(Double min) {
48          Double oldValue = getMin();
49          this.min = min;
50          firePropertyChange(PROPERTY_MIN, oldValue, min);
51      }
52  
53      @Override
54      public Double getMax() {
55          return max;
56      }
57  
58      @Override
59      public void setMax(Double max) {
60          Double oldValue = getMax();
61          this.max = max;
62          firePropertyChange(PROPERTY_MAX, oldValue, max);
63      }
64  
65      @Override
66      public QualitativeValueDTO getQualitativeValue() {
67          return qualitativeValue;
68      }
69  
70      @Override
71      public void setQualitativeValue(QualitativeValueDTO qualitativeValue) {
72          QualitativeValueDTO oldValue = getQualitativeValue();
73          this.qualitativeValue = qualitativeValue;
74          firePropertyChange(PROPERTY_QUALITATIVE_VALUE, oldValue, qualitativeValue);
75      }
76  
77  } //AbstractNumericPreconditionDTOBean