add test case
[vfc/nfvo/driver/ems.git] / ems / boco / src / main / java / org / onap / vfc / nfvo / emsdriver / commons / model / EMSInfo.java
1 /**
2  * Copyright 2017 BOCO Corporation. CMCC Technologies Co., Ltd
3  *
4  * Licensed under the Apache 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.apache.org/licenses/LICENSE-2.0
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.onap.vfc.nfvo.emsdriver.commons.model;
17
18 import java.util.HashMap;
19 import java.util.Map;
20
21 public class EMSInfo {
22         
23         private String name;
24         
25         private Map<String,CollectVo> collectMap = new HashMap<String,CollectVo>();
26
27         /**
28          * @return the name
29          */
30         public String getName() {
31                 return name;
32         }
33
34         /**
35          * @param name the name to set
36          */
37         public void setName(String name) {
38                 this.name = name;
39         }
40
41         public CollectVo getCollectVoByType(String type){
42                 CollectVo collectVo = null;
43                 collectVo = this.collectMap.get(type);
44                 return collectVo;
45         }
46         
47         public void putCollectMap(String type,CollectVo collectVo) {
48                 
49                 this.collectMap.put(type, collectVo);
50         }
51         
52         @Override
53         public String toString() {
54                 return "EMSInfo [name=" + name + ", collectMap=" + collectMap + "]";
55         }
56 }