Class XmlValidator
java.lang.Object
io.wcm.devops.conga.generator.plugins.validator.XmlValidator
- All Implemented Interfaces:
FilePlugin<ValidatorContext,,Void> Plugin,ValidatorPlugin
Validates XML syntax.
-
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()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.ValidatorPlugin
implicitApply
-
Field Details
-
NAME
Plugin name- See Also:
-
-
Constructor Details
-
XmlValidator
public XmlValidator()Constructor.
-
-
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.
-
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.
-