List < AD > function ( ) { if ( ad == null ) { ad = new ArrayList < Tad > ( ) ; } return new ArrayList < AD > ( this . ad ) ; }
gets the value of the ad 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 ad property . for example , to add a new item , do as follows : getad . add newitem ; objects of the following type s are allowed in the list tad concode_field_sep List<Tad> ad concode_elem_sep List<Ticon> icon concode_elem_sep String name concode_elem_sep String description concode_elem_sep Map<QName,String> otherAttributes concode_elem_sep String id concode_elem_sep List<Object> any concode_field_sep void setName concode_elem_sep void setIcon concode_elem_sep void addAD concode_elem_sep String getName concode_elem_sep void setAny concode_elem_sep void setId concode_elem_sep String getId concode_elem_sep void setDescription concode_elem_sep String getDescription concode_elem_sep Map<QName,String> getOtherAttributes concode_elem_sep List<Object> getAny concode_elem_sep List<Icon> getIcon