Class PumlReviewer

java.lang.Object
org.machanism.machai.gw.reviewer.PumlReviewer
All Implemented Interfaces:
Reviewer

public class PumlReviewer extends Object implements Reviewer
Reviewer implementation for PlantUML files (.puml).

Extracts documented guidance from PlantUML content using a special tag for input into automated documentation workflows.

  • Constructor Details

    • PumlReviewer

      public PumlReviewer()
  • Method Details

    • getSupportedFileExtensions

      public String[] getSupportedFileExtensions()
      Returns the file extensions supported by this reviewer. This reviewer handles files with the 'puml' extension.
      Specified by:
      getSupportedFileExtensions in interface Reviewer
      Returns:
      an array of supported file extension strings
    • perform

      public String perform(File projectDir, File guidancesFile) throws IOException
      Reviews the given PlantUML file for contained guidance comments and formats the content for input to documentation generators.
      Specified by:
      perform in interface Reviewer
      Parameters:
      projectDir - the root directory of the project for context
      guidancesFile - the PlantUML file to be analyzed
      Returns:
      formatted documentation guidance or null if none found
      Throws:
      IOException - if an error occurs reading the file