##### Coverage Report - com.ctrip.apollo.portal.entity.NamespaceVO

Classes in this File | Line Coverage | Branch Coverage | Complexity
NamespaceVO |
100% | 11/11
N/A | N/A
| 1.0;1
NamespaceVO$ItemVO |
84% | 11/13
N/A | N/A
| 1.0;1

1 |  |
     package com.ctrip.apollo.portal.entity;
2 |  |
     import com.ctrip.apollo.core.dto.ItemDTO;
3 |  |
     import com.ctrip.apollo.core.dto.NamespaceDTO;
4 |  |
5 |  |
     import java.util.List;
6 |  |
7 | 2 |
     public class NamespaceVO {
8 |  |
       private NamespaceDTO namespace;
9 |  |
       private int itemModifiedCnt;
10 |  |
       private List<ItemVO> items;
11 |  |
12 |  |
13 |  |
       public NamespaceDTO getNamespace() {
14 | 3 |
         return namespace;
15 |  |
       }
16 |  |
17 |  |
       public void setNamespace(NamespaceDTO namespace) {
18 | 2 |
         this.namespace = namespace;
19 | 2 |
       }
20 |  |
21 |  |
       public int getItemModifiedCnt() {
22 | 1 |
         return itemModifiedCnt;
23 |  |
       }
24 |  |
25 |  |
       public void setItemModifiedCnt(int itemModifiedCnt) {
26 | 2 |
         this.itemModifiedCnt = itemModifiedCnt;
27 | 2 |
       }
28 |  |
29 |  |
       public List<ItemVO> getItems() {
30 | 2 |
         return items;
31 |  |
       }
32 |  |
33 |  |
       public void setItems(List<ItemVO> items) {
34 | 2 |
         this.items = items;
35 | 2 |
       }
36 |  |
37 | 4 |
       public static class ItemVO{
38 |  |
         private ItemDTO item;
39 |  |
         private boolean isModified;
40 |  |
         private String oldValue;
41 |  |
         private String newValue;
42 |  |
43 |  |
         public ItemDTO getItem() {
44 | 1 |
           return item;
45 |  |
         }
46 |  |
47 |  |
         public void setItem(ItemDTO item) {
48 | 4 |
           this.item = item;
49 | 4 |
         }
50 |  |
51 |  |
         public boolean isModified() {
52 | 4 |
           return isModified;
53 |  |
         }
54 |  |
55 |  |
         public void setModified(boolean isModified) {
56 | 2 |
           this.isModified = isModified;
57 | 2 |
         }
58 |  |
59 |  |
         public String getOldValue() {
60 | 0 |
           return oldValue;
61 |  |
         }
62 |  |
63 |  |
         public void setOldValue(String oldValue) {
64 | 2 |
           this.oldValue = oldValue;
65 | 2 |
         }
66 |  |
67 |  |
         public String getNewValue() {
68 | 0 |
           return newValue;
69 |  |
         }
70 |  |
71 |  |
         public void setNewValue(String newValue) {
72 | 2 |
           this.newValue = newValue;
73 | 2 |
         }
74 |  |
75 |  |
       }
76 |  |
77 |  |
     }