2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2019 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.sdc.toscaparser.api;
24 public class RequirementAssignment {
27 private String nodeName;
28 private String capabilityName;
29 private Object relationship;
31 public RequirementAssignment(String reqName, String nodeName) {
33 this.nodeName = nodeName;
36 public RequirementAssignment(String reqName, String nodeName, String capabilityName) {
38 this.nodeName = nodeName;
39 this.capabilityName = capabilityName;
42 public RequirementAssignment(String reqName, String nodeName, String capabilityName, Object relationship) {
44 this.nodeName = nodeName;
45 this.capabilityName = capabilityName;
46 this.relationship = relationship;
50 * Get the name for requirement assignment.
52 * @return the name for requirement assignment.
54 public String getName() {
59 * Set the name for requirement
61 * @param name - the name for requirement to set
63 public void setName(String name) {
68 * Get the node name for requirement assignment.
70 * @return the node name for requirement
72 public String getNodeTemplateName() {
77 * Set the node name for requirement
79 * @param nodeName - the node name for requirement to set
81 public void setNodeTemplateName(String nodeName) {
82 this.nodeName = nodeName;
86 * Get the capability name for requirement assignment.
88 * @return the capability name for requirement
90 public String getCapabilityName() {
91 return capabilityName;
95 * Set the capability name for requirement assignment.
97 * @param capabilityName - the capability name for requirement to set
99 public void setCapabilityName(String capabilityName) {
100 this.capabilityName = capabilityName;
104 * Get the relationship object for requirement
106 * @return the relationship object for requirement
108 public Object getRelationship() {