public class ImportJarResourcePlugin extends Object implements ReportEntryPlugin<Jar>, Plugin, RegistryPlugin
PATH_PROPERTY
property must be set and the TYPE_PROPERTY
can be set if the file type is not obvious (derived from its extension).| Modifier and Type | Field and Description |
|---|---|
static String |
PATH_PROPERTY |
static String |
TYPE_PROPERTY |
ENTRY_NAME_PROPERTY, SOURCE_CLASS_PROPERTY| Constructor and Description |
|---|
ImportJarResourcePlugin() |
| Modifier and Type | Method and Description |
|---|---|
Object |
extract(Jar 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 |
setRegistry(Registry registry) |
void |
setReporter(Reporter processor)
Set the current reporter.
|
public static final String PATH_PROPERTY
public static final String TYPE_PROPERTY
public Object extract(Jar 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<Jar>source - the source to inspect, must not be nulllocale - the String representation of a Locale, must
not be nullnull if no data is availableExceptionpublic void setRegistry(Registry registry)
setRegistry in interface RegistryPluginpublic 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 Map<String,String> getProperties()
getProperties in interface ReportEntryPlugin<Jar>nullCopyright © 2021. All rights reserved.