protected boolean isIncluded ( String name ) { ensureNonPatternSetsReady ( ) ; if ( isCaseSensitive ( ) ? includeNonPatterns . contains ( name ) : includeNonPatterns . contains ( name . toUpperCase ( ) ) ) { return true ; } for ( int i = 0 ; i < includePatterns . length ; i ++ ) { if ( matchPath ( includePatterns [ i ] , name , isCaseSensitive ( ) ) ) { return true ; } } return false ; }
Test whether or not a name matches against at least one include pattern .