2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.onap.vid.asdc.beans.tosca;
23 import java.util.Collection;
27 * The Class Capability.
29 public class Capability {
32 private String type; //FIXME: Make an enumeration?
34 /** The description. */
35 private String description;
37 /** The occurrences. */
38 private Collection<String> occurrences; //FIXME: Make an enumeration?
40 /** The properties. */
41 private Map<String, Property> properties;
43 /** The valid source types. */
44 private Collection<String> valid_source_types; //FIXME: Make an enumeration?
47 * Instantiates a new capability.
49 public Capability() {}
56 public String getType() {
61 * Gets the description.
63 * @return the description
65 public String getDescription() {
70 * Gets the occurrences.
72 * @return the occurrences
74 public Collection<String> getOccurrences() {
79 * Gets the properties.
81 * @return the properties
83 public Map<String, Property> getProperties() {
88 * Gets the valid source types.
90 * @return the valid source types
92 public Collection<String> getValid_source_types() {
93 return valid_source_types;
99 * @param type the new type
101 public void setType(String type) {
106 * Sets the description.
108 * @param description the new description
110 public void setDescription(String description) {
111 this.description = description;
115 * Sets the occurrences.
117 * @param occurrences the new occurrences
119 public void setOccurrences(Collection<String> occurrences) {
120 this.occurrences = occurrences;
124 * Sets the properties.
126 * @param properties the properties
128 public void setProperties(Map<String, Property> properties) {
129 this.properties = properties;
133 * Sets the valid source types.
135 * @param valid_source_types the new valid source types
137 public void setValid_source_types(Collection<String> valid_source_types) {
138 this.valid_source_types = valid_source_types;