nl: gets the value of the properties 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 properties property . for example , to add a new item , do as follows : getproperties . add newitem ; objects of the following type s are allowed in the list propertydeclaration concode_field_sep List<ProvidedPort> providedPorts concode_elem_sep List<ConsumedPort> consumedPorts concode_elem_sep List<PropertyDeclaration> properties concode_field_sep List<ConsumedPort> getConsumedPorts concode_elem_sep List<ProvidedPort> getProvidedPorts
code: List < PropertyDeclaration > function ( ) { if ( properties == null ) { properties = new ArrayList < PropertyDeclaration > ( ) ; } return this . properties ; }