List < String > function ( ) { if ( repository == null ) { repository = new ArrayList < > ( ) ; } return this . repository ; }
gets the value of the repository 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 repository property . for example , to add a new item , do as follows : getrepository . add newitem ; objects of the following type s are allowed in the list string concode_field_sep List<Feature> feature concode_elem_sep String name concode_elem_sep String namespace concode_elem_sep List<String> resourceRepository concode_elem_sep List<String> repository concode_field_sep void setName concode_elem_sep List<String> getResourceRepository concode_elem_sep String getName concode_elem_sep String getNamespace concode_elem_sep void postUnmarshall concode_elem_sep void setNamespace concode_elem_sep List<Feature> getFeature