View Javadoc
1   package fr.ifremer.reefdb.dto.referential.pmfm;
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 javax.annotation.Generated;
28  
29  @Generated(value = "org.nuiton.eugene.java.SimpleJavaBeanTransformer", date = "Mon May 09 09:01:00 CEST 2022")
30  public abstract class AbstractParameterGroupDTOBean extends BaseReferentialDTOBean implements ParameterGroupDTO {
31  
32      private static final long serialVersionUID = 3486175567243404337L;
33  
34      protected String description;
35  
36      protected ParameterGroupDTO parentParameterGroup;
37  
38      @Override
39      public String getDescription() {
40          return description;
41      }
42  
43      @Override
44      public void setDescription(String description) {
45          String oldValue = getDescription();
46          this.description = description;
47          firePropertyChange(PROPERTY_DESCRIPTION, oldValue, description);
48      }
49  
50      @Override
51      public ParameterGroupDTO getParentParameterGroup() {
52          return parentParameterGroup;
53      }
54  
55      @Override
56      public void setParentParameterGroup(ParameterGroupDTO parentParameterGroup) {
57          ParameterGroupDTO oldValue = getParentParameterGroup();
58          this.parentParameterGroup = parentParameterGroup;
59          firePropertyChange(PROPERTY_PARENT_PARAMETER_GROUP, oldValue, parentParameterGroup);
60      }
61  
62  } //AbstractParameterGroupDTOBean