Class ModelValidator<T>
- java.lang.Object
-
- io.wcm.devops.conga.tooling.maven.plugin.validation.ModelValidator<T>
-
- Type Parameters:
T- Model class
- All Implemented Interfaces:
DefinitionValidator<T>
public final class ModelValidator<T> extends Object implements DefinitionValidator<T>
Validates YAML model file against it's reader.
-
-
Constructor Summary
Constructors Constructor Description ModelValidator(String modelName, io.wcm.devops.conga.model.reader.ModelReader<T> modelReader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tvalidate(io.wcm.devops.conga.resource.Resource resource, String pathForLog)Validates the given resource
-
-
-
Method Detail
-
validate
public T validate(io.wcm.devops.conga.resource.Resource resource, String pathForLog) throws org.apache.maven.plugin.MojoFailureException
Description copied from interface:DefinitionValidatorValidates the given resource- Specified by:
validatein interfaceDefinitionValidator<T>- Parameters:
resource- ResourcepathForLog- Path for log message- Returns:
- Result
- Throws:
org.apache.maven.plugin.MojoFailureException- Mojo failure exception
-
-