2 * ============LICENSE_START=======================================================
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
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.aai.schemaservice.edges;
23 import com.google.gson.annotations.SerializedName;
25 public class EdgeRule {
31 private String direction;
32 private String multiplicity;
33 private String description;
35 @SerializedName("contains-other-v")
36 private String containsOtherV;
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 + '}';
47 @SerializedName("delete-other-v")
48 private String deleteOtherV;
49 @SerializedName("prevent-delete")
50 private String preventDelete;
52 @SerializedName("private")
53 private String privateEdge;
55 @SerializedName("default")
56 private String defaultEdge;
58 public String getFrom() {
62 public void setFrom(String from) {
66 public String getTo() {
70 public void setTo(String to) {
74 public String getLabel() {
78 public void setLabel(String label) {
82 public String getDirection() {
86 public void setDirection(String direction) {
87 this.direction = direction;
90 public String getMultiplicity() {
94 public void setMultiplicity(String multiplicity) {
95 this.multiplicity = multiplicity;
98 public String getDescription() {
102 public void setDescription(String description) {
103 this.description = description;
106 public String getContainsOtherV() {
107 return containsOtherV;
110 public void setContainsOtherV(String containsOtherV) {
111 this.containsOtherV = containsOtherV;
114 public String getDeleteOtherV() {
118 public void setDeleteOtherV(String deleteOtherV) {
119 this.deleteOtherV = deleteOtherV;
122 public String getPreventDelete() {
123 return preventDelete;
126 public void setPreventDelete(String preventDelete) {
127 this.preventDelete = preventDelete;
130 public String getPrivateEdge() {
134 public void setPrivateEdge(String privateEdge) {
135 this.privateEdge = privateEdge;
138 public String getDefaultEdge() {
142 public void setDefaultEdge(String defaultEdge) {
143 this.defaultEdge = defaultEdge;