public InventoryXml getInventory(String shelf, String slot) { for (InventoryXml aInventory : getInventory()) { if (aInventory.getShelf().equals(shelf) && aInventory.getSlot().equals(slot)) { return aInventory; } } return null; }
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; }