Upgrade sonar plugin
[vid.git] / vid-app-common / src / main / java / org / openecomp / vid / asdc / beans / tosca / Capability.java
1 /*-\r
2  * ============LICENSE_START=======================================================\r
3  * VID\r
4  * ================================================================================\r
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.\r
6  * ================================================================================\r
7  * Licensed under the Apache License, Version 2.0 (the "License");\r
8  * you may not use this file except in compliance with the License.\r
9  * You may obtain a copy of the License at\r
10  * \r
11  *      http://www.apache.org/licenses/LICENSE-2.0\r
12  * \r
13  * Unless required by applicable law or agreed to in writing, software\r
14  * distributed under the License is distributed on an "AS IS" BASIS,\r
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
16  * See the License for the specific language governing permissions and\r
17  * limitations under the License.\r
18  * ============LICENSE_END=========================================================\r
19  */\r
20 \r
21 package org.openecomp.vid.asdc.beans.tosca;\r
22 \r
23 import java.util.Collection;\r
24 import java.util.Map;\r
25 \r
26 /**\r
27  * The Class Capability.\r
28  */\r
29 public class Capability {\r
30 \r
31         /** The type. */\r
32         private String type; //FIXME: Make an enumeration?\r
33         \r
34         /** The description. */\r
35         private String description;\r
36         \r
37         /** The occurrences. */\r
38         private Collection<String> occurrences; //FIXME: Make an enumeration?\r
39         \r
40         /** The properties. */\r
41         private Map<String, Property> properties;\r
42         \r
43         /** The valid source types. */\r
44         private Collection<String> valid_source_types; //FIXME: Make an enumeration?\r
45         \r
46         /**\r
47          * Instantiates a new capability.\r
48          */\r
49         public Capability() {}\r
50         \r
51         /**\r
52          * Gets the type.\r
53          *\r
54          * @return the type\r
55          */\r
56         public String getType() {\r
57                 return type;\r
58         }\r
59         \r
60         /**\r
61          * Gets the description.\r
62          *\r
63          * @return the description\r
64          */\r
65         public String getDescription() {\r
66                 return description;\r
67         }\r
68         \r
69         /**\r
70          * Gets the occurrences.\r
71          *\r
72          * @return the occurrences\r
73          */\r
74         public Collection<String> getOccurrences() {\r
75                 return occurrences;\r
76         }\r
77         \r
78         /**\r
79          * Gets the properties.\r
80          *\r
81          * @return the properties\r
82          */\r
83         public Map<String, Property> getProperties() {\r
84                 return properties;\r
85         }\r
86         \r
87         /**\r
88          * Gets the valid source types.\r
89          *\r
90          * @return the valid source types\r
91          */\r
92         public Collection<String> getValid_source_types() {\r
93                 return valid_source_types;\r
94         }\r
95         \r
96         /**\r
97          * Sets the type.\r
98          *\r
99          * @param type the new type\r
100          */\r
101         public void setType(String type) {\r
102                 this.type = type;\r
103         }\r
104         \r
105         /**\r
106          * Sets the description.\r
107          *\r
108          * @param description the new description\r
109          */\r
110         public void setDescription(String description) {\r
111                 this.description = description;\r
112         }\r
113         \r
114         /**\r
115          * Sets the occurrences.\r
116          *\r
117          * @param occurrences the new occurrences\r
118          */\r
119         public void setOccurrences(Collection<String> occurrences) {\r
120                 this.occurrences = occurrences;\r
121         }\r
122         \r
123         /**\r
124          * Sets the properties.\r
125          *\r
126          * @param properties the properties\r
127          */\r
128         public void setProperties(Map<String, Property> properties) {\r
129                 this.properties = properties;\r
130         }\r
131         \r
132         /**\r
133          * Sets the valid source types.\r
134          *\r
135          * @param valid_source_types the new valid source types\r
136          */\r
137         public void setValid_source_types(Collection<String> valid_source_types) {\r
138                 this.valid_source_types = valid_source_types;\r
139         }\r
140 }\r