public EquipmentXml getPort(String shelf, String slot, String port) { for (EquipmentXml aPort : getPorts()) { if (aPort.getShelf().equals(shelf) && aPort.getSlot().equals(slot) && aPort.getPort().equals(port)) { return aPort; } } return null; }