org.apache.struts.config

Class MessageResourcesConfig

public class MessageResourcesConfig extends Object implements Serializable

A JavaBean representing the configuration information of a <message-resources> element in a Struts configuration file.

Since: Struts 1.1

Version: $Rev: 264684 $ $Date: 2005-08-30 04:08:01 +0100 (Tue, 30 Aug 2005) $

Field Summary
protected booleanconfigured
Has this component been completely configured?
booleanescape
Indicates whether 'escape processing' should be performed on the error message string.
protected Stringfactory
Fully qualified Java class name of the MessageResourcesFactory class we should use.
protected Stringkey
The servlet context attributes key under which this MessageResources instance is stored.
protected booleannullValue
Should we return null for unknown message keys?
protected Stringparameter
Parameter that is passed to the createResources() method of our MessageResourcesFactory implementation.
Method Summary
voidfreeze()
Freeze the configuration of this component.
StringgetFactory()
StringgetKey()
booleangetNull()
StringgetParameter()
booleanisEscape()
Indicates whether 'escape processing' should be performed on the error message string.
voidsetEscape(boolean escape)
Set whether 'escape processing' should be performed on the error message string.
voidsetFactory(String factory)
voidsetKey(String key)
voidsetNull(boolean nullValue)
voidsetParameter(String parameter)
StringtoString()
Return a String representation of this object.

Field Detail

configured

protected boolean configured
Has this component been completely configured?

escape

private boolean escape
Indicates whether 'escape processing' should be performed on the error message string.

factory

protected String factory
Fully qualified Java class name of the MessageResourcesFactory class we should use.

key

protected String key
The servlet context attributes key under which this MessageResources instance is stored.

nullValue

protected boolean nullValue
Should we return null for unknown message keys?

parameter

protected String parameter
Parameter that is passed to the createResources() method of our MessageResourcesFactory implementation.

Method Detail

freeze

public void freeze()
Freeze the configuration of this component.

getFactory

public String getFactory()

getKey

public String getKey()

getNull

public boolean getNull()

getParameter

public String getParameter()

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

setFactory

public void setFactory(String factory)

setKey

public void setKey(String key)

setNull

public void setNull(boolean nullValue)

setParameter

public void setParameter(String parameter)

toString

public String toString()
Return a String representation of this object.
Copyright B) 2000-2008 - The Apache Software Foundation