Converted all CRLF to LF.
[indepmod/experimental.git] / IndependentModeler / src / cz / cvut / promod / services / projectService / results / ConfigurationDifference.java
blob051e90559a27c38c20cb0e04fbf4a5a61d592954
1 package cz.cvut.promod.services.projectService.results;
3 /**
4 * ProMod, master thesis project
5 * User: Petr Zverina, petr.zverina@gmail.com
6 * Date: 23:43:20, 8.2.2010
7 */
9 /**
10 * Dialog showing ProMod configuration changes between actual configuration and the one loaded from a project file.
12 public class ConfigurationDifference {
14 public static enum ChangeType{
15 /**
16 * There is referred a notation that does NOT exist in actual configuration of ProMod
17 * Message contains the identifier of the non existing notation.
19 MISSING_NOTATION,
21 /**
22 * There is referred a module that does NOT exist in actual configuration of ProMod.
23 * Message contains the identifier of the non existing module.
25 MISSING_MODULE,
27 /**
28 * There is referred a extension that does NOT exist in actual configuration of ProMod.
29 * Message contains the identifier of the non existing extension.
31 MISSING_EXTENSION,
33 /**
34 * There is an existing notation but has a different full name.
35 * Message contains the full name acquired from the project file.
37 DIFFERENT_FULL_NAME,
39 /**
40 * There is an existing notation but has a different abbreviation.
41 * Message contains the abbreviation acquired from the project file.
43 DIFFERENT_ABBREVIATION,
45 /**
46 * There is an existing notation but has a different extension.
47 * Message contains the extension acquired from the project file.
49 DIFFERENT_EXTENSION,
52 private final ChangeType changeType;
54 private final String message;
56 private final String identifier;
59 public ConfigurationDifference(final ChangeType changeType, final String message) {
60 this.changeType = changeType;
61 this.message = message;
63 this.identifier = null;
66 public ConfigurationDifference(final ChangeType changeType, final String message, final String identifier) {
67 this.changeType = changeType;
68 this.message = message;
70 this.identifier = identifier;
73 /**
74 * @return the configuration change type
76 public ChangeType getChangeType() {
77 return changeType;
80 /**
81 * @return the configuration change message
83 public String getMessage() {
84 return message;
87 /**
88 * @return the plugin identifier
90 public String getIdentifier() {
91 return identifier;