/** Sets the Map value associated with this annotation */ public void setMapAnnotationValue(List<MapPair> value, int mapAnnotationIndex) { OME o0 = root; if (o0.getStructuredAnnotations() == null) { o0.setStructuredAnnotations(new StructuredAnnotations()); } StructuredAnnotations o1 = o0.getStructuredAnnotations(); if (o1.sizeOfMapAnnotationList() == mapAnnotationIndex) { o1.addMapAnnotation(new MapAnnotation()); } MapAnnotation o2 = o1.getMapAnnotation(mapAnnotationIndex); o2.setValue(value); }
/** Sets the Map value associated with this annotation */ public void setMapAnnotationValue(List<MapPair> value, int mapAnnotationIndex) { OME o0 = root; if (o0.getStructuredAnnotations() == null) { o0.setStructuredAnnotations(new StructuredAnnotations()); } StructuredAnnotations o1 = o0.getStructuredAnnotations(); if (o1.sizeOfMapAnnotationList() == mapAnnotationIndex) { o1.addMapAnnotation(new MapAnnotation()); } MapAnnotation o2 = o1.getMapAnnotation(mapAnnotationIndex); o2.setValue(value); }
public void setListAnnotationDescription(String description, int listAnnotationIndex) { // Parents: {u'StructuredAnnotations': {u'OME': None}} // Description is not a reference OME o0 = root; if (o0.getStructuredAnnotations() == null) { o0.setStructuredAnnotations(new StructuredAnnotations()); } StructuredAnnotations o1 = o0.getStructuredAnnotations(); if (o1.sizeOfListAnnotationList() == listAnnotationIndex) { o1.addListAnnotation(new ListAnnotation()); } ListAnnotation o2 = o1.getListAnnotation(listAnnotationIndex); o2.setDescription(description); }
public void setLongAnnotationAnnotator(String annotator, int longAnnotationIndex) { // Parents: {u'StructuredAnnotations': {u'OME': None}} // Annotator is not a reference OME o0 = root; if (o0.getStructuredAnnotations() == null) { o0.setStructuredAnnotations(new StructuredAnnotations()); } StructuredAnnotations o1 = o0.getStructuredAnnotations(); if (o1.sizeOfLongAnnotationList() == longAnnotationIndex) { o1.addLongAnnotation(new LongAnnotation()); } LongAnnotation o2 = o1.getLongAnnotation(longAnnotationIndex); o2.setAnnotator(annotator); }
public void setLongAnnotationNamespace(String namespace, int longAnnotationIndex) { // Parents: {u'StructuredAnnotations': {u'OME': None}} // Namespace is not a reference OME o0 = root; if (o0.getStructuredAnnotations() == null) { o0.setStructuredAnnotations(new StructuredAnnotations()); } StructuredAnnotations o1 = o0.getStructuredAnnotations(); if (o1.sizeOfLongAnnotationList() == longAnnotationIndex) { o1.addLongAnnotation(new LongAnnotation()); } LongAnnotation o2 = o1.getLongAnnotation(longAnnotationIndex); o2.setNamespace(namespace); }
public void setXMLAnnotationDescription(String description, int XMLAnnotationIndex) { // Parents: {u'StructuredAnnotations': {u'OME': None}} // Description is not a reference OME o0 = root; if (o0.getStructuredAnnotations() == null) { o0.setStructuredAnnotations(new StructuredAnnotations()); } StructuredAnnotations o1 = o0.getStructuredAnnotations(); if (o1.sizeOfXMLAnnotationList() == XMLAnnotationIndex) { o1.addXMLAnnotation(new XMLAnnotation()); } XMLAnnotation o2 = o1.getXMLAnnotation(XMLAnnotationIndex); o2.setDescription(description); }
public void setBooleanAnnotationDescription(String description, int booleanAnnotationIndex) { // Parents: {u'StructuredAnnotations': {u'OME': None}} // Description is not a reference OME o0 = root; if (o0.getStructuredAnnotations() == null) { o0.setStructuredAnnotations(new StructuredAnnotations()); } StructuredAnnotations o1 = o0.getStructuredAnnotations(); if (o1.sizeOfBooleanAnnotationList() == booleanAnnotationIndex) { o1.addBooleanAnnotation(new BooleanAnnotation()); } BooleanAnnotation o2 = o1.getBooleanAnnotation(booleanAnnotationIndex); o2.setDescription(description); }
public void setBooleanAnnotationNamespace(String namespace, int booleanAnnotationIndex) { // Parents: {u'StructuredAnnotations': {u'OME': None}} // Namespace is not a reference OME o0 = root; if (o0.getStructuredAnnotations() == null) { o0.setStructuredAnnotations(new StructuredAnnotations()); } StructuredAnnotations o1 = o0.getStructuredAnnotations(); if (o1.sizeOfBooleanAnnotationList() == booleanAnnotationIndex) { o1.addBooleanAnnotation(new BooleanAnnotation()); } BooleanAnnotation o2 = o1.getBooleanAnnotation(booleanAnnotationIndex); o2.setNamespace(namespace); }
public void setCommentAnnotationAnnotator(String annotator, int commentAnnotationIndex) { // Parents: {u'StructuredAnnotations': {u'OME': None}} // Annotator is not a reference OME o0 = root; if (o0.getStructuredAnnotations() == null) { o0.setStructuredAnnotations(new StructuredAnnotations()); } StructuredAnnotations o1 = o0.getStructuredAnnotations(); if (o1.sizeOfCommentAnnotationList() == commentAnnotationIndex) { o1.addCommentAnnotation(new CommentAnnotation()); } CommentAnnotation o2 = o1.getCommentAnnotation(commentAnnotationIndex); o2.setAnnotator(annotator); }
public void setFileAnnotationDescription(String description, int fileAnnotationIndex) { // Parents: {u'StructuredAnnotations': {u'OME': None}} // Description is not a reference OME o0 = root; if (o0.getStructuredAnnotations() == null) { o0.setStructuredAnnotations(new StructuredAnnotations()); } StructuredAnnotations o1 = o0.getStructuredAnnotations(); if (o1.sizeOfFileAnnotationList() == fileAnnotationIndex) { o1.addFileAnnotation(new FileAnnotation()); } FileAnnotation o2 = o1.getFileAnnotation(fileAnnotationIndex); o2.setDescription(description); }
public void setMapAnnotationDescription(String description, int mapAnnotationIndex) { // Parents: {u'StructuredAnnotations': {u'OME': None}} // Description is not a reference OME o0 = root; if (o0.getStructuredAnnotations() == null) { o0.setStructuredAnnotations(new StructuredAnnotations()); } StructuredAnnotations o1 = o0.getStructuredAnnotations(); if (o1.sizeOfMapAnnotationList() == mapAnnotationIndex) { o1.addMapAnnotation(new MapAnnotation()); } MapAnnotation o2 = o1.getMapAnnotation(mapAnnotationIndex); o2.setDescription(description); }
public void setTagAnnotationAnnotator(String annotator, int tagAnnotationIndex) { // Parents: {u'StructuredAnnotations': {u'OME': None}} // Annotator is not a reference OME o0 = root; if (o0.getStructuredAnnotations() == null) { o0.setStructuredAnnotations(new StructuredAnnotations()); } StructuredAnnotations o1 = o0.getStructuredAnnotations(); if (o1.sizeOfTagAnnotationList() == tagAnnotationIndex) { o1.addTagAnnotation(new TagAnnotation()); } TagAnnotation o2 = o1.getTagAnnotation(tagAnnotationIndex); o2.setAnnotator(annotator); }
public void setTermAnnotationDescription(String description, int termAnnotationIndex) { // Parents: {u'StructuredAnnotations': {u'OME': None}} // Description is not a reference OME o0 = root; if (o0.getStructuredAnnotations() == null) { o0.setStructuredAnnotations(new StructuredAnnotations()); } StructuredAnnotations o1 = o0.getStructuredAnnotations(); if (o1.sizeOfTermAnnotationList() == termAnnotationIndex) { o1.addTermAnnotation(new TermAnnotation()); } TermAnnotation o2 = o1.getTermAnnotation(termAnnotationIndex); o2.setDescription(description); }
public void setBooleanAnnotationDescription(String description, int booleanAnnotationIndex) { // Parents: {u'StructuredAnnotations': {u'OME': None}} // Description is not a reference OME o0 = root; if (o0.getStructuredAnnotations() == null) { o0.setStructuredAnnotations(new StructuredAnnotations()); } StructuredAnnotations o1 = o0.getStructuredAnnotations(); if (o1.sizeOfBooleanAnnotationList() == booleanAnnotationIndex) { o1.addBooleanAnnotation(new BooleanAnnotation()); } BooleanAnnotation o2 = o1.getBooleanAnnotation(booleanAnnotationIndex); o2.setDescription(description); }
public void setCommentAnnotationNamespace(String namespace, int commentAnnotationIndex) { // Parents: {u'StructuredAnnotations': {u'OME': None}} // Namespace is not a reference OME o0 = root; if (o0.getStructuredAnnotations() == null) { o0.setStructuredAnnotations(new StructuredAnnotations()); } StructuredAnnotations o1 = o0.getStructuredAnnotations(); if (o1.sizeOfCommentAnnotationList() == commentAnnotationIndex) { o1.addCommentAnnotation(new CommentAnnotation()); } CommentAnnotation o2 = o1.getCommentAnnotation(commentAnnotationIndex); o2.setNamespace(namespace); }
public void setDoubleAnnotationDescription(String description, int doubleAnnotationIndex) { // Parents: {u'StructuredAnnotations': {u'OME': None}} // Description is not a reference OME o0 = root; if (o0.getStructuredAnnotations() == null) { o0.setStructuredAnnotations(new StructuredAnnotations()); } StructuredAnnotations o1 = o0.getStructuredAnnotations(); if (o1.sizeOfDoubleAnnotationList() == doubleAnnotationIndex) { o1.addDoubleAnnotation(new DoubleAnnotation()); } DoubleAnnotation o2 = o1.getDoubleAnnotation(doubleAnnotationIndex); o2.setDescription(description); }
public void setTagAnnotationAnnotator(String annotator, int tagAnnotationIndex) { // Parents: {u'StructuredAnnotations': {u'OME': None}} // Annotator is not a reference OME o0 = root; if (o0.getStructuredAnnotations() == null) { o0.setStructuredAnnotations(new StructuredAnnotations()); } StructuredAnnotations o1 = o0.getStructuredAnnotations(); if (o1.sizeOfTagAnnotationList() == tagAnnotationIndex) { o1.addTagAnnotation(new TagAnnotation()); } TagAnnotation o2 = o1.getTagAnnotation(tagAnnotationIndex); o2.setAnnotator(annotator); }
public void setTermAnnotationValue(String value, int termAnnotationIndex) { // Parents: {u'StructuredAnnotations': {u'OME': None}} // Value is not a reference OME o0 = root; if (o0.getStructuredAnnotations() == null) { o0.setStructuredAnnotations(new StructuredAnnotations()); } StructuredAnnotations o1 = o0.getStructuredAnnotations(); if (o1.sizeOfTermAnnotationList() == termAnnotationIndex) { o1.addTermAnnotation(new TermAnnotation()); } TermAnnotation o2 = o1.getTermAnnotation(termAnnotationIndex); o2.setValue(value); }
public void setTimestampAnnotationNamespace(String namespace, int timestampAnnotationIndex) { // Parents: {u'StructuredAnnotations': {u'OME': None}} // Namespace is not a reference OME o0 = root; if (o0.getStructuredAnnotations() == null) { o0.setStructuredAnnotations(new StructuredAnnotations()); } StructuredAnnotations o1 = o0.getStructuredAnnotations(); if (o1.sizeOfTimestampAnnotationList() == timestampAnnotationIndex) { o1.addTimestampAnnotation(new TimestampAnnotation()); } TimestampAnnotation o2 = o1.getTimestampAnnotation(timestampAnnotationIndex); o2.setNamespace(namespace); }
public SPWModelMock(boolean makeLightSources) { ome = new OME(); annotations = new StructuredAnnotations(); ome.addInstrument(makeInstrument(makeLightSources)); for (int i = 0; i < WELL_ROWS.getValue() * WELL_COLS.getValue(); i++) { ome.addImage(makeImage(i)); } ome.addPlate(makePlate()); ome.setStructuredAnnotations(annotations); }