gets the value of the food property . this accessor method returns a reference to the live list , not a snapshot . therefore any modification you make to the returned list will be present inside the jaxb object . this is why there is not a set method for the food property . for example , to add a new item , do as follows : getfood . add newitem ; objects of the following type s are allowed in the list menu.food concode_field_sep float price concode_elem_sep String name concode_elem_sep String description concode_elem_sep int calories concode_elem_sep String category concode_elem_sep List<Menu.Food> food concode_field_sep void setName concode_elem_sep String getName concode_elem_sep int getCalories concode_elem_sep void setCategory concode_elem_sep void setCalories concode_elem_sep String getCategory concode_elem_sep void setDescription concode_elem_sep void setPrice concode_elem_sep String getDescription concode_elem_sep float getPrice
List < Menu . Food > function ( ) { if ( food == null ) { food = new ArrayList < Menu . Food > ( ) ; } return this . food ; }