1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.ole;
17
18 import java.io.File;
19 import java.util.List;
20 import java.util.Map;
21
22
23
24
25
26
27
28
29 public class CategoryInfoObject {
30 private String category;
31 private String type;
32 private List<String> formats;
33 private Map<String, String> directoryPath;
34 private Map<String, List<File>> files;
35
36
37 public String getType() {
38 return type;
39 }
40
41 public void setType(String type) {
42 this.type = type;
43 }
44
45 public String getCategory() {
46 return category;
47 }
48
49 public void setCategory(String category) {
50 this.category = category;
51 }
52
53 public List<String> getFormats() {
54 return formats;
55 }
56
57 public void setFormats(List<String> formats) {
58 this.formats = formats;
59 }
60
61 public Map<String, String> getDirectoryPath() {
62 return directoryPath;
63 }
64
65 public void setDirectoryPath(Map<String, String> directoryPath) {
66 this.directoryPath = directoryPath;
67 }
68
69 public String getDirectoryPathForFormat(String format) {
70 return directoryPath.get(format);
71 }
72
73 public Map<String, List<File>> getFiles() {
74 return files;
75 }
76
77 public void setFiles(Map<String, List<File>> files) {
78 this.files = files;
79 }
80
81 public List<File> getFiles(String format) {
82 if (null != files) {
83 return files.get(format);
84 }
85 return null;
86 }
87 }