Package org.apache.struts.config
Class MessageResourcesConfig
java.lang.Object
org.apache.struts.config.BaseConfig
org.apache.struts.config.MessageResourcesConfig
- All Implemented Interfaces:
Serializable
A JavaBean representing the configuration information of a
<message-resources>
element in a Struts configuration
file.
- Since:
- Struts 1.1
- Version:
- $Rev$ $Date: 2005-08-29 23:57:50 -0400 (Mon, 29 Aug 2005) $
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
Fully qualified Java class name of the MessageResourcesFactory class we should use.protected String
The servlet context attributes key under which this MessageResources instance is stored.protected boolean
Should we returnnull
for unknown message keys?protected String
Parameter that is passed to thecreateResources()
method of our MessageResourcesFactory implementation.Fields inherited from class org.apache.struts.config.BaseConfig
configured
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetKey()
boolean
getNull()
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
(String factory) void
void
setNull
(boolean nullValue) void
setParameter
(String parameter) toString()
Return a String representation of this object.Methods inherited from class org.apache.struts.config.BaseConfig
copyProperties, freeze, getProperties, getProperty, inheritProperties, setProperties, setProperty, throwIfConfigured
-
Field Details
-
factory
Fully qualified Java class name of the MessageResourcesFactory class we should use. -
key
The servlet context attributes key under which this MessageResources instance is stored. -
nullValue
protected boolean nullValueShould we returnnull
for unknown message keys? -
parameter
Parameter that is passed to thecreateResources()
method of our MessageResourcesFactory implementation.
-
-
Constructor Details
-
MessageResourcesConfig
public MessageResourcesConfig()
-
-
Method Details
-
getFactory
-
setFactory
-
getKey
-
setKey
-
getNull
public boolean getNull() -
setNull
public void setNull(boolean nullValue) -
isEscape
public boolean isEscape()Indicates whether 'escape processing' should be performed on the error message string.- Since:
- Struts 1.2.8
-
setEscape
public void setEscape(boolean escape) Set whether 'escape processing' should be performed on the error message string.- Since:
- Struts 1.2.8
-
getParameter
-
setParameter
-
toString
Return a String representation of this object.
-