List < FileType > function ( ) { if ( file == null ) { file = new ArrayList < FileType > ( ) ; } return this . file ; }
gets the value of the file 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 file property . for example , to add a new item , do as follows : getfile . add newitem ; objects of the following type s are allowed in the list filetype concode_field_sep List<FileType> file concode_elem_sep Map<QName,String> otherAttributes concode_field_sep Map<QName,String> getOtherAttributes