Interface FileHeaderPlugin
- All Superinterfaces:
FilePlugin<FileHeaderContext,,Void> Plugin
- All Known Implementing Classes:
AbstractFileHeader,ConfFileHeader,JsonFileHeader,NoneFileHeader,UnixShellScriptFileHeader,WindowsShellScriptFileHeader,XmlFileHeader
Plugin that generates a file header comment with info that the file was automatically generated
and further info like a timestamp.
-
Method Summary
Modifier and TypeMethodDescriptionapply(FileContext file, FileHeaderContext context) Applies the comment file header.default FileHeaderContextextract(FileContext file) Extract comment lines from file header.default ImplicitApplyOptionsimplicitApply(FileContext file, FileHeaderContext context) Whether to apply this plugin implicitly.Methods inherited from interface io.wcm.devops.conga.generator.spi.FilePlugin
accepts
-
Method Details
-
implicitApply
Whether to apply this plugin implicitly.- Specified by:
implicitApplyin interfaceFilePlugin<FileHeaderContext,Void> - Parameters:
file- Context filecontext- Context objects- Returns:
- Implicit apply option
-
apply
Applies the comment file header.- Specified by:
applyin interfaceFilePlugin<FileHeaderContext,Void> - Parameters:
file- Context filecontext- Context objects- Returns:
- nothing
-
extract
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.
-