View Javadoc
1   /*
2    * Copyright 2013-2023 Medical Information Systems Research Group (https://medical.zcu.cz),
3    * Department of Computer Science and Engineering, University of West Bohemia.
4    * Address: Univerzitni 8, 306 14 Plzen, Czech Republic.
5    *
6    * This file is part of Sparkle project.
7    *
8    * Sparkle is free software: you can redistribute it and/or modify
9    * it under the terms of the GNU General Public License as published by
10   * the Free Software Foundation, either version 3 of the License.
11   *
12   * Sparkle is distributed in the hope that it will be useful,
13   * but WITHOUT ANY WARRANTY; without even the implied warranty of
14   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15   * GNU General Public License for more details.
16   *
17   * You should have received a copy of the GNU General Public License
18   * along with Sparkle. If not, see <http://www.gnu.org/licenses/>.
19   */
20  package cz.zcu.mre.sparkle.data;
21  
22  import cz.zcu.mre.sparkle.data.resourceStorage.ResourcesStorage;
23  
24  /**
25   * Prepravaka s lokalnimi daty: Prepravka pro lokalni mapovani prefixu; seznam
26   * ostatních pojmu; seznam datovych typu; seznam funkci.
27   *
28   * @author Klara Hlavacova, 2017
29   * @author Petr Vcelak (vcelak@kiv.zcu.cz)
30   */
31  public class Storage {
32  
33      /**
34       * mapovani prefixu
35       */
36      private final PrefixesStorage prefixesStorage;
37      /**
38       * seznam ostatních pojmu
39       */
40      private final ResourcesStorage resourcesStorage;
41      /**
42       * seznam datovych typu
43       */
44      private final DataTypesStorage dataTypesStorage;
45      /**
46       * seznam funkci
47       */
48      private final FunctionsStorage functionsStorage;
49  
50      /**
51       *
52       * @param prefixesStorage mapovani prefixu
53       * @param resourcesStorage seznam ostatních pojmu
54       * @param dataTypesStorage seznam datovych typu
55       * @param functionsStorage seznam funkci
56       */
57      public Storage(PrefixesStorage prefixesStorage, ResourcesStorage resourcesStorage,
58              DataTypesStorage dataTypesStorage, FunctionsStorage functionsStorage) {
59          this.prefixesStorage = prefixesStorage;
60          this.resourcesStorage = resourcesStorage;
61          this.dataTypesStorage = dataTypesStorage;
62          this.functionsStorage = functionsStorage;
63      }
64  
65      public Storage(Storage localStorage) {
66          this.prefixesStorage = localStorage.prefixesStorage;
67          this.resourcesStorage = localStorage.resourcesStorage;
68          this.dataTypesStorage = localStorage.dataTypesStorage;
69          this.functionsStorage = localStorage.functionsStorage;
70      }
71  
72      public PrefixesStorage getPrefixesStorage() {
73          return prefixesStorage;
74      }
75  
76      public ResourcesStorage getResourcesStorage() {
77          return resourcesStorage;
78      }
79  
80      public DataTypesStorage getDataTypesStorage() {
81          return dataTypesStorage;
82      }
83  
84      public FunctionsStorage getFunctionsStorage() {
85          return functionsStorage;
86      }
87  }