if (xmlParticipant.getAttributes() != null) { Collection<Attribute> xmlParticipantAttributes = xmlParticipant.getAttributes(); for (Attribute xmlParticipantAttribute : xmlParticipantAttributes) { String name = xmlParticipantAttribute.getName(); if (xmlParticipant.getAttributes() != null) { Collection<Attribute> attributes = xmlParticipant.getAttributes();
IntactConverterUtils.populateAnnotations(participant.getAttributes(), component, getInstitution()); for (Attribute a : participant.getAttributes()){ if (a.getNameAc() != null){ if (a.getNameAc().equals(CvTopic.COMMENT_MI_REF) && a.getValue() != null){
Attribute authConf = new Attribute(IntactConverterUtils.AUTH_CONF_MI, IntactConverterUtils.AUTH_CONF, conf.getValue()); if (!participant.getAttributes().contains(authConf)){ participant.getAttributes().add(authConf); Attribute attribute = new Attribute(CvTopic.COMMENT_MI_REF, CvTopic.COMMENT, STOICHIOMETRY_PREFIX + intactObject.getStoichiometry()); if (!participant.getAttributes().contains( attribute )) { participant.getAttributes().add( attribute );
Collection<Attribute> annotationConfidencesToMigrate = extractAuthorConfidencesFrom(participant.getAttributes()); Collection<Attribute> attributesToConvert = CollectionUtils.subtract(participant.getAttributes(), annotationConfidencesToMigrate);
if (!participant.getAttributes().contains(attribute)) { participant.getAttributes().add(attribute);
for (psidev.psi.mi.xml254.jaxb.Attribute attribute : jParticipant.getAttributeList().getAttributes()) { mParticipant.getAttributes() .add( attributeConverter.fromJaxb( attribute ) );
for (AttributeListType.Attribute attribute : jParticipant.getAttributeList().getAttributes()) { mParticipant.getAttributes() .add( attributeConverter.fromJaxb( attribute ) );
mParticipant.getAttributes() ) {
mParticipant.getAttributes() ) {