org.apache.struts.config
public class MessageResourcesConfig extends java.lang.Object implements java.io.Serializable
A JavaBean representing the configuration information of a
<message-resources>
element in a Struts
configuration file.
Modifier and Type | Field and Description |
---|---|
protected boolean |
configured
Has this component been completely configured?
|
private boolean |
escape
Indicates whether 'escape processing' should be performed on
the error message string.
|
protected java.lang.String |
factory
Fully qualified Java class name of the MessageResourcesFactory class
we should use.
|
protected java.lang.String |
key
The servlet context attributes key under which this MessageResources
instance is stored.
|
protected boolean |
nullValue
Should we return
null for unknown message keys? |
protected java.lang.String |
parameter
Parameter that is passed to the
createResources() method
of our MessageResourcesFactory implementation. |
Constructor and Description |
---|
MessageResourcesConfig() |
Modifier and Type | Method and Description |
---|---|
void |
freeze()
Freeze the configuration of this component.
|
java.lang.String |
getFactory() |
java.lang.String |
getKey() |
boolean |
getNull() |
java.lang.String |
getParameter() |
boolean |
isEscape()
Indicates whether 'escape processing' should be performed on
the error message string.
|
void |
setEscape(boolean escape)
Set whether 'escape processing' should be performed on
the error message string.
|
void |
setFactory(java.lang.String factory) |
void |
setKey(java.lang.String key) |
void |
setNull(boolean nullValue) |
void |
setParameter(java.lang.String parameter) |
java.lang.String |
toString()
Return a String representation of this object.
|
protected boolean configured
protected java.lang.String factory
protected java.lang.String key
protected boolean nullValue
null
for unknown message keys?private boolean escape
protected java.lang.String parameter
createResources()
method
of our MessageResourcesFactory implementation.public java.lang.String getFactory()
public void setFactory(java.lang.String factory)
public java.lang.String getKey()
public void setKey(java.lang.String key)
public boolean getNull()
public void setNull(boolean nullValue)
public boolean isEscape()
public void setEscape(boolean escape)
public java.lang.String getParameter()
public void setParameter(java.lang.String parameter)
public void freeze()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright ? 2000-2014 - The Apache Software Foundation