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;
26 * The Class Requirement.
28 public class Requirement {
30 /** The occurrences. */
31 private Collection<String> occurrences;
33 /** The capability. */
34 private String capability;
39 /** The relationship. */
40 private String relationship;
43 * Instantiates a new requirement.
48 * Gets the occurrences.
50 * @return the occurrences
52 public Collection<String> getOccurrences() {
57 * Gets the capability.
59 * @return the capability
61 public String getCapability() {
70 public String getNode() {
75 * Gets the relationship.
77 * @return the relationship
79 public String getRelationship() {
84 * Sets the occurrences.
86 * @param occurrences the new occurrences
88 public void setOccurrences(Collection<String> occurrences) {
89 this.occurrences = occurrences;
93 * Sets the capability.
95 * @param capability the new capability
97 public void setCapability(String capability) {
98 this.capability = capability;
104 * @param node the new node
106 public void setNode(String node) {
111 * Sets the relationship.
113 * @param relationship the new relationship
115 public void setRelationship(String relationship) {
116 this.relationship = relationship;