View Javadoc
1   package fr.ifremer.reefdb.dto.configuration.filter.location;
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.reefdb.dto.configuration.filter.FilterCriteriaDTOBean;
27  import fr.ifremer.reefdb.dto.configuration.programStrategy.ProgramDTO;
28  import fr.ifremer.reefdb.dto.referential.GroupingDTO;
29  import fr.ifremer.reefdb.dto.referential.GroupingTypeDTO;
30  import javax.annotation.Generated;
31  
32  @Generated(value = "org.nuiton.eugene.java.SimpleJavaBeanTransformer", date = "Mon May 09 09:01:00 CEST 2022")
33  public abstract class AbstractLocationCriteriaDTOBean extends FilterCriteriaDTOBean implements LocationCriteriaDTO {
34  
35      private static final long serialVersionUID = 7077515881691165284L;
36  
37      protected String label;
38  
39      protected GroupingTypeDTO groupingType;
40  
41      protected GroupingDTO grouping;
42  
43      protected ProgramDTO program;
44  
45      @Override
46      public String getLabel() {
47          return label;
48      }
49  
50      @Override
51      public void setLabel(String label) {
52          String oldValue = getLabel();
53          this.label = label;
54          firePropertyChange(PROPERTY_LABEL, oldValue, label);
55      }
56  
57      @Override
58      public GroupingTypeDTO getGroupingType() {
59          return groupingType;
60      }
61  
62      @Override
63      public void setGroupingType(GroupingTypeDTO groupingType) {
64          GroupingTypeDTO oldValue = getGroupingType();
65          this.groupingType = groupingType;
66          firePropertyChange(PROPERTY_GROUPING_TYPE, oldValue, groupingType);
67      }
68  
69      @Override
70      public GroupingDTO getGrouping() {
71          return grouping;
72      }
73  
74      @Override
75      public void setGrouping(GroupingDTO grouping) {
76          GroupingDTO oldValue = getGrouping();
77          this.grouping = grouping;
78          firePropertyChange(PROPERTY_GROUPING, oldValue, grouping);
79      }
80  
81      @Override
82      public ProgramDTO getProgram() {
83          return program;
84      }
85  
86      @Override
87      public void setProgram(ProgramDTO program) {
88          ProgramDTO oldValue = getProgram();
89          this.program = program;
90          firePropertyChange(PROPERTY_PROGRAM, oldValue, program);
91      }
92  
93  } //AbstractLocationCriteriaDTOBean