com.onevizion.uitest.api.vo.entity.ConfigApp Maven / Gradle / Ivy
package com.onevizion.uitest.api.vo.entity;
import java.util.List;
import java.util.Map;
import com.onevizion.uitest.api.exception.SeleniumUnexpectedException;
public class ConfigApp {
private String name;
private String label;
private String trackorType;
private String relatedTrackorType;
private String icon;
private String isMaster;
private List tabs;
private Map roles;
private List classes;
private List pages;
private List packages;
private ConfigApp() {
}
public static Builder newBuilder() {
return new ConfigApp().new Builder();
}
public String getName() {
return name;
}
public String getLabel() {
return label;
}
public String getTrackorType() {
return trackorType;
}
public String getRelatedTrackorType() {
return relatedTrackorType;
}
public String getIcon() {
return icon;
}
public String getIsMaster() {
return isMaster;
}
public List getTabs() {
return tabs;
}
public Map getRoles() {
return roles;
}
public List getClasses() {
return classes;
}
public List getPages() {
return pages;
}
public List getPackages() {
return packages;
}
public class Builder {
private Builder() {
}
public ConfigApp build() {
if (ConfigApp.this.name == null ||
ConfigApp.this.label == null ||
ConfigApp.this.trackorType == null ||
ConfigApp.this.relatedTrackorType == null ||
ConfigApp.this.icon == null ||
ConfigApp.this.isMaster == null ||
ConfigApp.this.tabs == null ||
ConfigApp.this.roles == null ||
ConfigApp.this.classes == null ||
ConfigApp.this.pages == null ||
ConfigApp.this.packages == null) {
throw new SeleniumUnexpectedException("");
}
return ConfigApp.this;
}
public Builder setName(String name) {
ConfigApp.this.name = name;
return this;
}
public Builder setLabel(String label) {
ConfigApp.this.label = label;
return this;
}
public Builder setTrackorType(String trackorType) {
ConfigApp.this.trackorType = trackorType;
return this;
}
public Builder setRelatedTrackorType(String relatedTrackorType) {
ConfigApp.this.relatedTrackorType = relatedTrackorType;
return this;
}
public Builder setIcon(String icon) {
ConfigApp.this.icon = icon;
return this;
}
public Builder setIsMaster(String isMaster) {
ConfigApp.this.isMaster = isMaster;
return this;
}
public Builder setTabs(List tabs) {
ConfigApp.this.tabs = tabs;
return this;
}
public Builder setRoles(Map roles) {
ConfigApp.this.roles = roles;
return this;
}
public Builder setClasses(List classes) {
ConfigApp.this.classes = classes;
return this;
}
public Builder setPages(List pages) {
ConfigApp.this.pages = pages;
return this;
}
public Builder setPackages(List packages) {
ConfigApp.this.packages = packages;
return this;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy