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");
\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.
18 * ============LICENSE_END=========================================================
\r
21 package org.openecomp.vid.asdc.beans.tosca;
\r
23 import java.util.Collection;
\r
26 * The Class Requirement.
\r
28 public class Requirement {
\r
30 /** The occurrences. */
\r
31 private Collection<String> occurrences;
\r
33 /** The capability. */
\r
34 private String capability;
\r
37 private String node;
\r
39 /** The relationship. */
\r
40 private String relationship;
\r
43 * Instantiates a new requirement.
\r
45 private Requirement() {}
\r
48 * Gets the occurrences.
\r
50 * @return the occurrences
\r
52 public Collection<String> getOccurrences() {
\r
57 * Gets the capability.
\r
59 * @return the capability
\r
61 public String getCapability() {
\r
70 public String getNode() {
\r
75 * Gets the relationship.
\r
77 * @return the relationship
\r
79 public String getRelationship() {
\r
80 return relationship;
\r
84 * Sets the occurrences.
\r
86 * @param occurrences the new occurrences
\r
88 public void setOccurrences(Collection<String> occurrences) {
\r
89 this.occurrences = occurrences;
\r
93 * Sets the capability.
\r
95 * @param capability the new capability
\r
97 public void setCapability(String capability) {
\r
98 this.capability = capability;
\r
104 * @param node the new node
\r
106 public void setNode(String node) {
\r
111 * Sets the relationship.
\r
113 * @param relationship the new relationship
\r
115 public void setRelationship(String relationship) {
\r
116 this.relationship = relationship;
\r