List < XContactType > function ( ) { if ( xContact == null ) { xContact = new ArrayList < XContactType > ( ) ; } return this . xContact ; }
gets the value of the xcontact 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 xcontact property . for example , to add a new item , do as follows : getxcontact . add newitem ; objects of the following type s are allowed in the list xcontacttype concode_field_sep List<XContactType> xContact concode_elem_sep List<String> contactPersonRefId concode_field_sep List<String> getContactPersonRefId