gets the value of the targetedlocations 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 targetedlocations property . for example , to add a new item , do as follows : gettargetedlocations . add newitem ; objects of the following type s are allowed in the list location concode_field_sep List<Location> excludedLocations concode_elem_sep List<Location> targetedLocations concode_field_sep List<Location> getExcludedLocations
List < Location > function ( ) { if ( targetedLocations == null ) { targetedLocations = new ArrayList < Location > ( ) ; } return this . targetedLocations ; }