Class Highlighter

java.lang.Object
org.bgerp.app.servlet.file.Highlighter

public class Highlighter extends Object
File name highlighter using CSS class
  • Field Details

    • LOG_WARN

      public static Highlighter LOG_WARN
    • LOG_UPDATE_EXCEPTION

      public static Highlighter LOG_UPDATE_EXCEPTION
  • Method Details

    • match

      public boolean match(File file)
      Does a file name match to the highlighter
      Parameters:
      file - the file name
      Returns:
    • highlight

      public String highlight(File file) throws FileNotFoundException
      CSS class to highlight a file
      Parameters:
      file - the file
      Returns:
      the class name or null
      Throws:
      FileNotFoundException
    • hasError

      protected boolean hasError(String line)
      Detect errors in a file line
      Parameters:
      line - the line
      Returns: