List < String > function ( ) { if ( childName == null ) { childName = new ArrayList < String > ( ) ; } return this . childName ; }
gets the value of the childname 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 childname property . for example , to add a new item , do as follows : getchildname . add newitem ; objects of the following type s are allowed in the list string concode_field_sep List<String> childName concode_elem_sep String fullName concode_field_sep void setFullName concode_elem_sep String getFullName