org.teamapps.dto.UiAbsoluteLayout 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 = UiAbsoluteLayout.class)
public class UiAbsoluteLayout extends UiComponent implements UiObject {
protected List components;
public UiAbsoluteLayout() {
super();
}
@com.fasterxml.jackson.annotation.JsonIgnore
public UiObjectType getUiObjectType() {
return UiObjectType.UI_ABSOLUTE_LAYOUT;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("id=" + id).append(", ")
.append("debuggingId=" + debuggingId).append(", ")
.append("classNamesBySelector=" + classNamesBySelector).append(", ")
.append("visible=" + visible).append(", ")
.append("stylesBySelector=" + stylesBySelector).append(", ")
.append("attributesBySelector=" + attributesBySelector).append(", ")
.append(components != null ? "components={" + components.toString() + "}" : "")
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("components")
public List getComponents() {
return components;
}
@com.fasterxml.jackson.annotation.JsonSetter("id")
public UiAbsoluteLayout setId(String id) {
this.id = id;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("debuggingId")
public UiAbsoluteLayout setDebuggingId(String debuggingId) {
this.debuggingId = debuggingId;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("visible")
public UiAbsoluteLayout setVisible(boolean visible) {
this.visible = visible;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("stylesBySelector")
public UiAbsoluteLayout setStylesBySelector(Map> stylesBySelector) {
this.stylesBySelector = stylesBySelector;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("classNamesBySelector")
public UiAbsoluteLayout setClassNamesBySelector(Map> classNamesBySelector) {
this.classNamesBySelector = classNamesBySelector;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("attributesBySelector")
public UiAbsoluteLayout setAttributesBySelector(Map> attributesBySelector) {
this.attributesBySelector = attributesBySelector;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("components")
public UiAbsoluteLayout setComponents(List components) {
this.components = components;
return this;
}
public static class UpdateCommand implements UiCommand {
@UiComponentId protected String componentId;
protected List components;
protected int animationDuration;
protected UiAnimationEasing easing;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public UpdateCommand() {
// default constructor for Jackson
}
public UpdateCommand(String componentId, List components, int animationDuration, UiAnimationEasing easing) {
this.componentId = componentId;
this.components = components;
this.animationDuration = animationDuration;
this.easing = easing;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("componentId=" + componentId).append(", ")
.append("animationDuration=" + animationDuration).append(", ")
.append("easing=" + easing).append(", ")
.append(components != null ? "components={" + components.toString() + "}" : "")
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("componentId")
public String getComponentId() {
return componentId;
}
@com.fasterxml.jackson.annotation.JsonGetter("components")
public List getComponents() {
return components;
}
@com.fasterxml.jackson.annotation.JsonGetter("animationDuration")
public int getAnimationDuration() {
return animationDuration;
}
@com.fasterxml.jackson.annotation.JsonGetter("easing")
public UiAnimationEasing getEasing() {
return easing;
}
}
}