gets the value of the product 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 product property . for example , to add a new item , do as follows : getproduct . add newitem ; objects of the following type s are allowed in the list product concode_field_sep List<Product> product concode_elem_sep float totalCost concode_field_sep float getTotalCost concode_elem_sep void setTotalCost
List < Product > function ( ) { if ( product == null ) { product = new ArrayList < Product > ( ) ; } return this . product ; }