Class 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 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 as ModuleInfo objects.
        Returns:
        a list of ModuleInfo
      • getMetaModule

        public MetaModule getMetaModule()
        Retrieves the corresponding MetaModule associated to the current module name.
        Returns:
        the MetaModule associated with the current module name
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object