pattern = patterns[ i ]; newQuery.setDefaultValue( pattern );
workingPattern = patterns[ i ]; System.out.println("new pattern: "+workingPattern); newQuery.setDefaultValue( workingPattern );
	public void setSearchString( String searchString ) {		this.searchString = searchString;		String[] patterns = split( searchString, ' ' );		/* now we have to generate a query-Object for each search pattern */		Query newQuery;			 	for ( int i = 0; i < patterns.length; i++ ) {								newQuery = new Query();				String pattern = patterns[i];								switch ( determineSearchType( pattern ) )	 {					case AND :											newQuery.setNode( EnumQuery.KEYWORDS );						newQuery.setComment( "Search-pattern:" );						if ( pattern != null ){							newQuery.setDefaultValue( pattern );							andQuerys.add( newQuery );						}						else if ( i < patterns.length ) {							i++;							pattern = patterns[ i ];							newQuery.setDefaultValue( pattern );							andQuerys.add( newQuery );						}						/*if AND was last keyword, ignore */																		break;					case ANDNOT :											newQuery.setNode( EnumQuery.KEYWORDS );						newQuery.setComment( "Search-pattern:" );						if ( pattern != null ){							newQuery.setDefaultValue( pattern );							andNotQuerys.add( newQuery );						}						else if ( i < patterns.length ) {							i++;							pattern = patterns[ i ];							newQuery.setDefaultValue( pattern );							andNotQuerys.add( newQuery );						}						/*if ANDNOT was last keyword, ignore */																		break;										case OR :						newQuery.setNode( EnumQuery.KEYWORDS );						newQuery.setComment( "Search-pattern:" );						if ( pattern != null ){							newQuery.setDefaultValue( pattern );							orQuerys.add( newQuery );						}						else if ( i < patterns.length ) {							i++;							pattern = patterns[ i ];							newQuery.setDefaultValue( pattern );							orQuerys.add( newQuery );						}						/*if OR was last keyword, ignore */																		break;					} 			}	}