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 boolean
equals(Object obj)
List<ModuleInfo>
getDepends()
Retrieves a list of modules that the current module depends on, represented asModuleInfo
objects.String
getDescription()
Retrieves the description of the module.String
getMavenGroup()
Retrieves the Maven group identifier associated with the module.MetaModule
getMetaModule()
Retrieves the correspondingMetaModule
associated to the current module name.String
getName()
Retrieves the name of the module.String
getTitle()
Retrieves the title of the module.String
getVersion()
Retrieves the version of the module.int
hashCode()
boolean
isInstalled()
Whatever the module is installed.String
toString()
-
-
-
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 asModuleInfo
objects.- Returns:
- a list of
ModuleInfo
-
getMetaModule
public MetaModule getMetaModule()
Retrieves the correspondingMetaModule
associated to the current module name.- Returns:
- the
MetaModule
associated with the current module name
-
-