| dtw.webmail.plugin.RandomAppendPlugin
RandomAppendPlugin | public interface RandomAppendPlugin extends JwmaPlugin(Code) | | Interface for a plugin that provides randomly
selected quotes or nonsense, for being appended
to a text message.
author: Dieter Wimberger version: 0.9.7 07/02/2003 |
Field Summary | |
final public static String | TYPE_NONE Defines a type that will flag that a user does
not want anything to be appended to his email. |
Method Summary | |
public String | getRandomAppend(String type, Locale locale) Returns a randomly selected quote or nonsense
for being appended to a message in a given
Locale.
Parameters: type - a String representing a typewhat will be appended. Parameters: locale - the locale to be used for the append. | public String[] | listAppendTypes(Locale locale) Returns a list of random append type identifiers this
plugin can provide for a given Locale.
Parameters: locale - the Locale to be used. | public boolean | supportsAppendType(String type, Locale loc) Tests whether this RandomAppendPlugin
supports a given append type for a given
Locale.
Note:
If the method returns false, the setting will
automatically be TYPE_NONE, which
will tell the application logic, that nothing
is to be appended.
Parameters: type - a String representing anappend type. Parameters: locale - the Locale to be used. |
TYPE_NONE | final public static String TYPE_NONE(Code) | | Defines a type that will flag that a user does
not want anything to be appended to his email.
|
getRandomAppend | public String getRandomAppend(String type, Locale locale)(Code) | | Returns a randomly selected quote or nonsense
for being appended to a message in a given
Locale.
Parameters: type - a String representing a typewhat will be appended. Parameters: locale - the locale to be used for the append. a random String to be appended tothe message. |
listAppendTypes | public String[] listAppendTypes(Locale locale)(Code) | | Returns a list of random append type identifiers this
plugin can provide for a given Locale.
Parameters: locale - the Locale to be used. a String[] holding the typeidentifiers. |
supportsAppendType | public boolean supportsAppendType(String type, Locale loc)(Code) | | Tests whether this RandomAppendPlugin
supports a given append type for a given
Locale.
Note:
If the method returns false, the setting will
automatically be TYPE_NONE, which
will tell the application logic, that nothing
is to be appended.
Parameters: type - a String representing anappend type. Parameters: locale - the Locale to be used. true if the type is supported, false otherwise. |
|
|