org.teamapps.dto.UiPasswordField 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 = UiPasswordField.class)
public class UiPasswordField extends UiTextField implements UiObject {
protected boolean sendValueAsMd5;
protected String salt;
protected boolean passwordVisibilityToggleEnabled;
public UiPasswordField() {
super();
}
@com.fasterxml.jackson.annotation.JsonIgnore
public UiObjectType getUiObjectType() {
return UiObjectType.UI_PASSWORD_FIELD;
}
@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("editingMode=" + editingMode).append(", ")
.append("value=" + value).append(", ")
.append("maxCharacters=" + maxCharacters).append(", ")
.append("showClearButton=" + showClearButton).append(", ")
.append("placeholderText=" + placeholderText).append(", ")
.append("autofill=" + autofill).append(", ")
.append("sendValueAsMd5=" + sendValueAsMd5).append(", ")
.append("salt=" + salt).append(", ")
.append("passwordVisibilityToggleEnabled=" + passwordVisibilityToggleEnabled).append(", ")
.append(fieldMessages != null ? "fieldMessages={" + fieldMessages.toString() + "}" : "")
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("sendValueAsMd5")
public boolean getSendValueAsMd5() {
return sendValueAsMd5;
}
@com.fasterxml.jackson.annotation.JsonGetter("salt")
public String getSalt() {
return salt;
}
@com.fasterxml.jackson.annotation.JsonGetter("passwordVisibilityToggleEnabled")
public boolean getPasswordVisibilityToggleEnabled() {
return passwordVisibilityToggleEnabled;
}
@com.fasterxml.jackson.annotation.JsonSetter("id")
public UiPasswordField setId(String id) {
this.id = id;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("debuggingId")
public UiPasswordField setDebuggingId(String debuggingId) {
this.debuggingId = debuggingId;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("visible")
public UiPasswordField setVisible(boolean visible) {
this.visible = visible;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("stylesBySelector")
public UiPasswordField setStylesBySelector(Map> stylesBySelector) {
this.stylesBySelector = stylesBySelector;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("classNamesBySelector")
public UiPasswordField setClassNamesBySelector(Map> classNamesBySelector) {
this.classNamesBySelector = classNamesBySelector;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("attributesBySelector")
public UiPasswordField setAttributesBySelector(Map> attributesBySelector) {
this.attributesBySelector = attributesBySelector;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("editingMode")
public UiPasswordField setEditingMode(UiFieldEditingMode editingMode) {
this.editingMode = editingMode;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("value")
public UiPasswordField setValue(Object value) {
this.value = value;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("fieldMessages")
public UiPasswordField setFieldMessages(List fieldMessages) {
this.fieldMessages = fieldMessages;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("maxCharacters")
public UiPasswordField setMaxCharacters(int maxCharacters) {
this.maxCharacters = maxCharacters;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("showClearButton")
public UiPasswordField setShowClearButton(boolean showClearButton) {
this.showClearButton = showClearButton;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("placeholderText")
public UiPasswordField setPlaceholderText(String placeholderText) {
this.placeholderText = placeholderText;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("autofill")
public UiPasswordField setAutofill(boolean autofill) {
this.autofill = autofill;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("sendValueAsMd5")
public UiPasswordField setSendValueAsMd5(boolean sendValueAsMd5) {
this.sendValueAsMd5 = sendValueAsMd5;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("salt")
public UiPasswordField setSalt(String salt) {
this.salt = salt;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("passwordVisibilityToggleEnabled")
public UiPasswordField setPasswordVisibilityToggleEnabled(boolean passwordVisibilityToggleEnabled) {
this.passwordVisibilityToggleEnabled = passwordVisibilityToggleEnabled;
return this;
}
public static class SetSendValueAsMd5Command implements UiCommand {
@UiComponentId protected String componentId;
protected boolean sendValueAsMd5;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public SetSendValueAsMd5Command() {
// default constructor for Jackson
}
public SetSendValueAsMd5Command(String componentId, boolean sendValueAsMd5) {
this.componentId = componentId;
this.sendValueAsMd5 = sendValueAsMd5;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("componentId=" + componentId).append(", ")
.append("sendValueAsMd5=" + sendValueAsMd5)
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("componentId")
public String getComponentId() {
return componentId;
}
@com.fasterxml.jackson.annotation.JsonGetter("sendValueAsMd5")
public boolean getSendValueAsMd5() {
return sendValueAsMd5;
}
}
public static class SetSaltCommand implements UiCommand {
@UiComponentId protected String componentId;
protected String salt;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public SetSaltCommand() {
// default constructor for Jackson
}
public SetSaltCommand(String componentId, String salt) {
this.componentId = componentId;
this.salt = salt;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("componentId=" + componentId).append(", ")
.append("salt=" + salt)
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("componentId")
public String getComponentId() {
return componentId;
}
@com.fasterxml.jackson.annotation.JsonGetter("salt")
public String getSalt() {
return salt;
}
}
public static class SetPasswordVisibilityToggleEnabledCommand implements UiCommand {
@UiComponentId protected String componentId;
protected boolean enabled;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public SetPasswordVisibilityToggleEnabledCommand() {
// default constructor for Jackson
}
public SetPasswordVisibilityToggleEnabledCommand(String componentId, boolean enabled) {
this.componentId = componentId;
this.enabled = enabled;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("componentId=" + componentId).append(", ")
.append("enabled=" + enabled)
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("componentId")
public String getComponentId() {
return componentId;
}
@com.fasterxml.jackson.annotation.JsonGetter("enabled")
public boolean getEnabled() {
return enabled;
}
}
}