1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.ole;
17
18 import java.util.ArrayList;
19 import java.util.HashMap;
20 import java.util.List;
21 import java.util.Map;
22
23
24
25
26
27
28
29
30
31 public class OleDocStoreData {
32 private String category;
33 private List<String> doctypes = new ArrayList<String>();
34 private List<String> formats = new ArrayList<String>();
35 private Map<String, List<String>> typeFormatMap = new HashMap<String, List<String>>();
36 private Map<String, Integer> formatLevelsMap = new HashMap<String, Integer>();
37 private Map<String, Map<String, Long>> typeFormatMapWithNodeCount = new HashMap<String, Map<String, Long>>();
38
39 public String getCategory() {
40 return category;
41 }
42
43 public void setCategory(String category) {
44 this.category = category;
45 }
46
47 public Map<String, List<String>> getTypeFormatMap() {
48 return typeFormatMap;
49 }
50
51 public List<String> getDoctypes() {
52 return doctypes;
53 }
54
55 public void setDoctypes(List<String> doctypes) {
56 this.doctypes = doctypes;
57 }
58
59 public void addDocType(String docType) {
60 if (!this.doctypes.contains(docType)) {
61 this.doctypes.add(docType);
62 }
63 }
64
65 public void addFormat(String docType, String format) {
66 List<String> formatsList = null;
67 if (!this.typeFormatMap.containsKey(docType)) {
68 this.typeFormatMap.put(docType, new ArrayList<String>());
69 }
70
71 formatsList = this.typeFormatMap.get(docType);
72
73 if (!formatsList.contains(format)) {
74 formatsList.add(format);
75 formats.add(format);
76 }
77 this.typeFormatMap.put(docType, formatsList);
78 }
79
80 public void addLevelInfoForFormat(String format, Integer levels) {
81 formatLevelsMap.put(format, levels);
82 }
83
84 public Map<String, Map<String, Long>> getTypeFormatMapWithNodeCount() {
85 return typeFormatMapWithNodeCount;
86 }
87
88 public void setTypeFormatMapWithNodeCount(Map<String, Map<String, Long>> typeFormatMapWithNodeCount) {
89 this.typeFormatMapWithNodeCount = typeFormatMapWithNodeCount;
90 }
91
92 public Map<String, Integer> getFormatLevelsMap() {
93 return formatLevelsMap;
94 }
95
96 public void setFormatLevelsMap(Map<String, Integer> formatLevelsMap) {
97 this.formatLevelsMap = formatLevelsMap;
98 }
99
100 public List<String> getFormats() {
101 return formats;
102 }
103 }