List < LabelType > function ( ) { if ( types == null ) { types = new ArrayList < LabelType > ( ) ; } return this . types ; }
gets the value of the types 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 types property . for example , to add a new item , do as follows : gettypes . add newitem ; objects of the following type s are allowed in the list labeltype concode_field_sep List<LabelType> types concode_elem_sep String name concode_elem_sep String description concode_elem_sep Long id concode_elem_sep Boolean isActive concode_field_sep void setName concode_elem_sep String getName concode_elem_sep void setId concode_elem_sep Long getId concode_elem_sep void setDescription concode_elem_sep String getDescription concode_elem_sep void setIsActive concode_elem_sep Boolean isIsActive