public Element asXMLElement(Document document) { return asXMLElement(document, null); }
public boolean link(Reference reference, OMEModelObject o) { boolean wasHandledBySuperClass = super.link(reference, o); if (wasHandledBySuperClass) { return true; } LOGGER.debug("Unable to handle reference of type: {}", reference.getClass()); return false; }
public boolean linkAnnotation(Annotation o) { o.linkChannel(this); return annotationLinks.add(o); }
public String getExperimenterGroupAnnotationRef(int experimenterGroupIndex, int annotationRefIndex) { // Parents: {u'OME': None} // AnnotationRef is reference and occurs more than once return root.getExperimenterGroup(experimenterGroupIndex).getLinkedAnnotation(annotationRefIndex).getID(); }
setNamespace(String.valueOf( element.getAttribute("Namespace"))); if (!element.hasAttribute("ID") && getID() == null) setID(String.valueOf( element.getAttribute("ID"))); model.addModelObject(getID(), this); setAnnotator(String.valueOf( element.getAttribute("Annotator"))); getChildrenByTagName(element, "Description"); if (Description_nodeList.size() > 1) setDescription( String.valueOf(Description_nodeList.get(0).getTextContent())); getChildrenByTagName(element, "AnnotationRef"); for (Element AnnotationRef_element : AnnotationRef_nodeList)
@Test(dependsOnMethods={"testValidInstrumentNode"}) public void testValidInstrumentAnnotation() { Annotation n = ome.getInstrument(0).getLinkedAnnotation(0); assertNotNull(n); assertEquals(INSTRUMENT_ANNOTATION_ID, n.getID()); assertEquals(n.getNamespace(), GENERAL_ANNOTATION_NAMESPACE); assertTrue(n instanceof CommentAnnotation); CommentAnnotation string = (CommentAnnotation) n; assertEquals(INSTRUMENT_ANNOTATION_VALUE, string.getValue()); }
public boolean linkAnnotation(Annotation o) { o.linkExperimenterGroup(this); return annotationLinks.add(o); }
public boolean linkAnnotation(Annotation o) { o.linkExperimenter(this); return annotationLinks.add(o); }
public boolean linkAnnotation(Annotation o) { o.linkDetector(this); return annotationLinks.add(o); }
public boolean linkAnnotation(Annotation o) { o.linkDichroic(this); return annotationLinks.add(o); }
public boolean linkAnnotation(Annotation o) { o.linkDataset(this); return annotationLinks.add(o); }
public String getImageAnnotationRef(int imageIndex, int annotationRefIndex) { // Parents: {u'OME': None} // AnnotationRef is reference and occurs more than once return root.getImage(imageIndex).getLinkedAnnotation(annotationRefIndex).getID(); }
setNamespace(String.valueOf( element.getAttribute("Namespace"))); if (!element.hasAttribute("ID") && getID() == null) setID(String.valueOf( element.getAttribute("ID"))); model.addModelObject(getID(), this); setAnnotator(String.valueOf( element.getAttribute("Annotator"))); getChildrenByTagName(element, "Description"); if (Description_nodeList.size() > 1) setDescription( String.valueOf(Description_nodeList.get(0).getTextContent())); getChildrenByTagName(element, "AnnotationRef"); for (Element AnnotationRef_element : AnnotationRef_nodeList)
@Test(dependsOnMethods={"testValidPlateNode"}) public void testValidPlateAnnotation() { Annotation n = ome.getPlate(0).getLinkedAnnotation(0); assertNotNull(n); assertEquals(PLATE_ANNOTATION_ID, n.getID()); assertEquals(n.getNamespace(), GENERAL_ANNOTATION_NAMESPACE); assertTrue(n instanceof TimestampAnnotation); TimestampAnnotation timestamp = (TimestampAnnotation) n; assertEquals(timestamp.getValue(), PLATE_ANNOTATION_VALUE); }
public boolean linkAnnotation(Annotation o) { o.linkExperimenterGroup(this); return annotationLinks.add(o); }
public boolean linkAnnotation(Annotation o) { o.linkExperimenter(this); return annotationLinks.add(o); }
public boolean linkAnnotation(Annotation o) { o.linkDetector(this); return annotationLinks.add(o); }
public boolean linkAnnotation(Annotation o) { o.linkDichroic(this); return annotationLinks.add(o); }
public boolean linkAnnotation(Annotation o) { o.linkDataset(this); return annotationLinks.add(o); }
public String getScreenAnnotationRef(int screenIndex, int annotationRefIndex) { // Parents: {u'OME': None} // AnnotationRef is reference and occurs more than once return root.getScreen(screenIndex).getLinkedAnnotation(annotationRefIndex).getID(); }