Subversion Repositories bacoAlunos

Rev

Rev 1573 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1573 Rev 1579
Line 1... Line 1...
1
package pt.estgp.estgweb.domain;
1
package pt.estgp.estgweb.domain;
2
 
2
 
-
 
3
import org.apache.log4j.Logger;
-
 
4
import org.json.JSONArray;
-
 
5
import org.json.JSONException;
3
import pt.estgp.estgweb.domain.utils.InputDriven;
6
import pt.estgp.estgweb.domain.utils.InputDriven;
4
import pt.estgp.estgweb.domain.utils.InputDrivenInput;
7
import pt.estgp.estgweb.domain.utils.InputDrivenInput;
-
 
8
import pt.estgp.estgweb.services.questionarios.pedagogico.reportprocessors.ReportGenerator;
5
 
9
 
6
import java.util.List;
10
import java.util.List;
7
 
11
 
8
/**
12
/**
9
 * Created by jorgemachado on 05/11/16.
13
 * Created by jorgemachado on 05/11/16.
10
 */
14
 */
11
public abstract class QuestionarioReportFileGroupImpl extends QuestionarioReportFileGroup implements InputDriven
15
public abstract class QuestionarioReportFileGroupImpl extends QuestionarioReportFileGroup implements InputDriven
12
{
16
{
13
 
17
 
-
 
18
    private static final 1.5.0/docs/api/java/util/logging/Logger.html">Logger logger = 1.5.0/docs/api/java/util/logging/Logger.html">Logger.getLogger(QuestionarioReportFileGroupImpl.class);
14
    @1.5.0/docs/api/java/lang/Override.html">Override
19
    @1.5.0/docs/api/java/lang/Override.html">Override
15
    public abstract List<InputDrivenInput> getInputs();
20
    public abstract List<InputDrivenInput> getInputs();
-
 
21
    public abstract 1.5.0/docs/api/java/lang/String.html">String getInputsJson() throws JSONException;
-
 
22
    public abstract JSONArray getInputsJsonArray() throws JSONException;
-
 
23
 
-
 
24
    public ReportGenerator getReportGeneratorInstance()
-
 
25
    {
-
 
26
        try {
-
 
27
            return (ReportGenerator) 1.5.0/docs/api/java/lang/Class.html">Class.forName(getReportProcessorClass()).newInstance();
-
 
28
        } catch (1.5.0/docs/api/java/lang/InstantiationException.html">InstantiationException e) {
-
 
29
            logger.error(e,e);
-
 
30
            throw new 1.5.0/docs/api/java/lang/RuntimeException.html">RuntimeException(e);
-
 
31
        } catch (1.5.0/docs/api/java/lang/IllegalAccessException.html">IllegalAccessException e) {
-
 
32
            logger.error(e, e);
-
 
33
            throw new 1.5.0/docs/api/java/lang/RuntimeException.html">RuntimeException(e);
-
 
34
        } catch (1.5.0/docs/api/java/lang/ClassNotFoundException.html">ClassNotFoundException e) {
-
 
35
            logger.error(e, e);
-
 
36
            throw new 1.5.0/docs/api/java/lang/RuntimeException.html">RuntimeException(e);
-
 
37
        }
-
 
38
    }
16
 
39
 
17
}
40
}