List < ReferenceType > function ( ) { if ( resourceReference == null ) { resourceReference = new ArrayList < ReferenceType > ( ) ; } return this . resourceReference ; }
gets the value of the resourcereference 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 resourcereference property . for example , to add a new item , do as follows : getresourcereference . add newitem ; objects of the following type s are allowed in the list referencetype concode_field_sep ResourceType templateRef concode_elem_sep List<ReferenceType> resourceReference concode_field_sep void setTemplateRef concode_elem_sep ResourceType getTemplateRef