Class ConfFileHeader

    • Constructor Detail

      • ConfFileHeader

        public ConfFileHeader()
    • Method Detail

      • getName

        public String getName()
        Returns:
        Plugin name to be referenced in definition file
      • accepts

        public boolean accepts​(FileContext file,
                               FileHeaderContext context)
        Description copied from interface: FilePlugin
        Checks if the plugin can be applied to the given file.
        Parameters:
        file - Context file
        context - Context objects
        Returns:
        true when the plugin can be applied to the given file.
      • extract

        public FileHeaderContext extract​(FileContext file)
        Description copied from interface: FileHeaderPlugin
        Extract comment lines from file header.
        Parameters:
        file - Context file
        Returns:
        File header context with comment lines. Returns null if extraction not possible or no comments present.