Add instructions to invoke the linter and code formatter plugins to the README and...
[aai/schema-service.git] / aai-schema-service / src / main / java / org / onap / aai / schemaservice / edges / EdgeRule.java
1 /**
2  * ============LICENSE_START=======================================================
3  * org.onap.aai
4  * ================================================================================
5  * Copyright © 2017-2018 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.aai.schemaservice.edges;
22
23 import com.google.gson.annotations.SerializedName;
24
25 public class EdgeRule {
26
27     private String from;
28     private String to;
29     private String label;
30
31     private String direction;
32     private String multiplicity;
33     private String description;
34
35     @SerializedName("contains-other-v")
36     private String containsOtherV;
37
38     @Override
39     public String toString() {
40         return "EdgeRule{" + "from='" + from + '\'' + ", to='" + to + '\'' + ", label='" + label
41             + '\'' + ", direction='" + direction + '\'' + ", multiplicity='" + multiplicity + '\''
42             + ", description='" + description + '\'' + ", containsOtherV='" + containsOtherV + '\''
43             + ", deleteOtherV='" + deleteOtherV + '\'' + ", preventDelete='" + preventDelete + '\''
44             + ", privateEdge=" + privateEdge + ", isDefaultEdge=" + defaultEdge + '}';
45     }
46
47     @SerializedName("delete-other-v")
48     private String deleteOtherV;
49     @SerializedName("prevent-delete")
50     private String preventDelete;
51
52     @SerializedName("private")
53     private String privateEdge;
54
55     @SerializedName("default")
56     private String defaultEdge;
57
58     public String getFrom() {
59         return from;
60     }
61
62     public void setFrom(String from) {
63         this.from = from;
64     }
65
66     public String getTo() {
67         return to;
68     }
69
70     public void setTo(String to) {
71         this.to = to;
72     }
73
74     public String getLabel() {
75         return label;
76     }
77
78     public void setLabel(String label) {
79         this.label = label;
80     }
81
82     public String getDirection() {
83         return direction;
84     }
85
86     public void setDirection(String direction) {
87         this.direction = direction;
88     }
89
90     public String getMultiplicity() {
91         return multiplicity;
92     }
93
94     public void setMultiplicity(String multiplicity) {
95         this.multiplicity = multiplicity;
96     }
97
98     public String getDescription() {
99         return description;
100     }
101
102     public void setDescription(String description) {
103         this.description = description;
104     }
105
106     public String getContainsOtherV() {
107         return containsOtherV;
108     }
109
110     public void setContainsOtherV(String containsOtherV) {
111         this.containsOtherV = containsOtherV;
112     }
113
114     public String getDeleteOtherV() {
115         return deleteOtherV;
116     }
117
118     public void setDeleteOtherV(String deleteOtherV) {
119         this.deleteOtherV = deleteOtherV;
120     }
121
122     public String getPreventDelete() {
123         return preventDelete;
124     }
125
126     public void setPreventDelete(String preventDelete) {
127         this.preventDelete = preventDelete;
128     }
129
130     public String getPrivateEdge() {
131         return privateEdge;
132     }
133
134     public void setPrivateEdge(String privateEdge) {
135         this.privateEdge = privateEdge;
136     }
137
138     public String getDefaultEdge() {
139         return defaultEdge;
140     }
141
142     public void setDefaultEdge(String defaultEdge) {
143         this.defaultEdge = defaultEdge;
144     }
145
146 }