Rev 1573 | Rev 1754 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1573 | Rev 1619 | ||
---|---|---|---|
Line 151... | Line 151... | ||
151 | 151 | ||
152 | for(int i = 1; i <=40;i++) |
152 | for(int i = 1; i <=40;i++) |
153 | { |
153 | { |
154 | 154 | ||
155 | try { |
155 | try { |
- | 156 | 1.5.0/docs/api/java/lang/String.html">String seccao = ConfigProperties.getProperty("questionario.p" + i + ".seccao"); |
|
156 | 1.5.0/docs/api/java/lang/String.html">String group = ConfigProperties.getProperty("questionario.p" + i + ".group"); |
157 | 1.5.0/docs/api/java/lang/String.html">String group = ConfigProperties.getProperty("questionario.p" + i + ".group"); |
157 | 1.5.0/docs/api/java/lang/reflect/Method.html">Method m = this.getClass().getMethod("setP" + i + "Group",1.5.0/docs/api/java/lang/String.html">String.class); |
158 | 1.5.0/docs/api/java/lang/reflect/Method.html">Method m = this.getClass().getMethod("setP" + i + "Group",1.5.0/docs/api/java/lang/String.html">String.class); |
158 | m.invoke(this,group); |
159 | m.invoke(this,group); |
159 | 160 | ||
- | 161 | 1.5.0/docs/api/java/lang/reflect/Method.html">Method mS = this.getClass().getMethod("setP" + i + "Section",1.5.0/docs/api/java/lang/String.html">String.class); |
|
- | 162 | mS.invoke(this,seccao); |
|
- | 163 | ||
160 | if(ConfigProperties.containsProperty("questionario.p" + i + ".subgroup")) |
164 | if(ConfigProperties.containsProperty("questionario.p" + i + ".subgroup")) |
161 | { |
165 | { |
162 | 1.5.0/docs/api/java/lang/String.html">String subGroup = ConfigProperties.getProperty("questionario.p" + i + ".subgroup"); |
166 | 1.5.0/docs/api/java/lang/String.html">String subGroup = ConfigProperties.getProperty("questionario.p" + i + ".subgroup"); |
163 | 1.5.0/docs/api/java/lang/reflect/Method.html">Method mSub = this.getClass().getMethod("setP" + i + "SubGroup",1.5.0/docs/api/java/lang/String.html">String.class); |
167 | 1.5.0/docs/api/java/lang/reflect/Method.html">Method mSub = this.getClass().getMethod("setP" + i + "SubGroup",1.5.0/docs/api/java/lang/String.html">String.class); |
164 | mSub.invoke(this,subGroup); |
168 | mSub.invoke(this,subGroup); |
Line 183... | Line 187... | ||
183 | 187 | ||
184 | for(int i = 1; i <=10;i++) |
188 | for(int i = 1; i <=10;i++) |
185 | { |
189 | { |
186 | 190 | ||
187 | try { |
191 | try { |
- | 192 | 1.5.0/docs/api/java/lang/String.html">String seccao = ConfigProperties.getProperty("questionario.e" + i + ".seccao"); |
|
188 | 1.5.0/docs/api/java/lang/String.html">String group = ConfigProperties.getProperty("questionario.e" + i + ".group"); |
193 | 1.5.0/docs/api/java/lang/String.html">String group = ConfigProperties.getProperty("questionario.e" + i + ".group"); |
189 | 1.5.0/docs/api/java/lang/reflect/Method.html">Method m = this.getClass().getMethod("setE" + i + "Group",1.5.0/docs/api/java/lang/String.html">String.class); |
194 | 1.5.0/docs/api/java/lang/reflect/Method.html">Method m = this.getClass().getMethod("setE" + i + "Group",1.5.0/docs/api/java/lang/String.html">String.class); |
190 | m.invoke(this,group); |
195 | m.invoke(this,group); |
191 | 196 | ||
- | 197 | 1.5.0/docs/api/java/lang/reflect/Method.html">Method mS = this.getClass().getMethod("setE" + i + "Section",1.5.0/docs/api/java/lang/String.html">String.class); |
|
- | 198 | mS.invoke(this,seccao); |
|
- | 199 | ||
192 | if(ConfigProperties.containsProperty("questionario.e" + i + ".subgroup")) |
200 | if(ConfigProperties.containsProperty("questionario.e" + i + ".subgroup")) |
193 | { |
201 | { |
194 | 1.5.0/docs/api/java/lang/String.html">String subGroup = ConfigProperties.getProperty("questionario.e" + i + ".subgroup"); |
202 | 1.5.0/docs/api/java/lang/String.html">String subGroup = ConfigProperties.getProperty("questionario.e" + i + ".subgroup"); |
195 | 1.5.0/docs/api/java/lang/reflect/Method.html">Method mSub = this.getClass().getMethod("setE" + i + "SubGroup",1.5.0/docs/api/java/lang/String.html">String.class); |
203 | 1.5.0/docs/api/java/lang/reflect/Method.html">Method mSub = this.getClass().getMethod("setE" + i + "SubGroup",1.5.0/docs/api/java/lang/String.html">String.class); |
196 | mSub.invoke(this,subGroup); |
204 | mSub.invoke(this,subGroup); |