List < PackageVersionType > function ( ) { if ( this . packageVersions == null ) { this . packageVersions = new ArrayList < PackageVersionType > ( ) ; } return this . packageVersions ; }
gets the value of the packageversions 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 packageversions property . for example , to add a new item , do as follows : getpackageversions . add newitem ; objects of the following type s are allowed in the list packageversiontype concode_field_sep List<PackageVersionType> packageVersions concode_field_sep void setPackageVersions