Exemple #1
0
 public InventoryXml getInventory(String shelf, String slot) {
   for (InventoryXml aInventory : getInventory()) {
     if (aInventory.getShelf().equals(shelf) && aInventory.getSlot().equals(slot)) {
       return aInventory;
     }
   }
   return null;
 }
Exemple #2
0
 public boolean isBranchSite() {
   for (int i = 0; i < this.getInventory().size(); i++) {
     InventoryXml anInventory = this.getInventory().get(i);
     if (anInventory.getComponentAid().startsWith("WSS")) {
       return true;
     }
   }
   return false;
 }