gets the value of the bedtype 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 bedtype property . for example , to add a new item , do as follows : getbedtype . add newitem ; objects of the following type s are allowed in the list string concode_field_sep List<Object> subCategoryBedType concode_elem_sep List<HospitalBedCapacityStatus.BedCapacity> bedCapacity concode_elem_sep List<String> commentText concode_elem_sep List<String> bedType concode_elem_sep List<Capacity> capacity concode_field_sep List<String> getCommentText concode_elem_sep List<HospitalBedCapacityStatus.BedCapacity> getBedCapacity concode_elem_sep List<Object> getSubCategoryBedType concode_elem_sep List<Capacity> getCapacity
List < String > function ( ) { if ( bedType == null ) { bedType = new ArrayList < String > ( ) ; } return this . bedType ; }