|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.struts2.util.TextProviderHelper
public class TextProviderHelper
Helper methods to access text from TextProviders
| Field Summary | |
|---|---|
private static Logger |
LOG
|
| Constructor Summary | |
|---|---|
TextProviderHelper()
|
|
| Method Summary | |
|---|---|
static String |
getText(String key,
String defaultMessage,
List<String> args,
ValueStack stack)
Get a message from the first TextProvider encountered in the stack. |
static String |
getText(String key,
String defaultMessage,
ValueStack stack)
Get a message from the first TextProvider encountered in the stack. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final Logger LOG
| Constructor Detail |
|---|
public TextProviderHelper()
| Method Detail |
|---|
public static String getText(String key,
String defaultMessage,
List<String> args,
ValueStack stack)
Get a message from the first TextProvider encountered in the stack. If the first TextProvider doesn't provide the message the default message is returned.
The search for a TextProvider is iterative from the root of the stack.
This method was refactored from Text to use a
consistent implementation across UIBean components.
key - the message key in the resource bundledefaultMessage - the message to return if not found (evaluated for OGNL)args - an array args to be used in a MessageFormat messagestack - the value stack to use for finding the text
public static String getText(String key,
String defaultMessage,
ValueStack stack)
Get a message from the first TextProvider encountered in the stack. If the first TextProvider doesn't provide the message the default message is returned.
The search for a TextProvider is iterative from the root of the stack.
This method was refactored from Text to use a
consistent implementation across UIBean components.
key - the message key in the resource bundledefaultMessage - the message to return if not foundstack - the value stack to use for finding the text
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||