public boolean contains ( String path ) { boolean result = false ; FileName fn = new FileName ( path ) ; if ( fn . getPath ( ) . startsWith ( getPath ( ) ) ) { result = true ; } return result ; }
This will check if the given path is part of the path which is represented by this instance .