Package com.axelor.meta.loader
Class ModuleInfo
- java.lang.Object
-
- com.axelor.meta.loader.ModuleInfo
-
public class ModuleInfo extends Object
The ModuleInfo class acts as a wrapper and provides a simplified interface for managing and retrieving information about a specific module.
-
-
Constructor Summary
Constructors Constructor Description ModuleInfo(String name)Constructs a new ModuleInfo instance for the specified module name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)List<ModuleInfo>getDepends()Retrieves a list of modules that the current module depends on, represented asModuleInfoobjects.StringgetDescription()Retrieves the description of the module.StringgetMavenGroup()Retrieves the Maven group identifier associated with the module.MetaModulegetMetaModule()Retrieves the correspondingMetaModuleassociated to the current module name.StringgetName()Retrieves the name of the module.StringgetTitle()Retrieves the title of the module.StringgetVersion()Retrieves the version of the module.inthashCode()booleanisInstalled()Whatever the module is installed.StringtoString()
-
-
-
Constructor Detail
-
ModuleInfo
public ModuleInfo(String name)
Constructs a new ModuleInfo instance for the specified module name. Throws an IllegalArgumentException if no module with the provided name is found.- Parameters:
name- the name of the module to retrieve information for- Throws:
IllegalArgumentException- if the module with the specified name cannot be found
-
-
Method Detail
-
getName
public String getName()
Retrieves the name of the module.- Returns:
- the name of the module
-
getVersion
public String getVersion()
Retrieves the version of the module.- Returns:
- the version of the module
-
getMavenGroup
public String getMavenGroup()
Retrieves the Maven group identifier associated with the module.- Returns:
- the Maven group identifier of the module
-
getDescription
public String getDescription()
Retrieves the description of the module.- Returns:
- the description of the module
-
getTitle
public String getTitle()
Retrieves the title of the module.- Returns:
- the title of the module
-
isInstalled
public boolean isInstalled()
Whatever the module is installed.- Returns:
- true if the module is installed, false otherwise
-
getDepends
public List<ModuleInfo> getDepends()
Retrieves a list of modules that the current module depends on, represented asModuleInfoobjects.- Returns:
- a list of
ModuleInfo
-
getMetaModule
public MetaModule getMetaModule()
Retrieves the correspondingMetaModuleassociated to the current module name.- Returns:
- the
MetaModuleassociated with the current module name
-
-