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