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