Salome HOME
ScenarioService.getScenarioInfo method is added.
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / service / dto / FileDTO.java
1 /*****************************************************************************
2  * Company         OPEN CASCADE
3  * Application     SIMAN
4  * File            $Id$ 
5  * Creation date   14.11.2012
6  * @author         $Author$
7  * @version        $Revision$
8  * @copyright      OPEN CASCADE 2012
9  *****************************************************************************/
10
11 package org.splat.service.dto;
12
13 /**
14  * Document's file DTO.
15  */
16 public class FileDTO {
17
18         /**
19          * True if the file is a result file for a document.
20          */
21         private boolean _isResult; // RKV: NOPMD: isResult method is used as getter
22         /**
23          * File state: "Y" - actual, "O" - outdated, "N" - taken from other study.
24          */
25         private char _state;
26         /**
27          * Automatic processing instruction: "file-import", "file-download", etc.
28          */
29         private String _processing;
30         /**
31          * File path from the repository root.
32          */
33         private String _path;
34
35         /**
36          * Constructor with initialization.
37          * 
38          * @param relativePath
39          *            relative file path
40          * @param state
41          *            file state
42          */
43         public FileDTO(final String relativePath, final char state) {
44                 _path = relativePath;
45                 _state = state;
46         }
47
48         /**
49          * Get the isResult.
50          * 
51          * @return the isResult
52          */
53         public boolean isResult() {
54                 return _isResult;
55         }
56
57         /**
58          * Set the isResult.
59          * 
60          * @param isResult
61          *            the isResult to set
62          */
63         public void setResult(final boolean isResult) {
64                 _isResult = isResult;
65         }
66
67         /**
68          * Get the state.
69          * 
70          * @return the state
71          */
72         public char getState() {
73                 return _state;
74         }
75
76         /**
77          * Set the state.
78          * 
79          * @param state
80          *            the state to set
81          */
82         public void setState(final char state) {
83                 _state = state;
84         }
85
86         /**
87          * Get the processing.
88          * 
89          * @return the processing
90          */
91         public String getProcessing() {
92                 return _processing;
93         }
94
95         /**
96          * Set the processing.
97          * 
98          * @param processing
99          *            the processing to set
100          */
101         public void setProcessing(final String processing) {
102                 _processing = processing;
103         }
104
105         /**
106          * Get the path.
107          * 
108          * @return the path
109          */
110         public String getPath() {
111                 return _path;
112         }
113
114         /**
115          * Set the path.
116          * 
117          * @param path
118          *            the path to set
119          */
120         public void setPath(final String path) {
121                 _path = path;
122         }
123 }