private static AttachmentList generateAttachmentList ( final List < Attachment > listAttachments ) { AttachmentList list = new AttachmentList ( ) ; for ( Attachment attachment : listAttachments ) { list . add ( new org . helm . chemtoolkit . Attachment ( attachment . getAlternateId ( ) , attachment . getLabel ( ) , attachment . getCapGroupName ( ) , attachment . getCapGroupSMILES ( ) ) ) ; } return list ; }
method to generate the AttachmentList given a list of attachments