1 /*
2 * Licensed under the GPL License. You may not use this file except in compliance with the License.
3 * You may obtain a copy of the License at
4 *
5 * https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
6 *
7 * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
8 * WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
9 * PURPOSE.
10 */
11 package psiprobe.model.jsp;
12
13 import java.io.Serializable;
14 import java.util.HashMap;
15 import java.util.Map;
16
17 /**
18 * The Class Summary.
19 */
20 public class Summary implements Serializable {
21
22 /** The Constant serialVersionUID. */
23 private static final long serialVersionUID = 1L;
24
25 /** The name. */
26 private String name;
27
28 /** The items. */
29 private Map<String, Item> items;
30
31 /** The out of date count. */
32 private int outOfDateCount;
33
34 /**
35 * Gets the name.
36 *
37 * @return the name
38 */
39 public String getName() {
40 return name;
41 }
42
43 /**
44 * Sets the name.
45 *
46 * @param name the new name
47 */
48 public void setName(String name) {
49 this.name = name;
50 }
51
52 /**
53 * Gets the items.
54 *
55 * @return the items
56 */
57 public Map<String, Item> getItems() {
58 return items == null ? new HashMap<>() : new HashMap<>(items);
59 }
60
61 /**
62 * Sets the items.
63 *
64 * @param items the items
65 */
66 public void setItems(Map<String, Item> items) {
67 this.items = items == null ? new HashMap<>() : new HashMap<>(items);
68 }
69
70 /**
71 * Put the items.
72 *
73 * @param string the string
74 * @param item the item
75 */
76 public void putItem(String string, Item item) {
77 if (items == null) {
78 items = new HashMap<>();
79 }
80 items.put(string, item);
81 }
82
83 /**
84 * Gets the out of date count.
85 *
86 * @return the out of date count
87 */
88 public int getOutOfDateCount() {
89 return outOfDateCount;
90 }
91
92 /**
93 * Sets the out of date count.
94 *
95 * @param outOfDateCount the new out of date count
96 */
97 public void setOutOfDateCount(int outOfDateCount) {
98 this.outOfDateCount = outOfDateCount;
99 }
100
101 }