protected void makeSpines(LinkedList<StackSorterTriple> triples) { System.out.println("makeSpines"); spines = new LinkedList<SpineRepresentation>(); ListIterator<StackSorterTriple> li = triples.listIterator(); while (li.hasNext()) { StackSorterTriple triple = li.next(); Hashtable<String, Serializable> hash = triple.getItemInfo(); if (hash != null) { String itemS = (String) hash.get("item"); if (itemS != null) { Integer itemAkt = Integer.parseInt(itemS); boolean isSpecial = itemAkt.equals(item); System.out.println(itemAkt); // SpineRepresentationImpl spine=new // SpineRepresentationImpl(new // BibliographicStatusSorterImpl(itemAkt,(String)hash.get("ibarcode"),(String)hash.get("status"),(String)hash.get("collection")),isSpecial,false); SpineRepresentationImpl spine = new SpineRepresentationImpl( new BibliographicStatusSorterImpl( Integer.parseInt((String) hash.get("bib")), (String) hash.get("ibarcode"), (String) hash.get("status"), (String) hash.get("collection")), isSpecial, false); spines.add(spine); } else { System.out.println("SpineGetterSorterImp.makeSpines: item null."); } } else { System.out.println("SpineGetterSorterImp.makeSpines: hash null."); } } }
protected void makeBoards(LinkedList<Triple> triples) { boards = new LinkedList<BoardInformation>(); ListIterator<Triple> li = triples.listIterator(); while (li.hasNext()) { StackSorterTriple triple = li.next(); Hashtable<String, Serializable> hash = triple.getItemInfo(); String name = hash.get("ebene") + ":" + hash.get("regal") + "," + hash.get("brett"); Triple trip = (Triple) hash.get("triple"); Hashtable<String, Serializable> tripHash = trip.getItemInfo(); System.out.println( "makeBoards:" + name + "/" + tripHash.get("ibarcode") + "/" + hash.get("laengeCm")); BoardInformationImpl board = new BoardInformationImpl( (String) tripHash.get("ibarcode"), name, (Integer) hash.get("laengeCm") * 10, 300); boards.add(board); } }