Fix checkstyle violations in sdc/jtosca
[sdc/sdc-tosca.git] / src / main / java / org / onap / sdc / toscaparser / api / RequirementAssignment.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
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
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
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=========================================================
19  */
20
21 package org.onap.sdc.toscaparser.api;
22
23
24 public class RequirementAssignment {
25
26     private String name;
27     private String nodeName;
28     private String capabilityName;
29     private Object relationship;
30
31     public RequirementAssignment(String reqName, String nodeName) {
32         this.name = reqName;
33         this.nodeName = nodeName;
34     }
35
36     public RequirementAssignment(String reqName, String nodeName, String capabilityName) {
37         this.name = reqName;
38         this.nodeName = nodeName;
39         this.capabilityName = capabilityName;
40     }
41
42     public RequirementAssignment(String reqName, String nodeName, String capabilityName, Object relationship) {
43         this.name = reqName;
44         this.nodeName = nodeName;
45         this.capabilityName = capabilityName;
46         this.relationship = relationship;
47     }
48
49     /**
50      * Get the name for requirement assignment.
51      *
52      * @return the name for requirement assignment.
53      */
54     public String getName() {
55         return name;
56     }
57
58     /**
59      * Set the name for requirement
60      *
61      * @param name - the name for requirement to set
62      */
63     public void setName(String name) {
64         this.name = name;
65     }
66
67     /**
68      * Get the node name for requirement assignment.
69      *
70      * @return the node name for requirement
71      */
72     public String getNodeTemplateName() {
73         return nodeName;
74     }
75
76     /**
77      * Set the node name for requirement
78      *
79      * @param nodeName - the node name for requirement to set
80      */
81     public void setNodeTemplateName(String nodeName) {
82         this.nodeName = nodeName;
83     }
84
85     /**
86      * Get the capability name for requirement assignment.
87      *
88      * @return the capability name for requirement
89      */
90     public String getCapabilityName() {
91         return capabilityName;
92     }
93
94     /**
95      * Set the capability name for requirement assignment.
96      *
97      * @param capabilityName - the capability name for requirement to set
98      */
99     public void setCapabilityName(String capabilityName) {
100         this.capabilityName = capabilityName;
101     }
102
103     /**
104      * Get the relationship object for requirement
105      *
106      * @return the relationship object for requirement
107      */
108     public Object getRelationship() {
109         return relationship;
110     }
111 }