Class XmlFileHeader
java.lang.Object
io.wcm.devops.conga.generator.plugins.fileheader.XmlFileHeader
- All Implemented Interfaces:
FileHeaderPlugin,FilePlugin<FileHeaderContext,,Void> Plugin
Adds file headers to XML files.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccepts(FileContext file, FileHeaderContext context) Checks if the plugin can be applied to the given file.apply(FileContext file, FileHeaderContext context) Applies the comment file header.extract(FileContext file) Extract comment lines from file header.getName()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.wcm.devops.conga.generator.spi.FileHeaderPlugin
implicitApply
-
Field Details
-
NAME
Plugin name- See Also:
-
-
Constructor Details
-
XmlFileHeader
public XmlFileHeader()Constructor.
-
-
Method Details
-
getName
-
accepts
Description copied from interface:FilePluginChecks if the plugin can be applied to the given file.- Specified by:
acceptsin interfaceFilePlugin<FileHeaderContext,Void> - Parameters:
file- Context filecontext- Context objects- Returns:
- true when the plugin can be applied to the given file.
-
apply
Description copied from interface:FileHeaderPluginApplies the comment file header.- Specified by:
applyin interfaceFileHeaderPlugin- Specified by:
applyin interfaceFilePlugin<FileHeaderContext,Void> - Parameters:
file- Context filecontext- Context objects- Returns:
- nothing
-
extract
Description copied from interface:FileHeaderPluginExtract comment lines from file header.- Specified by:
extractin interfaceFileHeaderPlugin- Parameters:
file- Context file- Returns:
- File header context with comment lines. Returns null if extraction not possible or no comments present.
-