org.teamapps.dto.UiWorkSpaceLayoutViewGroupItem 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 = UiWorkSpaceLayoutViewGroupItem.class)
public class UiWorkSpaceLayoutViewGroupItem extends UiWorkSpaceLayoutItem implements UiObject {
protected List viewNames = java.util.Collections.emptyList();
protected String selectedViewName;
protected boolean persistent;
protected UiViewGroupPanelState panelState = UiViewGroupPanelState.NORMAL;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public UiWorkSpaceLayoutViewGroupItem() {
// default constructor for Jackson
}
public UiWorkSpaceLayoutViewGroupItem(String id, List viewNames) {
super(id);
this.viewNames = viewNames;
}
@com.fasterxml.jackson.annotation.JsonIgnore
public UiObjectType getUiObjectType() {
return UiObjectType.UI_WORK_SPACE_LAYOUT_VIEW_GROUP_ITEM;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("id=" + id).append(", ")
.append("viewNames=" + viewNames).append(", ")
.append("selectedViewName=" + selectedViewName).append(", ")
.append("persistent=" + persistent).append(", ")
.append("panelState=" + panelState)
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("viewNames")
public List getViewNames() {
return viewNames;
}
@com.fasterxml.jackson.annotation.JsonGetter("selectedViewName")
public String getSelectedViewName() {
return selectedViewName;
}
@com.fasterxml.jackson.annotation.JsonGetter("persistent")
public boolean getPersistent() {
return persistent;
}
@com.fasterxml.jackson.annotation.JsonGetter("panelState")
public UiViewGroupPanelState getPanelState() {
return panelState;
}
@com.fasterxml.jackson.annotation.JsonSetter("selectedViewName")
public UiWorkSpaceLayoutViewGroupItem setSelectedViewName(String selectedViewName) {
this.selectedViewName = selectedViewName;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("persistent")
public UiWorkSpaceLayoutViewGroupItem setPersistent(boolean persistent) {
this.persistent = persistent;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("panelState")
public UiWorkSpaceLayoutViewGroupItem setPanelState(UiViewGroupPanelState panelState) {
this.panelState = panelState;
return this;
}
}