View Javadoc

1   /*
2    * Copyright 2011 The Kuali Foundation.
3    * 
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    * http://www.opensource.org/licenses/ecl2.php
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
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   * Created by IntelliJ IDEA.
24   * User: peris
25   * Date: 5/18/11
26   * Time: 10:54 AM
27   * To change this template use File | Settings | File Templates.
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  }