org.zodiac.template.base.config.TemplateInfo Maven / Gradle / Ivy
The newest version!
package org.zodiac.template.base.config;
import org.zodiac.core.application.AppEnvType;
import org.zodiac.template.base.constants.TemplateConstants;
public class TemplateInfo {
private String defaultExtension = TemplateConstants.DEFAULT_DEFAULT_EXTENSION;
private boolean searchExtensions = true;
private boolean searchLocalizedTemplates = false;
private Boolean cacheEnabled;
private boolean overwriteDuplicatedExt = true;
private AppEnvType appEnvType;
public TemplateInfo() {
super();
}
public String getDefaultExtension() {
return defaultExtension;
}
public void setDefaultExtension(String defaultExtension) {
this.defaultExtension = defaultExtension;
}
public boolean isSearchExtensions() {
return searchExtensions;
}
public void setSearchExtensions(boolean searchExtensions) {
this.searchExtensions = searchExtensions;
}
public boolean isSearchLocalizedTemplates() {
return searchLocalizedTemplates;
}
public void setSearchLocalizedTemplates(boolean searchLocalizedTemplates) {
this.searchLocalizedTemplates = searchLocalizedTemplates;
}
public Boolean getCacheEnabled() {
return cacheEnabled;
}
public void setCacheEnabled(Boolean cacheEnabled) {
this.cacheEnabled = cacheEnabled;
}
public boolean isOverwriteDuplicatedExt() {
return overwriteDuplicatedExt;
}
public void setOverwriteDuplicatedExt(boolean overwriteDuplicatedExt) {
this.overwriteDuplicatedExt = overwriteDuplicatedExt;
}
public AppEnvType getAppEnvType() {
return appEnvType;
}
public TemplateInfo setAppEnvType(AppEnvType appEnvType) {
this.appEnvType = appEnvType;
return this;
}
public boolean isProductionMode() {
return null != appEnvType ? appEnvType.productionMode() : false;
}
}