Class ModelValidator<T>

    • Constructor Detail

      • ModelValidator

        public ModelValidator​(String modelName,
                              ModelReader<T> modelReader)
        Parameters:
        modelName - Model name (for log message)
        modelReader - Model reader implementation
    • Method Detail

      • validate

        public T validate​(Resource resource,
                          String pathForLog)
                   throws org.apache.maven.plugin.MojoFailureException
        Description copied from interface: DefinitionValidator
        Validates the given resource
        Specified by:
        validate in interface DefinitionValidator<T>
        Parameters:
        resource - Resource
        pathForLog - Path for log message
        Returns:
        Result
        Throws:
        org.apache.maven.plugin.MojoFailureException - Mojo failure exception