gets the value of the comment 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 comment property . for example , to add a new item , do as follows : getcomment . add newitem ; objects of the following type s are allowed in the list comment concode_field_sep Header header concode_elem_sep Topic topic concode_elem_sep List<Comment> comment concode_field_sep Topic getTopic concode_elem_sep void setHeader concode_elem_sep Header getHeader concode_elem_sep void setTopic
List < Comment > function ( ) { if ( comment == null ) { comment = new ArrayList < Comment > ( ) ; } return this . comment ; }