View Javadoc
1   package fr.ifremer.tutti.persistence.entities.protocol.v1;
2   
3   /*
4    * #%L
5    * Tutti :: Persistence
6    * %%
7    * Copyright (C) 2012 - 2014 Ifremer
8    * %%
9    * This program is free software: you can redistribute it and/or modify
10   * it under the terms of the GNU General Public License as
11   * published by the Free Software Foundation, either version 3 of the 
12   * License, or (at your option) any later version.
13   * 
14   * This program is distributed in the hope that it will be useful,
15   * but WITHOUT ANY WARRANTY; without even the implied warranty of
16   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17   * GNU General Public License for more details.
18   * 
19   * You should have received a copy of the GNU General Public 
20   * License along with this program.  If not, see
21   * <http://www.gnu.org/licenses/gpl-3.0.html>.
22   * #L%
23   */
24  
25  import fr.ifremer.tutti.persistence.entities.CommentAware;
26  import fr.ifremer.tutti.persistence.entities.TuttiEntity;
27  
28  import java.util.Collection;
29  import java.util.List;
30  
31  /**
32   * To migrate old protocol to last version.
33   *
34   * @author Tony Chemit - chemit@codelutin.com
35   * @since 2.4
36   */
37  public interface TuttiProtocol1 extends CommentAware, TuttiEntity {
38  
39      String PROPERTY_NAME = "name";
40  
41      String PROPERTY_COMMENT = "comment";
42  
43      String PROPERTY_GEAR_USE_FEATURE_PMFM_ID = "gearUseFeaturePmfmId";
44  
45      String PROPERTY_VESSEL_USE_FEATURE_PMFM_ID = "vesselUseFeaturePmfmId";
46  
47      String PROPERTY_LENGTH_CLASSES_PMFM_ID = "lengthClassesPmfmId";
48  
49      String PROPERTY_SPECIES = "species";
50  
51      String PROPERTY_BENTHOS = "benthos";
52  
53      String getName();
54  
55      void setName(String name);
56  
57      String getComment();
58  
59      void setComment(String comment);
60  
61      String getGearUseFeaturePmfmId(int index);
62  
63      boolean isGearUseFeaturePmfmIdEmpty();
64  
65      int sizeGearUseFeaturePmfmId();
66  
67      void addGearUseFeaturePmfmId(String gearUseFeaturePmfmId);
68  
69      void addAllGearUseFeaturePmfmId(Collection<String> gearUseFeaturePmfmId);
70  
71      boolean removeGearUseFeaturePmfmId(String gearUseFeaturePmfmId);
72  
73      boolean removeAllGearUseFeaturePmfmId(Collection<String> gearUseFeaturePmfmId);
74  
75      boolean containsGearUseFeaturePmfmId(String gearUseFeaturePmfmId);
76  
77      boolean containsAllGearUseFeaturePmfmId(Collection<String> gearUseFeaturePmfmId);
78  
79      List<String> getGearUseFeaturePmfmId();
80  
81      void setGearUseFeaturePmfmId(List<String> gearUseFeaturePmfmId);
82  
83      String getVesselUseFeaturePmfmId(int index);
84  
85      boolean isVesselUseFeaturePmfmIdEmpty();
86  
87      int sizeVesselUseFeaturePmfmId();
88  
89      void addVesselUseFeaturePmfmId(String vesselUseFeaturePmfmId);
90  
91      void addAllVesselUseFeaturePmfmId(Collection<String> vesselUseFeaturePmfmId);
92  
93      boolean removeVesselUseFeaturePmfmId(String vesselUseFeaturePmfmId);
94  
95      boolean removeAllVesselUseFeaturePmfmId(Collection<String> vesselUseFeaturePmfmId);
96  
97      boolean containsVesselUseFeaturePmfmId(String vesselUseFeaturePmfmId);
98  
99      boolean containsAllVesselUseFeaturePmfmId(Collection<String> vesselUseFeaturePmfmId);
100 
101     List<String> getVesselUseFeaturePmfmId();
102 
103     void setVesselUseFeaturePmfmId(List<String> vesselUseFeaturePmfmId);
104 
105     String getLengthClassesPmfmId(int index);
106 
107     boolean isLengthClassesPmfmIdEmpty();
108 
109     int sizeLengthClassesPmfmId();
110 
111     void addLengthClassesPmfmId(String lengthClassesPmfmId);
112 
113     void addAllLengthClassesPmfmId(Collection<String> lengthClassesPmfmId);
114 
115     boolean removeLengthClassesPmfmId(String lengthClassesPmfmId);
116 
117     boolean removeAllLengthClassesPmfmId(Collection<String> lengthClassesPmfmId);
118 
119     boolean containsLengthClassesPmfmId(String lengthClassesPmfmId);
120 
121     boolean containsAllLengthClassesPmfmId(Collection<String> lengthClassesPmfmId);
122 
123     List<String> getLengthClassesPmfmId();
124 
125     void setLengthClassesPmfmId(List<String> lengthClassesPmfmId);
126 
127     SpeciesProtocol1 getSpecies(int index);
128 
129     boolean isSpeciesEmpty();
130 
131     int sizeSpecies();
132 
133     void addSpecies(SpeciesProtocol1 species);
134 
135     void addAllSpecies(Collection<SpeciesProtocol1> species);
136 
137     boolean removeSpecies(SpeciesProtocol1 species);
138 
139     boolean removeAllSpecies(Collection<SpeciesProtocol1> species);
140 
141     boolean containsSpecies(SpeciesProtocol1 species);
142 
143     boolean containsAllSpecies(Collection<SpeciesProtocol1> species);
144 
145     List<SpeciesProtocol1> getSpecies();
146 
147     void setSpecies(List<SpeciesProtocol1> species);
148 
149     SpeciesProtocol1 getBenthos(int index);
150 
151     boolean isBenthosEmpty();
152 
153     int sizeBenthos();
154 
155     void addBenthos(SpeciesProtocol1 benthos);
156 
157     void addAllBenthos(Collection<SpeciesProtocol1> benthos);
158 
159     boolean removeBenthos(SpeciesProtocol1 benthos);
160 
161     boolean removeAllBenthos(Collection<SpeciesProtocol1> benthos);
162 
163     boolean containsBenthos(SpeciesProtocol1 benthos);
164 
165     boolean containsAllBenthos(Collection<SpeciesProtocol1> benthos);
166 
167     List<SpeciesProtocol1> getBenthos();
168 
169     void setBenthos(List<SpeciesProtocol1> benthos);
170 
171 }