private boolean isAffected(final String resourcePath,final String changed,final RecursionType recursionType){
  if (recursionType == RecursionType.FULL && LocalPath.isChild(resourcePath,changed)) {
    return true;
  }
 else   if (recursionType == RecursionType.NONE && LocalPath.equals(resourcePath,changed)) {
    return true;
  }
 else   if (recursionType == RecursionType.ONE_LEVEL && (LocalPath.equals(resourcePath,changed) || LocalPath.equals(resourcePath,LocalPath.getDirectory(changed)))) {
    return true;
  }
  return false;
}

private boolean isAffected ( final String resourcePath , final String changed , final RecursionType recursionType ) { if ( recursionType == RecursionType . FULL && LocalPath . isChild ( resourcePath , changed ) ) { return true ; } else if ( recursionType == RecursionType . NONE && LocalPath . equals ( resourcePath , changed ) ) { return true ; } else if ( recursionType == RecursionType . ONE_LEVEL && ( LocalPath . equals ( resourcePath , changed ) || LocalPath . equals ( resourcePath , LocalPath . getDirectory ( changed ) ) ) ) { return true ; } return false ; }
given a path to a resource and a path to a pending change and recursion level , determines whether the resource is affected by the change .
