src/main/java/org/fuin/srcgen4j/core/velocity/ParameterizedTemplateModels.java
public final List<ParameterizedTemplateModel> findReferencesTo(final File templateDir, final File templateFile) {

        final List<ParameterizedTemplateModel> result = new ArrayList<ParameterizedTemplateModel>();
        if ((paramTemplates != null) && Utils4J.fileInsideDirectory(templateDir, templateFile)) {
            for (final ParameterizedTemplateModel paramTemplate : paramTemplates) {
                if (paramTemplate.hasReferenceTo(templateDir, templateFile)) {
                    result.add(paramTemplate);
                }
            }
        }
        return result;
    }
public final List<ParameterizedTemplateModel> findReferencesTo(final File templateDir, final File templateFile) {

        final List<ParameterizedTemplateModel> result = new ArrayList<ParameterizedTemplateModel>();
        if ((paramTemplates != null) && Utils4J.fileInsideDirectory(templateDir, templateFile)) {
            for (final ParameterizedTemplateModel paramTemplate : paramTemplates) {
                if (paramTemplate.hasReferenceTo(templateDir, templateFile)) {
                    result.add(paramTemplate);
                }
            }
        }
        return result;
    }
public final List < ParameterizedTemplateModel > findReferencesTo ( final File templateDir , final File templateFile ) { final List < ParameterizedTemplateModel > result = new ArrayList < ParameterizedTemplateModel > ( ) ; if ( ( paramTemplates != null ) && Utils4J . fileInsideDirectory ( templateDir , templateFile ) ) { for ( final ParameterizedTemplateModel paramTemplate : paramTemplates ) { if ( paramTemplate . hasReferenceTo ( templateDir , templateFile ) ) { result . add ( paramTemplate ) ; } } } return result ; }
Returns a list that contains all models that reference the given template.

@param templateDir
Directory where all template files are located - Cannot be NULL.
@param templateFile
File to find references to - Cannot be NULL.

@return List - Never NULL, but may be empty.
Returns a list that contains all models that reference the given template .