2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
6 * Copyright © 2017-2018 Amdocs
7 * ================================================================================
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 * ============LICENSE_END=========================================================
21 package org.onap.aai.sparky.viewandinspect.entity;
23 import java.util.Arrays;
25 import com.fasterxml.jackson.annotation.JsonProperty;
28 * The Class Relationship.
30 public class Relationship {
32 protected String relatedTo;
33 protected String relationshipLabel;
34 protected String relatedLink;
35 protected RelationshipData[] relationshipData;
36 protected RelatedToProperty[] relatedToProperty;
38 public String getRelatedTo() {
42 @JsonProperty("related-to")
43 public void setRelatedTo(String relatedTo) {
44 this.relatedTo = relatedTo;
47 public String getRelationshipLabel() {
48 return relationshipLabel;
51 @JsonProperty("relationship-label")
52 public void setRelationshipLabel(String relationshipLabel) {
53 this.relationshipLabel = relationshipLabel;
56 public String getRelatedLink() {
60 @JsonProperty("related-link")
61 public void setRelatedLink(String relatedLink) {
62 this.relatedLink = relatedLink;
65 public RelationshipData[] getRelationshipData() {
66 return relationshipData;
69 @JsonProperty("relationship-data")
70 public void setRelationshipData(RelationshipData[] relationshipData) {
71 this.relationshipData = relationshipData;
74 public RelatedToProperty[] getRelatedToProperty() {
75 return relatedToProperty;
78 @JsonProperty("related-to-property")
79 public void setRelatedToProperty(RelatedToProperty[] relatedToProperty) {
80 this.relatedToProperty = relatedToProperty;
84 * @see java.lang.Object#toString()
87 public String toString() {
88 return "Relationship [relatedTo=" + relatedTo + ", relationshipLabel=" + relationshipLabel
89 + ", relatedLink=" + relatedLink + ", relationshipData=" + Arrays.toString(relationshipData)
90 + ", relatedToProperty=" + Arrays.toString(relatedToProperty) + "]";