Package com.axelor.meta.loader
Class ModuleInfo
java.lang.Object
com.axelor.meta.loader.ModuleInfo
The ModuleInfo class acts as a wrapper and provides a simplified interface for managing and
retrieving information about a specific module.
-
Constructor Summary
ConstructorsConstructorDescriptionModuleInfo
(String name) Constructs a new ModuleInfo instance for the specified module name. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Retrieves a list of modules that the current module depends on, represented asModuleInfo
objects.Retrieves the description of the module.Retrieves the Maven group identifier associated with the module.Retrieves the correspondingMetaModule
associated to the current module name.getName()
Retrieves the name of the module.getTitle()
Retrieves the title of the module.Retrieves the version of the module.int
hashCode()
boolean
Whatever the module is installed.toString()
-
Constructor Details
-
ModuleInfo
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 Details
-
getName
Retrieves the name of the module.- Returns:
- the name of the module
-
getVersion
Retrieves the version of the module.- Returns:
- the version of the module
-
getMavenGroup
Retrieves the Maven group identifier associated with the module.- Returns:
- the Maven group identifier of the module
-
getDescription
Retrieves the description of the module.- Returns:
- the description of the module
-
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
Retrieves a list of modules that the current module depends on, represented asModuleInfo
objects.- Returns:
- a list of
ModuleInfo
-
getMetaModule
Retrieves the correspondingMetaModule
associated to the current module name.- Returns:
- the
MetaModule
associated with the current module name
-
hashCode
public int hashCode() -
equals
-
toString
-