@@ -39,16 +39,16 @@ public class ExportXml implements IExport {
39
39
public static String ATTRIBUTE_AnalysisProjectVersion = "analysisProjectVersion" ;
40
40
/** Identifier of element <i>AnalysisProject</i>. */
41
41
public static String ELEMENT_AnalysisProject = "analysisProject" ;
42
- /** Default <i>analysisProject </i> name . */
43
- private String analysisProject_key = "Project name " ;
44
- /** Default <i>analysisAuthor </i> value . */
45
- private String analysisAuthor_key = "Analysis author" ;
46
- /** Default <i>projectVersion </i> value . */
47
- private String analysisProjectVersion_key = "Project version " ;
48
- /** Default <i>projectVersion </i> value . */
49
- private String analysisConfigurationId_key = "Analysis configuration (id) " ;
50
- /** DEfault <i>analysisDate</i> value */
51
- private String analysisDate_key = "Analysis date (YYYY-MM-DD) " ;
42
+ /** <i>PROJECT_NAME </i> parameter . */
43
+ public static final String PARAM_PROJECT_NAME = "ProjectName " ;
44
+ /** Default <i>AUTHOR </i> parameter . */
45
+ public static final String PARAM_AUTHOR = "Analysis author" ;
46
+ /** Default <i>PROJECT_VERSION </i> parameter . */
47
+ public static final String PARAM_PROJECT_VERSION = "ProjectVersion " ;
48
+ /** <i>CONFIGURATION_ID </i> parameter . */
49
+ public static final String PARAM_CONFIGURATION_ID = "AnalysisConfigurationID " ;
50
+ /** DEfault <i>analysisDate</i> parameter */
51
+ public static final String PARAM_DATE = "Date " ;
52
52
/** Parameter required by this export. */
53
53
private Map <String , String > parameters ;
54
54
@@ -58,11 +58,11 @@ public class ExportXml implements IExport {
58
58
*/
59
59
public ExportXml () {
60
60
this .parameters = new TreeMap <>();
61
- this .parameters .put (analysisProject_key , "Unknown" );
62
- this .parameters .put (analysisAuthor_key , "i-Code CNES Analyzer" );
63
- this .parameters .put (analysisProjectVersion_key , "1.0.0" );
64
- this .parameters .put (analysisDate_key , this .currentDate ());
65
- this .parameters .put (analysisConfigurationId_key , "analysis1" );
61
+ this .parameters .put (PARAM_PROJECT_NAME , "Unknown" );
62
+ this .parameters .put (PARAM_AUTHOR , "i-Code CNES Analyzer" );
63
+ this .parameters .put (PARAM_PROJECT_VERSION , "1.0.0" );
64
+ this .parameters .put (PARAM_DATE , this .currentDate ());
65
+ this .parameters .put (PARAM_CONFIGURATION_ID , "analysis1" );
66
66
67
67
}
68
68
@@ -94,9 +94,9 @@ public void export(List<CheckResult> checkResults, File outputFile,
94
94
95
95
final Element analysisProjectElement = new Element (ELEMENT_AnalysisProject );
96
96
analysisProjectElement .setAttribute (
97
- new Attribute (ATTRIBUTE_AnalysisProjectName , parameters .get (analysisProject_key )));
97
+ new Attribute (ATTRIBUTE_AnalysisProjectName , parameters .get (PARAM_PROJECT_NAME )));
98
98
analysisProjectElement .setAttribute (new Attribute (ATTRIBUTE_AnalysisProjectVersion ,
99
- parameters .get (analysisProjectVersion_key )));
99
+ parameters .get (PARAM_PROJECT_VERSION )));
100
100
final Document document = new Document (analysisProjectElement );
101
101
102
102
// BEGINNING OF SEQUENCE <xsd:sequence>
@@ -106,9 +106,9 @@ public void export(List<CheckResult> checkResults, File outputFile,
106
106
107
107
final Element analysisInformation = new Element ("analysisInformations" );
108
108
attributes .add (new Attribute ("analysisConfigurationId" ,
109
- parameters .get (analysisConfigurationId_key )));
110
- attributes .add (new Attribute ("analysisDate" , parameters .get (analysisDate_key )));
111
- attributes .add (new Attribute ("author" , parameters .get (analysisAuthor_key )));
109
+ parameters .get (PARAM_CONFIGURATION_ID )));
110
+ attributes .add (new Attribute ("analysisDate" , parameters .get (PARAM_DATE )));
111
+ attributes .add (new Attribute ("author" , parameters .get (PARAM_AUTHOR )));
112
112
113
113
analysisInformation .setAttributes (attributes );
114
114
document .getRootElement ().addContent (analysisInformation );
0 commit comments