All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.teamapps.dto.UiTreeGraphNode Maven / Gradle / Ivy

There is a newer version: 0.9.194
Show newest version
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 = UiTreeGraphNode.class)
public class UiTreeGraphNode extends UiBaseTreeGraphNode implements UiObject {


	protected String parentId;
	protected boolean parentExpandable = false;
	protected boolean parentExpanded = true;
	protected boolean expanded;
	protected boolean hasLazyChildren = false;
	protected List sideListNodes;
	protected boolean sideListExpanded;

	/**
	 * @deprecated Only for Jackson deserialization. Use the other constructor instead.
	 */
	@Deprecated
	public UiTreeGraphNode() {
		// default constructor for Jackson
	}

	public UiTreeGraphNode(String id, int width, int height) {
		super(id, width, height);
	}

	@com.fasterxml.jackson.annotation.JsonIgnore
	public UiObjectType getUiObjectType() {
		return UiObjectType.UI_TREE_GRAPH_NODE;
	}

	@SuppressWarnings("unchecked")
	public String toString() {
		return new StringBuilder(getClass().getSimpleName()).append(": ")
				.append("id=" + id).append(", ")
				.append("parentId=" + parentId).append(", ")
				.append("width=" + width).append(", ")
				.append("height=" + height).append(", ")
				.append("backgroundColor=" + backgroundColor).append(", ")
				.append("borderColor=" + borderColor).append(", ")
				.append("borderWidth=" + borderWidth).append(", ")
				.append("borderRadius=" + borderRadius).append(", ")
				.append(template != null ? "template={" + template.toString() + "}" : "").append(", ")
				.append("connectorLineColor=" + connectorLineColor).append(", ")
				.append("connectorLineWidth=" + connectorLineWidth).append(", ")
				.append("dashArray=" + dashArray).append(", ")
				.append("parentExpandable=" + parentExpandable).append(", ")
				.append("parentExpanded=" + parentExpanded).append(", ")
				.append("expanded=" + expanded).append(", ")
				.append("hasLazyChildren=" + hasLazyChildren).append(", ")
				.append("sideListExpanded=" + sideListExpanded).append(", ")
				.append(image != null ? "image={" + image.toString() + "}" : "").append(", ")
				.append(icon != null ? "icon={" + icon.toString() + "}" : "").append(", ")
				.append(record != null ? "record={" + record.toString() + "}" : "").append(", ")
				.append(sideListNodes != null ? "sideListNodes={" + sideListNodes.toString() + "}" : "")
				.toString();
	}

	@com.fasterxml.jackson.annotation.JsonGetter("parentId")
	public String getParentId() {
		return parentId;
	}

	@com.fasterxml.jackson.annotation.JsonGetter("parentExpandable")
	public boolean getParentExpandable() {
		return parentExpandable;
	}

	@com.fasterxml.jackson.annotation.JsonGetter("parentExpanded")
	public boolean getParentExpanded() {
		return parentExpanded;
	}

	@com.fasterxml.jackson.annotation.JsonGetter("expanded")
	public boolean getExpanded() {
		return expanded;
	}

	@com.fasterxml.jackson.annotation.JsonGetter("hasLazyChildren")
	public boolean getHasLazyChildren() {
		return hasLazyChildren;
	}

	@com.fasterxml.jackson.annotation.JsonGetter("sideListNodes")
	public List getSideListNodes() {
		return sideListNodes;
	}

	@com.fasterxml.jackson.annotation.JsonGetter("sideListExpanded")
	public boolean getSideListExpanded() {
		return sideListExpanded;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("backgroundColor")
	public UiTreeGraphNode setBackgroundColor(String backgroundColor) {
		this.backgroundColor = backgroundColor;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("borderColor")
	public UiTreeGraphNode setBorderColor(String borderColor) {
		this.borderColor = borderColor;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("borderWidth")
	public UiTreeGraphNode setBorderWidth(float borderWidth) {
		this.borderWidth = borderWidth;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("borderRadius")
	public UiTreeGraphNode setBorderRadius(float borderRadius) {
		this.borderRadius = borderRadius;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("image")
	public UiTreeGraphNode setImage(UiTreeGraphNodeImage image) {
		this.image = image;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("icon")
	public UiTreeGraphNode setIcon(UiTreeGraphNodeIcon icon) {
		this.icon = icon;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("template")
	public UiTreeGraphNode setTemplate(UiTemplate template) {
		this.template = template;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("record")
	public UiTreeGraphNode setRecord(UiClientRecord record) {
		this.record = record;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("connectorLineColor")
	public UiTreeGraphNode setConnectorLineColor(String connectorLineColor) {
		this.connectorLineColor = connectorLineColor;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("connectorLineWidth")
	public UiTreeGraphNode setConnectorLineWidth(int connectorLineWidth) {
		this.connectorLineWidth = connectorLineWidth;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("dashArray")
	public UiTreeGraphNode setDashArray(String dashArray) {
		this.dashArray = dashArray;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("parentId")
	public UiTreeGraphNode setParentId(String parentId) {
		this.parentId = parentId;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("parentExpandable")
	public UiTreeGraphNode setParentExpandable(boolean parentExpandable) {
		this.parentExpandable = parentExpandable;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("parentExpanded")
	public UiTreeGraphNode setParentExpanded(boolean parentExpanded) {
		this.parentExpanded = parentExpanded;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("expanded")
	public UiTreeGraphNode setExpanded(boolean expanded) {
		this.expanded = expanded;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("hasLazyChildren")
	public UiTreeGraphNode setHasLazyChildren(boolean hasLazyChildren) {
		this.hasLazyChildren = hasLazyChildren;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("sideListNodes")
	public UiTreeGraphNode setSideListNodes(List sideListNodes) {
		this.sideListNodes = sideListNodes;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("sideListExpanded")
	public UiTreeGraphNode setSideListExpanded(boolean sideListExpanded) {
		this.sideListExpanded = sideListExpanded;
		return this;
	}




}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy