| java.lang.Object org.iscreen.mvel.MvelMessage
All known Subclasses: org.iscreen.mvel.MvelResourceMessage,
Constructor Summary | |
public | MvelMessage(String theTemplate) Default constructor. | protected | MvelMessage() For sub-classes to over-ride how this works. |
Method Summary | |
public Object | getContextBean() Returns the OGNL root previously set using the setOgnlRoot() method. | public String | getMessage() Generates a message based upon the template of this message and the
OGNL root passed in to the setOgnlRoot() method. | public String | getMessage(Object context, Locale locale) Generates a message based upon the template of this message and the
OGNL root passed in. | public String | getTemplate(Locale locale) Returns the template previously set during construction.
Parameters: locale - The locale to use. |
MvelMessage | public MvelMessage(String theTemplate)(Code) | | Default constructor.
|
MvelMessage | protected MvelMessage()(Code) | | For sub-classes to over-ride how this works.
|
getContextBean | public Object getContextBean()(Code) | | Returns the OGNL root previously set using the setOgnlRoot() method.
Returns the OGNL root for this message. |
getMessage | public String getMessage()(Code) | | Generates a message based upon the template of this message and the
OGNL root passed in to the setOgnlRoot() method. If the OGNL root object
is null, then this method will return the template unchanged.
Returns the message, which is constructed based upon the OGNLroot and the template. |
getMessage | public String getMessage(Object context, Locale locale)(Code) | | Generates a message based upon the template of this message and the
OGNL root passed in. If the OGNL root is null, then the OGNL root
passed in to the setOgnlRoot() method is used. If that's null,
then the template is returned unchanged.
Parameters: context - The OGNL root to use for generating the message. Returns the message, which is constructed based upon the OGNLroot passed in and the template. |
getTemplate | public String getTemplate(Locale locale)(Code) | | Returns the template previously set during construction.
Parameters: locale - The locale to use. Returns the template. |
|
|