Converted all CRLF to LF.
[indepmod/mmn.git] / IndependentModeler / src / cz / cvut / promod / services / projectService / results / LoadProjectResult.java
blob38f66ad7451bd55550c4d15389443a9921e8cb0d
1 package cz.cvut.promod.services.projectService.results;
3 import cz.cvut.promod.services.projectService.treeProjectNode.ProjectRoot;
5 import java.util.List;
7 /**
8 * ProMod, master thesis project
9 * User: Petr Zverina, petr.zverina@gmail.com
10 * Date: 23:32:57, 8.2.2010
13 /**
14 * Class for representing a return value of loadProject(String) method defined in ProjectControlService interface.
16 * If the ProjectRoot and event the message are null, it was not possible to load file. Possible reason is not valid
17 * project file.
19 public class LoadProjectResult{
21 private final ProjectRoot projectRoot;
23 private final List<ConfigurationDifference> messages;
26 public LoadProjectResult(final ProjectRoot projectRoot, final List<ConfigurationDifference> messages) {
27 this.projectRoot = projectRoot;
28 this.messages = messages;
31 /**
32 * Returns the project root.
34 * @return the loaded project root.
36 public ProjectRoot getProjectRoot() {
37 return projectRoot;
40 /**
41 * Returns list of messages about ProMod configuration differences.
43 * @return list of messages about ProMod configuration differences
45 public List<ConfigurationDifference> getMessages() {
46 return messages;