org.teamapps.dto.UiCompositeSubField Maven / Gradle / Ivy
The 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 = UiCompositeSubField.class)
public class UiCompositeSubField implements UiObject {
protected String propertyName;
protected int row;
protected int col;
protected UiClientObjectReference field;
protected int rowSpan = 1;
protected int colSpan = 1;
protected int tabIndex = 0;
protected String visibilityPropertyName;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public UiCompositeSubField() {
// default constructor for Jackson
}
public UiCompositeSubField(String propertyName, int row, int col, UiClientObjectReference field) {
this.propertyName = propertyName;
this.row = row;
this.col = col;
this.field = field;
}
@com.fasterxml.jackson.annotation.JsonIgnore
public UiObjectType getUiObjectType() {
return UiObjectType.UI_COMPOSITE_SUB_FIELD;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("propertyName=" + propertyName).append(", ")
.append("visibilityPropertyName=" + visibilityPropertyName).append(", ")
.append("row=" + row).append(", ")
.append("col=" + col).append(", ")
.append("rowSpan=" + rowSpan).append(", ")
.append("colSpan=" + colSpan).append(", ")
.append("tabIndex=" + tabIndex).append(", ")
.append(field != null ? "field={" + field.toString() + "}" : "")
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("propertyName")
public String getPropertyName() {
return propertyName;
}
@com.fasterxml.jackson.annotation.JsonGetter("row")
public int getRow() {
return row;
}
@com.fasterxml.jackson.annotation.JsonGetter("col")
public int getCol() {
return col;
}
@com.fasterxml.jackson.annotation.JsonGetter("field")
public UiClientObjectReference getField() {
return field;
}
@com.fasterxml.jackson.annotation.JsonGetter("rowSpan")
public int getRowSpan() {
return rowSpan;
}
@com.fasterxml.jackson.annotation.JsonGetter("colSpan")
public int getColSpan() {
return colSpan;
}
@com.fasterxml.jackson.annotation.JsonGetter("tabIndex")
public int getTabIndex() {
return tabIndex;
}
@com.fasterxml.jackson.annotation.JsonGetter("visibilityPropertyName")
public String getVisibilityPropertyName() {
return visibilityPropertyName;
}
@com.fasterxml.jackson.annotation.JsonSetter("rowSpan")
public UiCompositeSubField setRowSpan(int rowSpan) {
this.rowSpan = rowSpan;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("colSpan")
public UiCompositeSubField setColSpan(int colSpan) {
this.colSpan = colSpan;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("tabIndex")
public UiCompositeSubField setTabIndex(int tabIndex) {
this.tabIndex = tabIndex;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("visibilityPropertyName")
public UiCompositeSubField setVisibilityPropertyName(String visibilityPropertyName) {
this.visibilityPropertyName = visibilityPropertyName;
return this;
}
}