package org.apache.struts.config; import java.io.Serializable; public class MessageResourcesConfig implements Serializable { protected boolean configured = false; protected String factory = "org.apache.struts.util.PropertyMessageResourcesFactory"; public String getFactory() { return this.factory; } public void setFactory(String factory) { if (this.configured) throw new IllegalStateException("Configuration is frozen"); this.factory = factory; } protected String key = "org.apache.struts.action.MESSAGE"; public String getKey() { return this.key; } public void setKey(String key) { if (this.configured) throw new IllegalStateException("Configuration is frozen"); this.key = key; } protected boolean nullValue = true; public boolean getNull() { return this.nullValue; } public void setNull(boolean nullValue) { if (this.configured) throw new IllegalStateException("Configuration is frozen"); this.nullValue = nullValue; } protected String parameter = null; public String getParameter() { return this.parameter; } public void setParameter(String parameter) { if (this.configured) throw new IllegalStateException("Configuration is frozen"); this.parameter = parameter; } public void freeze() { this.configured = true; } public String toString() { StringBuffer sb = new StringBuffer("MessageResourcesConfig["); sb.append("factory="); sb.append(this.factory); sb.append(",null="); sb.append(this.nullValue); sb.append(",parameter="); sb.append(this.parameter); sb.append("]"); return sb.toString(); } }