List < PhoneNumberType > function ( ) { if ( phone == null ) { phone = new ArrayList < PhoneNumberType > ( ) ; } return this . phone ; }
gets the value of the phone 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 phone property . for example , to add a new item , do as follows : getphone . add newitem ; objects of the following type s are allowed in the list phonenumbertype concode_field_sep List<AddressType> address concode_elem_sep List<PhoneNumberType> phone concode_elem_sep String webURL concode_elem_sep long serialVersionUID concode_elem_sep List<EmailType> eMail concode_field_sep String getWebURL concode_elem_sep List<EmailType> getEMail concode_elem_sep void setWebURL concode_elem_sep List<AddressType> getAddress