Class NoneValidator
java.lang.Object
io.wcm.devops.conga.generator.plugins.validator.NoneValidator
- All Implemented Interfaces:
FilePlugin<ValidatorContext,,Void> Plugin,ValidatorPlugin
Does no validation.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccepts(FileContext file, ValidatorContext context) Checks if the plugin can be applied to the given file.apply(FileContext file, ValidatorContext context) Validates the given filegetName()implicitApply(FileContext file, ValidatorContext context) Whether to apply this plugin implicitly.
-
Field Details
-
NAME
Plugin name- See Also:
-
-
Constructor Details
-
NoneValidator
public NoneValidator()
-
-
Method Details
-
getName
-
accepts
Description copied from interface:FilePluginChecks if the plugin can be applied to the given file.- Specified by:
acceptsin interfaceFilePlugin<ValidatorContext,Void> - Parameters:
file- Context filecontext- Context objects- Returns:
- true when the plugin can be applied to the given file.
-
implicitApply
Description copied from interface:ValidatorPluginWhether to apply this plugin implicitly.- Specified by:
implicitApplyin interfaceFilePlugin<ValidatorContext,Void> - Specified by:
implicitApplyin interfaceValidatorPlugin- Parameters:
file- Context filecontext- Context objects- Returns:
- Implicit apply option
-
apply
Description copied from interface:ValidatorPluginValidates the given file- Specified by:
applyin interfaceFilePlugin<ValidatorContext,Void> - Specified by:
applyin interfaceValidatorPlugin- Parameters:
file- Context filecontext- Context objects- Returns:
- nothing
- Throws:
ValidationException- when the validation fails.
-