public static String joinAnnotationsCollection(List<Annotation> collection) { StringBuilder sb = new StringBuilder(); if (collection != null && !collection.isEmpty()) { Iterator<Annotation> iterator = collection.iterator(); while (iterator.hasNext()) { Annotation field = iterator.next(); String topic = field.getTopic(); if (topic != null) { topic = topic.replaceAll("\\p{Cntrl}", " "); } String text = field.getText(); if (text != null) { text = text.replaceAll("\\p{Cntrl}", " "); } sb.append(joinAttributes(topic, text, null)); if (iterator.hasNext()) { sb.append(FIELD_DELIMITER); } } } else { sb.append('-'); } return sb.toString(); }
String comment = annotation.getText(); if (comment != null && (comment.equals("mint") || comment.equals("homomint") || comment.equals("domino"))) { continue;
List<Annotation> annotations = binaryInteraction.getAnnotations(); for (Annotation annotation : annotations) { String comment = annotation.getText(); if (comment != null && (comment.equals("mint") || comment.equals("homomint") || comment.equals("domino"))) { continue;
if (!annotation.getText().contains("Stoichiometry: ")) { filterAnnotations.add(annotation);
if (!annotations.isEmpty()) { for (Annotation annotation : annotations) { Attribute attribute = new Attribute(annotation.getTopic(), annotation.getText()); interaction.getAttributes().add(attribute);
if (!tabInteractor.getAnnotations().isEmpty()) { for (Annotation annotation : tabInteractor.getAnnotations()) { Attribute attribute = new Attribute(annotation.getTopic(), annotation.getText()); xmlInteractor.getAttributes().add(attribute);