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=========================================================
20 package org.onap.aai.schemaservice.edges;
22 import com.google.gson.annotations.SerializedName;
24 public class EdgeRule {
30 private String direction;
31 private String multiplicity;
32 private String description;
34 @SerializedName("contains-other-v")
35 private String containsOtherV;
38 public String toString() {
40 "from='" + from + '\'' +
41 ", to='" + to + '\'' +
42 ", label='" + label + '\'' +
43 ", direction='" + direction + '\'' +
44 ", multiplicity='" + multiplicity + '\'' +
45 ", description='" + description + '\'' +
46 ", containsOtherV='" + containsOtherV + '\'' +
47 ", deleteOtherV='" + deleteOtherV + '\'' +
48 ", preventDelete='" + preventDelete + '\'' +
49 ", privateEdge=" + privateEdge +
50 ", isDefaultEdge=" + defaultEdge +
54 @SerializedName("delete-other-v")
55 private String deleteOtherV;
56 @SerializedName("prevent-delete")
57 private String preventDelete;
59 @SerializedName("private")
60 private String privateEdge;
62 @SerializedName("default")
63 private String defaultEdge;
65 public String getFrom() {
69 public void setFrom(String from) {
73 public String getTo() {
77 public void setTo(String to) {
81 public String getLabel() {
85 public void setLabel(String label) {
89 public String getDirection() {
93 public void setDirection(String direction) {
94 this.direction = direction;
97 public String getMultiplicity() {
101 public void setMultiplicity(String multiplicity) {
102 this.multiplicity = multiplicity;
105 public String getDescription() {
109 public void setDescription(String description) {
110 this.description = description;
113 public String getContainsOtherV() {
114 return containsOtherV;
117 public void setContainsOtherV(String containsOtherV) {
118 this.containsOtherV = containsOtherV;
121 public String getDeleteOtherV() {
125 public void setDeleteOtherV(String deleteOtherV) {
126 this.deleteOtherV = deleteOtherV;
129 public String getPreventDelete() {
130 return preventDelete;
133 public void setPreventDelete(String preventDelete) {
134 this.preventDelete = preventDelete;
137 public String getPrivateEdge() {
141 public void setPrivateEdge(String privateEdge) {
142 this.privateEdge = privateEdge;
145 public String getDefaultEdge() {
149 public void setDefaultEdge(String defaultEdge) {
150 this.defaultEdge = defaultEdge;