Package com.apps.ubc.cc.model

Examples of com.apps.ubc.cc.model.SaveonBookModel


  }
 
  public List<SaveonBookModel> filterBookList(List<SaveonBookModel> bol, FilterType ft, String value){
    List<SaveonBookModel> result = new ArrayList<SaveonBookModel>();
    for(Iterator i = bol.iterator(); i.hasNext();) {
      SaveonBookModel bo = (SaveonBookModel)i.next();
      String compare = "";
      switch(ft) {
      case TITLE:
        compare = bo.getTitle();
        break;
      case AUTHOR:
        compare = bo.getAuthor();
        break;
      case ISBN:
        compare = bo.getIsbn();
        break;
      case EDITION:
        compare = BookSearchUtils.parseEdition(bo.getEdition());
        break;
      case INSTITUTE:
        compare = bo.getInstitute();
        break;
      case DATE:
        compare = bo.getDate();
        break;
      case COURSE:
        compare = bo.getCourse();
        break;
      case PRICE:
        compare = bo.getPrice();
        break;
      }
      if (compare.toLowerCase().contains(value.toLowerCase()))
        result.add(bo);
    }
View Full Code Here


                line.indexOf("</TD>"));
            foundCount++;
          }
          line = br.readLine();
        }
        SaveonBookModel bo = new SaveonBookModel(title, author, edition, isbn,
            institute, date, course, price);
        books.add(bo);
      }
      line = br.readLine();
    }
View Full Code Here

TOP

Related Classes of com.apps.ubc.cc.model.SaveonBookModel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.