Class NoneFileHeader
- java.lang.Object
-
- io.wcm.devops.conga.generator.plugins.fileheader.NoneFileHeader
-
- All Implemented Interfaces:
FileHeaderPlugin
,FilePlugin<FileHeaderContext,Void>
,Plugin
public final class NoneFileHeader extends Object implements FileHeaderPlugin
Adds no file header.
-
-
Constructor Summary
Constructors Constructor Description NoneFileHeader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accepts(FileContext file, FileHeaderContext context)
Checks if the plugin can be applied to the given file.Void
apply(FileContext file, FileHeaderContext context)
Applies the comment file header.String
getName()
ImplicitApplyOptions
implicitApply(FileContext file, FileHeaderContext context)
Whether to apply this plugin implicitly.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.wcm.devops.conga.generator.spi.FileHeaderPlugin
extract
-
-
-
-
Field Detail
-
NAME
public static final String NAME
Plugin name- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
public String getName()
-
accepts
public boolean accepts(FileContext file, FileHeaderContext context)
Description copied from interface:FilePlugin
Checks if the plugin can be applied to the given file.- Specified by:
accepts
in interfaceFilePlugin<FileHeaderContext,Void>
- Parameters:
file
- Context filecontext
- Context objects- Returns:
- true when the plugin can be applied to the given file.
-
implicitApply
public ImplicitApplyOptions implicitApply(FileContext file, FileHeaderContext context)
Description copied from interface:FileHeaderPlugin
Whether to apply this plugin implicitly.- Specified by:
implicitApply
in interfaceFileHeaderPlugin
- Specified by:
implicitApply
in interfaceFilePlugin<FileHeaderContext,Void>
- Parameters:
file
- Context filecontext
- Context objects- Returns:
- Implicit apply option
-
apply
public Void apply(FileContext file, FileHeaderContext context)
Description copied from interface:FileHeaderPlugin
Applies the comment file header.- Specified by:
apply
in interfaceFileHeaderPlugin
- Specified by:
apply
in interfaceFilePlugin<FileHeaderContext,Void>
- Parameters:
file
- Context filecontext
- Context objects- Returns:
- nothing
-
-