object = new AnnotationImpl(result[0]); object = new AnnotationImpl(result[0], result[1]); } else throw new IllegalFormatException("String cannot be parsed to create an annotation (check the syntax): " + Arrays.asList(result).toString());
public AnnotationImpl(String topic) { setTopic(topic); }
public Annotation intactToMitab(uk.ac.ebi.intact.model.Annotation intactAnnotation){ if (intactAnnotation != null && intactAnnotation.getCvTopic() != null){ String topic = CvTopic.COMMENT; if (intactAnnotation.getCvTopic().getShortLabel() != null){ topic = intactAnnotation.getCvTopic().getShortLabel(); } if (!topicsToExclude.contains(topic)){ Annotation annot = new AnnotationImpl(topic); annot.setText(intactAnnotation.getAnnotationText()); return annot; } } return null; } }
} else { iAnnotations.add(new AnnotationImpl(name, text));
} else { annotations.add(new AnnotationImpl(name, text)); } else { annotations.add(new AnnotationImpl(name, text));