public void addSarlCapacityUses ( String ... name ) { if ( name != null && name . length > 0 ) { SarlCapacityUses member = SarlFactory . eINSTANCE . createSarlCapacityUses ( ) ; this . sarlBehavior . getMembers ( ) . add ( member ) ; member . setAnnotationInfo ( XtendFactory . eINSTANCE . createXtendMember ( ) ) ; Collection < JvmParameterizedTypeReference > thecollection = member . getCapacities ( ) ; for ( final String aname : name ) { if ( ! Strings . isEmpty ( aname ) ) { thecollection . add ( newTypeRef ( this . sarlBehavior , aname ) ) ; } } } }
Create a SarlCapacityUses .