public class AnyEntryPlugin extends Object implements ReportEntryPlugin<Object>, Plugin
KEY_PROPERTY and the
VALUE_PROPERTY properties to be effective. The
KEY_PROPERTY will then be used as the entry name in
the report.| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_PROPERTY |
static String |
VALUE_PROPERTY |
ENTRY_NAME_PROPERTY, SOURCE_CLASS_PROPERTY| Constructor and Description |
|---|
AnyEntryPlugin() |
| Modifier and Type | Method and Description |
|---|---|
Object |
extract(Object source,
Locale locale)
Extracts a piece of information from the source in arguments.
|
Map<String,String> |
getProperties() |
void |
setProperties(Map<String,String> map)
Give the plugin the remaining properties.
|
void |
setReporter(Reporter processor)
Set the current reporter.
|
public static final String KEY_PROPERTY
public static final String VALUE_PROPERTY
public void setProperties(Map<String,String> map) throws Exception
PluginsetProperties in interface Pluginmap - attributes and directives for this plugin's clauseExceptionpublic void setReporter(Reporter processor)
PluginsetReporter in interface Pluginpublic Object extract(Object source, Locale locale) throws Exception
ReportEntryPluginIf the source contains localized data, it will be extracted for the specified locale or a less specific if not found.
extract in interface ReportEntryPlugin<Object>source - the source to inspect, must not be nulllocale - the String representation of a Locale, must
not be nullnull if no data is availableExceptionpublic Map<String,String> getProperties()
getProperties in interface ReportEntryPlugin<Object>nullCopyright © 2021. All rights reserved.