public Element asXMLElement(Document document) { return asXMLElement(document, null); }
public String getDoubleAnnotationAnnotator(int doubleAnnotationIndex) { // Parents: {u'StructuredAnnotations': {u'OME': None}} // Annotator is not a reference return root.getStructuredAnnotations().getDoubleAnnotation(doubleAnnotationIndex).getAnnotator(); }
String tagName = element.getTagName(); List<Element> Value_nodeList = getChildrenByTagName(element, "Value"); if (Value_nodeList.size() > 1) setValue( Double.valueOf(Value_nodeList.get(0).getTextContent()));
public void setDoubleAnnotationAnnotator(String annotator, int doubleAnnotationIndex) { // 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.sizeOfDoubleAnnotationList() == doubleAnnotationIndex) { o1.addDoubleAnnotation(new DoubleAnnotation()); } DoubleAnnotation o2 = o1.getDoubleAnnotation(doubleAnnotationIndex); o2.setAnnotator(annotator); }
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 setDoubleAnnotationValue(Double value, int doubleAnnotationIndex) { // 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.sizeOfDoubleAnnotationList() == doubleAnnotationIndex) { o1.addDoubleAnnotation(new DoubleAnnotation()); } DoubleAnnotation o2 = o1.getDoubleAnnotation(doubleAnnotationIndex); o2.setValue(value); }
public void setDoubleAnnotationNamespace(String namespace, int doubleAnnotationIndex) { // 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.sizeOfDoubleAnnotationList() == doubleAnnotationIndex) { o1.addDoubleAnnotation(new DoubleAnnotation()); } DoubleAnnotation o2 = o1.getDoubleAnnotation(doubleAnnotationIndex); o2.setNamespace(namespace); }
public void setDoubleAnnotationID(String id, int doubleAnnotationIndex) { // Parents: {u'StructuredAnnotations': {u'OME': None}} // ID 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); model.addModelObject(id, o2); o2.setID(id); }
Iterator<LightSource> l = lights.iterator(); while (l.hasNext()) { l.next().setLinkedAnnotation(index, new DoubleAnnotation()); index++;
public String getDoubleAnnotationDescription(int doubleAnnotationIndex) { // Parents: {u'StructuredAnnotations': {u'OME': None}} // Description is not a reference return root.getStructuredAnnotations().getDoubleAnnotation(doubleAnnotationIndex).getDescription(); }
public String getDoubleAnnotationID(int doubleAnnotationIndex) { // Parents: {u'StructuredAnnotations': {u'OME': None}} // ID is not a reference return root.getStructuredAnnotations().getDoubleAnnotation(doubleAnnotationIndex).getID(); }
public String getDoubleAnnotationNamespace(int doubleAnnotationIndex) { // Parents: {u'StructuredAnnotations': {u'OME': None}} // Namespace is not a reference return root.getStructuredAnnotations().getDoubleAnnotation(doubleAnnotationIndex).getNamespace(); }
public Double getDoubleAnnotationValue(int doubleAnnotationIndex) { // Parents: {u'StructuredAnnotations': {u'OME': None}} // Value is not a reference return root.getStructuredAnnotations().getDoubleAnnotation(doubleAnnotationIndex).getValue(); }
public String getDoubleAnnotationAnnotationRef(int doubleAnnotationIndex, int annotationRefIndex) { // Parents: {u'StructuredAnnotations': {u'OME': None}} // AnnotationRef is reference and occurs more than once return root.getStructuredAnnotations().getDoubleAnnotation(doubleAnnotationIndex).getLinkedAnnotation(annotationRefIndex).getID(); }
public void setDoubleAnnotationAnnotator(String annotator, int doubleAnnotationIndex) { // 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.sizeOfDoubleAnnotationList() == doubleAnnotationIndex) { o1.addDoubleAnnotation(new DoubleAnnotation()); } DoubleAnnotation o2 = o1.getDoubleAnnotation(doubleAnnotationIndex); o2.setAnnotator(annotator); }
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 setDoubleAnnotationValue(Double value, int doubleAnnotationIndex) { // 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.sizeOfDoubleAnnotationList() == doubleAnnotationIndex) { o1.addDoubleAnnotation(new DoubleAnnotation()); } DoubleAnnotation o2 = o1.getDoubleAnnotation(doubleAnnotationIndex); o2.setValue(value); }
public void setDoubleAnnotationNamespace(String namespace, int doubleAnnotationIndex) { // 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.sizeOfDoubleAnnotationList() == doubleAnnotationIndex) { o1.addDoubleAnnotation(new DoubleAnnotation()); } DoubleAnnotation o2 = o1.getDoubleAnnotation(doubleAnnotationIndex); o2.setNamespace(namespace); }
public void setDoubleAnnotationID(String id, int doubleAnnotationIndex) { // Parents: {u'StructuredAnnotations': {u'OME': None}} // ID 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); model.addModelObject(id, o2); o2.setID(id); }
new DoubleAnnotation(DoubleAnnotation_element, model));