// Food lists part of the categories private void createCollection() { MenuXMLParser parser = new MenuXMLParser(); fm = new FoodMenu(); fm = parser.parseXML(this); foodCollection = new LinkedHashMap<String, List<String>>(); for (Category c : fm.getCategories()) { foodCollection.put(c.getName(), c.getStringList()); } }
// Categories private void createGroupList() { MenuXMLParser parser = new MenuXMLParser(); fm = new FoodMenu(); fm = parser.parseXML(this); groupList = new ArrayList<String>(); ArrayList<Category> categories = fm.getCategories(); for (Category c : categories) { groupList.add(c.getName()); } }