List < String > function ( ) { if ( fields == null ) { fields = new ArrayList < String > ( ) ; } return this . fields ; }
gets the value of the fields 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 fields property . for example , to add a new item , do as follows : getfields . add newitem ; objects of the following type s are allowed in the list string concode_field_sep List<String> fields concode_elem_sep String message concode_elem_sep StatusCode statusCode concode_field_sep StatusCode getStatusCode concode_elem_sep void setStatusCode concode_elem_sep String getMessage concode_elem_sep void setMessage