org.teamapps.dto.UiNetworkLink Maven / Gradle / Ivy
package org.teamapps.dto;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import java.util.function.Supplier;
import java.util.stream.Collectors;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonTypeIdResolver;
/**
* THIS IS GENERATED CODE!
* PLEASE DO NOT MODIFY - ALL YOUR WORK WOULD BE LOST!
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.CUSTOM, property = "_type", defaultImpl = UiNetworkLink.class)
public class UiNetworkLink implements UiObject {
protected String source;
protected String target;
protected String lineColor = "rgb(127, 127, 127)";
protected float lineWidth = 1.5f;
protected String lineDashArray;
protected int linkLength;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public UiNetworkLink() {
// default constructor for Jackson
}
public UiNetworkLink(String source, String target) {
this.source = source;
this.target = target;
}
@com.fasterxml.jackson.annotation.JsonIgnore
public UiObjectType getUiObjectType() {
return UiObjectType.UI_NETWORK_LINK;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("source=" + source).append(", ")
.append("target=" + target).append(", ")
.append("lineColor=" + lineColor).append(", ")
.append("lineWidth=" + lineWidth).append(", ")
.append("lineDashArray=" + lineDashArray).append(", ")
.append("linkLength=" + linkLength)
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("source")
public String getSource() {
return source;
}
@com.fasterxml.jackson.annotation.JsonGetter("target")
public String getTarget() {
return target;
}
@com.fasterxml.jackson.annotation.JsonGetter("lineColor")
public String getLineColor() {
return lineColor;
}
@com.fasterxml.jackson.annotation.JsonGetter("lineWidth")
public float getLineWidth() {
return lineWidth;
}
@com.fasterxml.jackson.annotation.JsonGetter("lineDashArray")
public String getLineDashArray() {
return lineDashArray;
}
@com.fasterxml.jackson.annotation.JsonGetter("linkLength")
public int getLinkLength() {
return linkLength;
}
@com.fasterxml.jackson.annotation.JsonSetter("lineColor")
public UiNetworkLink setLineColor(String lineColor) {
this.lineColor = lineColor;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("lineWidth")
public UiNetworkLink setLineWidth(float lineWidth) {
this.lineWidth = lineWidth;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("lineDashArray")
public UiNetworkLink setLineDashArray(String lineDashArray) {
this.lineDashArray = lineDashArray;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("linkLength")
public UiNetworkLink setLinkLength(int linkLength) {
this.linkLength = linkLength;
return this;
}
}