12.07.2015 Views

Podsumowanie wzorców projektowych GoF

Podsumowanie wzorców projektowych GoF

Podsumowanie wzorców projektowych GoF

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

}mainQuery = 'T';} else {if ((subQuery == ' ') && (forUsed)) {subQuery = 'T';}}} else if (currentToken.equals("actor")) {if (mainQuery == ' ') {mainQuery = 'A';} else {if ((subQuery == ' ') && (forUsed)) {subQuery = 'A';}}} else if (currentToken.equals("for")) {forUsed = true;} else if ((searchString == null) &&(subQuery != ' ') &&(currentToken.startsWith("")) {searchEnded = true;}} else if ((searchStarted) && (!searchEnded)) {searchString = searchString + " " + currentToken;if (currentToken.endsWith(">")) {searchEnded = true;}}if (searchString != null) {searchString =searchString.substring(1,(searchString.length() - 1));//remove }DvdAbstractExpression abstractExpression;switch (mainQuery) {case 'A' : {switch (subQuery) {case 'T' : {abstractExpression =new DvdActorTitleExpression(searchString);break;}default : {abstractExpression =new DvdActorExpression();break;}}break;}case 'T' : {switch (subQuery) {case 'A' : {abstractExpression =new DvdTitleActorExpression(searchString);84

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!