org.teamapps.dto.UiFormattingRule 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")
@JsonTypeIdResolver(TeamAppsJacksonTypeIdResolver.class)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class UiFormattingRule extends UiMatcherRule implements UiObject {
protected String icon;
protected String color;
protected String borderColor;
protected String backgroundColor;
protected boolean bold;
protected boolean underline;
protected boolean italic;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public UiFormattingRule() {
// default constructor for Jackson
}
public UiFormattingRule(List valueMatcher) {
super(valueMatcher);
}
@com.fasterxml.jackson.annotation.JsonIgnore
public UiObjectType getUiObjectType() {
return UiObjectType.UI_FORMATTING_RULE;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("executeRuleIfAnyMatcherMatches=" + executeRuleIfAnyMatcherMatches).append(", ")
.append("icon=" + icon).append(", ")
.append("color=" + color).append(", ")
.append("borderColor=" + borderColor).append(", ")
.append("backgroundColor=" + backgroundColor).append(", ")
.append("bold=" + bold).append(", ")
.append("underline=" + underline).append(", ")
.append("italic=" + italic).append(", ")
.append(valueMatcher != null ? "valueMatcher={" + valueMatcher.toString() + "}" : "")
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("icon")
public String getIcon() {
return icon;
}
@com.fasterxml.jackson.annotation.JsonGetter("color")
public String getColor() {
return color;
}
@com.fasterxml.jackson.annotation.JsonGetter("borderColor")
public String getBorderColor() {
return borderColor;
}
@com.fasterxml.jackson.annotation.JsonGetter("backgroundColor")
public String getBackgroundColor() {
return backgroundColor;
}
@com.fasterxml.jackson.annotation.JsonGetter("bold")
public boolean getBold() {
return bold;
}
@com.fasterxml.jackson.annotation.JsonGetter("underline")
public boolean getUnderline() {
return underline;
}
@com.fasterxml.jackson.annotation.JsonGetter("italic")
public boolean getItalic() {
return italic;
}
@com.fasterxml.jackson.annotation.JsonSetter("executeRuleIfAnyMatcherMatches")
public UiFormattingRule setExecuteRuleIfAnyMatcherMatches(boolean executeRuleIfAnyMatcherMatches) {
this.executeRuleIfAnyMatcherMatches = executeRuleIfAnyMatcherMatches;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("icon")
public UiFormattingRule setIcon(String icon) {
this.icon = icon;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("color")
public UiFormattingRule setColor(String color) {
this.color = color;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("borderColor")
public UiFormattingRule setBorderColor(String borderColor) {
this.borderColor = borderColor;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("backgroundColor")
public UiFormattingRule setBackgroundColor(String backgroundColor) {
this.backgroundColor = backgroundColor;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("bold")
public UiFormattingRule setBold(boolean bold) {
this.bold = bold;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("underline")
public UiFormattingRule setUnderline(boolean underline) {
this.underline = underline;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("italic")
public UiFormattingRule setItalic(boolean italic) {
this.italic = italic;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy