protected boolean doesFileMatch ( final File file , final CSNodeWrapper node ) { if ( ! node . getNodeType ( ) . equals ( CommonConstants . CS_NODE_FILE ) ) return false ; // If the unique id is not from the parser, in which case it will start with a number than use the unique id to compare if ( file . getUniqueId ( ) != null && file . getUniqueId ( ) . matches ( "^\\d.*" ) ) { return file . getUniqueId ( ) . equals ( Integer . toString ( node . getId ( ) ) ) ; } else { // Since a content spec doesn't contain the database ids for the nodes use what is available to see if the files match return file . getId ( ) . equals ( node . getEntityId ( ) ) ; } }
Checks to see if a ContentSpec topic matches a Content Spec Entity file .