gets the value of the cart 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 cart property . for example , to add a new item , do as follows : getcart . add newitem ; objects of the following type s are allowed in the list cart concode_field_sep OperationRequest operationRequest concode_elem_sep List<Cart> cart concode_field_sep OperationRequest getOperationRequest concode_elem_sep void setOperationRequest
List < Cart > function ( ) { if ( cart == null ) { cart = new ArrayList < Cart > ( ) ; } return this . cart ; }