@Override public boolean equals(Object object) { boolean equals = super.equals(object); if (equals) { Annotation annotation = (Annotation) object; equals &= isSetNonRDFannotation() == annotation.isSetNonRDFannotation(); if (equals && isSetNonRDFannotation()) { equals &= nonRDFannotation.equals(annotation.getNonRDFannotation()); } equals &= isSetAbout() == annotation.isSetAbout(); if (equals && isSetAbout()) { equals &= getAbout().equals(annotation.getAbout()); } } return equals; }
String about = contextObject.getAnnotation().getAbout(); String metaid = null;
@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; }
descriptionNode.addAttr("about", contextObject.getAnnotation().getAbout(), Annotation.URI_RDF_SYNTAX_NS, "rdf");