Package org.bgerp.app.servlet.file

# Class Highlighter

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

public class Highlighter extends Object
File name highlighter using CSS class

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static Highlighter`
  `LOG_UPDATE_EXCEPTION`
  `static Highlighter`
  `LOG_WARN`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `protected boolean`
  `hasError(String line)`
  Detect errors in a file line
  `String`
  `highlight(File file)`
  CSS class to highlight a file
  `boolean`
  `match(File file)`
  Does a file name match to the highlighter

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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: