public final boolean hasReferenceTo ( final File templateDir , final File templateFile ) { final String p1 = Utils4J . getCanonicalPath ( new File ( templateDir , template ) ) ; final String p2 = Utils4J . getCanonicalPath ( templateFile ) ; return p1 . equals ( p2 ) ; }
Checks if this model has a reference to the given template file .