Interface CheckPom

  • All Known Implementing Classes:
    InitAnalyzer

    public interface CheckPom
    The CheckPom interface provides methods for analyzing and validating specific aspects of a Maven POM file. It facilitates calling a generic function or convenience methods to ensure the POM structure adheres to expected rules.
    • Method Detail

      • checking

        Inclusion<PomAnalyzer> checking​(String givenNode)
        Analyzes and validates the current context of a Maven POM file using the ParentPomAnalyzer.
        Parameters:
        givenNode - the node to analyze within the POM, typically a specific node or section (e.g., "dependencies").
        Returns:
        an Inclusion<PomAnalyzer> object allowing further validation or analysis on the specified context.
      • checkingModule

        Inclusion<ModuleAnalyzer> checkingModule()
        Provides an Inclusion<ModuleAnalyzer> instance for analyzing and validating modules defined in a Maven POM file. This method enables checking whether modules exist, ensuring they contain a `pom.xml` file, and performing additional validations on the specified modules.
        Returns:
        an Inclusion<ModuleAnalyzer> instance, allowing for further validation, checks, or operations related to the defined modules.