public class ModuleConfiguration
extends java.lang.Object
AbstractModule
. The modules are distinguished by
a hash value of their configurations. The configuration is serialized to
JSON, when the tool is closed.Modifier and Type | Field and Description |
---|---|
boolean |
enabled
flags, if the module is currently used for extraction
|
java.lang.String |
eventAddToProfile
when this event is generated, the part is added to profile UUID
|
FileFilter |
fileFilter
includes or excludes file types
|
java.lang.String |
moduleDisplayName
Changeable module name, only used for displaying purposes
|
java.lang.String |
moduleName
Not-changeable module name
|
java.lang.String |
moduleVersion
Current version of the module
|
boolean |
recordEvents
records events at event file
|
Constructor and Description |
---|
ModuleConfiguration()
Deprecated.
|
ModuleConfiguration(java.lang.String moduleName,
java.lang.String version)
Constructor to be called by the associated
AbstractModule . |
Modifier and Type | Method and Description |
---|---|
ModuleConfiguration |
addSupportedSystem(OperatingSystem.OsName os)
The default is "system independent".
|
boolean |
configurationIsValid()
Override this method, if a customized module configuration needs
validation!
|
java.util.HashSet<OperatingSystem.OsName> |
getSupportedSystems()
Set of
OperatingSystem s supported by the module |
public java.lang.String moduleName
public java.lang.String moduleDisplayName
public java.lang.String moduleVersion
public boolean enabled
public boolean recordEvents
public FileFilter fileFilter
public java.lang.String eventAddToProfile
@Deprecated public ModuleConfiguration()
public ModuleConfiguration(java.lang.String moduleName, java.lang.String version)
AbstractModule
.moduleName
- not-changeable module nameversion
- current version of the modulepublic boolean configurationIsValid()
public ModuleConfiguration addSupportedSystem(OperatingSystem.OsName os)
os
- public java.util.HashSet<OperatingSystem.OsName> getSupportedSystems()
OperatingSystem
s supported by the module