public Collection<Attribute> extractPublicationAttributesFromExperiment(ExperimentDescription expDesc){ if (!expDesc.hasAttributes()){ return Collections.EMPTY_LIST; } Collection<Attribute> attributes = new ArrayList<Attribute>(expDesc.getAttributes().size()); for (Attribute attr : expDesc.getAttributes()){ if (attr.getNameAc() != null){ if (publicationTopicsMi.contains(attr.getNameAc())){ attributes.add(attr); } } else if (attr.getName() != null){ if (publicationTopics.contains(attr.getName().toLowerCase())){ attributes.add(attr); } } } return attributes; }
Attribute attribute = annotationConverter.intactToPsi(attr); if (!expDesc.getAttributes().contains(attribute)){ expDesc.getAttributes().add(attribute);
experimentDescription.getAttributes().add(pubYear); Attribute authorList = new Attribute("author-list", firstAuthor); if (!experimentDescription.getAttributes().contains(authorList)) { experimentDescription.getAttributes().add(authorList);
if (experiment.getAttributes() != null) { String authorName = "-"; String pubYear = ""; for (Attribute attribute : experiment.getAttributes()) { if ("author-list".equals(attribute.getName())) { authorName = attribute.getValue();
for(String attr : getAttributes(experimentDescription.getAttributes())) evidence.addComment(attr.trim());
mExperimentDescription.getAttributes().add( attributeConverter.fromJaxb( jAttribute ) );
mExperimentDescription.getAttributes().add( attributeConverter.fromJaxb( jAttribute ) );
for ( Attribute mAttribute : mExperimentDescription.getAttributes() ) { if ( jExperimentDescription.getAttributeList() == null ) { jExperimentDescription.setAttributeList( new AttributeList() );
for ( Attribute mAttribute : mExperimentDescription.getAttributes() ) { if ( jExperimentDescription.getAttributeList() == null ) { jExperimentDescription.setAttributeList( new AttributeListType() );