/** * Removes the given {@link CVTerm}. * * @param cvTerm * the {@link CVTerm} to remove * @return true if the {@link CVTerm} was successfully removed. */ @Override public boolean removeCVTerm(CVTerm cvTerm) { return getAnnotation().removeCVTerm(cvTerm); }
@Override public void setAnnotation(XMLNode nonRDFAnnotation) { getAnnotation().setNonRDFAnnotation(nonRDFAnnotation); }
@Override public boolean addCVTerm(CVTerm term) { return getAnnotation().addCVTerm(term); }
@Override public List<CVTerm> filterCVTerms(CVTerm.Qualifier qualifier) { return getAnnotation().filterCVTerms(qualifier); }
@Override public void appendAnnotation(String annotation) throws XMLStreamException { getAnnotation().appendNonRDFAnnotation(annotation); }
/** * Removes the {@link CVTerm} at the given index. * * @param index * the index * @return the removed {@link CVTerm}. * @throws IndexOutOfBoundsException * if the index is out of range (index < 0 || index >= size()) */ @Override public CVTerm removeCVTerm(int index) { return getAnnotation().removeCVTerm(index); }
@Override public void appendAnnotation(XMLNode annotation) { getAnnotation().appendNonRDFAnnotation(annotation); }
@Override public List<CVTerm> getCVTerms() { return getAnnotation().getListOfCVTerms(); }
@Override public History getHistory() { return getAnnotation().getHistory(); }
@Override public void unsetCVTerms() { if (isSetAnnotation() && getAnnotation().isSetListOfCVTerms()) { annotation.unsetCVTerms(); } }
@Override public void setHistory(History history) { History oldHistory = isSetHistory() ? getHistory() : null; getAnnotation().setHistory(history); firePropertyChange(TreeNodeChangeEvent.history, oldHistory, history); }
@Override public boolean hasValidAnnotation() { if (isSetAnnotation()) { if (isSetMetaId()) { Annotation annotation = getAnnotation(); if (!annotation.isSetAbout()) { /* * Ok, let's set this about tag silently because * when writing SBML, we would set this tag anyway. * This method just complains incorrectly set about * tags. */ annotation.setAbout('#' + getMetaId()); return true; } if (annotation.getAbout().equals('#' + getMetaId())) { return true; } } if (getAnnotation().isSetNonRDFannotation() && !getAnnotation().isSetRDFannotation()) { return true; } return false; } return true; }
if (isSetAnnotation() && getAnnotation().isSetRDFannotation() && !isSetMetaId()) { SBMLDocument doc = getSBMLDocument(); getElementName(), getMetaId())); getAnnotation().setAbout('#' + getMetaId()); } else { logger.warn(format(
getAnnotation().setAbout('#' + metaId);