protected Iterable < DynamicValidationComponent > createValidatorComponents ( Image it , File currentFile , DynamicValidationContext context ) { final Collection < DynamicValidationComponent > components = new ArrayList <> ( ) ; if ( isLocalImageReferenceValidation ( ) ) { final int lineno = computeLineNo ( it ) ; final URL url = FileSystem . convertStringToURL ( it . getUrl ( ) . toString ( ) , true ) ; if ( URISchemeType . FILE . isURL ( url ) ) { final DynamicValidationComponent component = createLocalImageValidatorComponent ( it , url , lineno , currentFile , context ) ; if ( component != null ) { components . add ( component ) ; } } } return components ; }
Create a validation component for an image reference .