/** * Creates a binary file. * * @return See above. */ public BinaryFile createBinaryFile() { BinaryFile bf = new BinaryFile(); bf.setBinData(createBinData(SIZE_X, SIZE_Y, BYTES_PER_PIXEL)); return bf; }
public Element asXMLElement(Document document) { return asXMLElement(document, null); }
setMIMEType(String.valueOf( element.getAttribute("MIMEType"))); setSize(NonNegativeLong.valueOf( element.getAttribute("Size"))); setFileName(String.valueOf( element.getAttribute("FileName"))); getChildrenByTagName(element, "External"); if (External_nodeList.size() > 1) setExternal(new External( (Element) External_nodeList.get(0), model)); getChildrenByTagName(element, "BinData"); if (BinData_nodeList.size() > 1) setBinData(new BinData( (Element) BinData_nodeList.get(0), model));
public void setBinaryFileBinDataBigEndian(Boolean bigEndian, int fileAnnotationIndex) { // Parents: {u'BinaryFile': {u'FileAnnotation': {u'StructuredAnnotations': {u'OME': None}}}, u'Mask': None, u'Pixels': {u'Image': {u'OME': None}}} // BigEndian 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); if (o2.getBinaryFile() == null) { o2.setBinaryFile(new BinaryFile()); } BinaryFile o3 = o2.getBinaryFile(); if (o3.getBinData() == null) { o3.setBinData(new BinData()); } BinData o4 = o3.getBinData(); o4.setBigEndian(bigEndian); }
public void setBinaryFileFileName(String fileName, int fileAnnotationIndex) { // Parents: {u'FileAnnotation': {u'StructuredAnnotations': {u'OME': None}}} // FileName 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); if (o2.getBinaryFile() == null) { o2.setBinaryFile(new BinaryFile()); } BinaryFile o3 = o2.getBinaryFile(); o3.setFileName(fileName); }
public void setBinaryFileMIMEType(String mimeType, int fileAnnotationIndex) { // Parents: {u'FileAnnotation': {u'StructuredAnnotations': {u'OME': None}}} // MIMEType 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); if (o2.getBinaryFile() == null) { o2.setBinaryFile(new BinaryFile()); } BinaryFile o3 = o2.getBinaryFile(); o3.setMIMEType(mimeType); }
public void setBinaryFileSize(NonNegativeLong size, int fileAnnotationIndex) { // Parents: {u'FileAnnotation': {u'StructuredAnnotations': {u'OME': None}}} // Size 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); if (o2.getBinaryFile() == null) { o2.setBinaryFile(new BinaryFile()); } BinaryFile o3 = o2.getBinaryFile(); o3.setSize(size); }
public NonNegativeLong getBinaryFileBinDataLength(int fileAnnotationIndex) { // Parents: {u'BinaryFile': {u'FileAnnotation': {u'StructuredAnnotations': {u'OME': None}}}, u'Mask': None, u'Pixels': {u'Image': {u'OME': None}}} // Length is not a reference return root.getStructuredAnnotations().getFileAnnotation(fileAnnotationIndex).getBinaryFile().getBinData().getLength(); }
setBinaryFile(new BinaryFile( (Element) BinaryFile_nodeList.get(0), model));
public NonNegativeLong getBinaryFileSize(int fileAnnotationIndex) { // Parents: {u'FileAnnotation': {u'StructuredAnnotations': {u'OME': None}}} // Size is not a reference return root.getStructuredAnnotations().getFileAnnotation(fileAnnotationIndex).getBinaryFile().getSize(); }
public String getBinaryFileMIMEType(int fileAnnotationIndex) { // Parents: {u'FileAnnotation': {u'StructuredAnnotations': {u'OME': None}}} // MIMEType is not a reference return root.getStructuredAnnotations().getFileAnnotation(fileAnnotationIndex).getBinaryFile().getMIMEType(); }
public String getBinaryFileFileName(int fileAnnotationIndex) { // Parents: {u'FileAnnotation': {u'StructuredAnnotations': {u'OME': None}}} // FileName is not a reference return root.getStructuredAnnotations().getFileAnnotation(fileAnnotationIndex).getBinaryFile().getFileName(); }
public void setBinaryFileBinDataLength(NonNegativeLong length, int fileAnnotationIndex) { // Parents: {u'BinaryFile': {u'FileAnnotation': {u'StructuredAnnotations': {u'OME': None}}}, u'Mask': None, u'Pixels': {u'Image': {u'OME': None}}} // Length 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); if (o2.getBinaryFile() == null) { o2.setBinaryFile(new BinaryFile()); } BinaryFile o3 = o2.getBinaryFile(); if (o3.getBinData() == null) { o3.setBinData(new BinData()); } BinData o4 = o3.getBinData(); o4.setLength(length); }
public void setBinaryFileFileName(String fileName, int fileAnnotationIndex) { // Parents: {u'FileAnnotation': {u'StructuredAnnotations': {u'OME': None}}} // FileName 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); if (o2.getBinaryFile() == null) { o2.setBinaryFile(new BinaryFile()); } BinaryFile o3 = o2.getBinaryFile(); o3.setFileName(fileName); }
public void setBinaryFileMIMEType(String mimeType, int fileAnnotationIndex) { // Parents: {u'FileAnnotation': {u'StructuredAnnotations': {u'OME': None}}} // MIMEType 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); if (o2.getBinaryFile() == null) { o2.setBinaryFile(new BinaryFile()); } BinaryFile o3 = o2.getBinaryFile(); o3.setMIMEType(mimeType); }
public void setBinaryFileSize(NonNegativeLong size, int fileAnnotationIndex) { // Parents: {u'FileAnnotation': {u'StructuredAnnotations': {u'OME': None}}} // Size 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); if (o2.getBinaryFile() == null) { o2.setBinaryFile(new BinaryFile()); } BinaryFile o3 = o2.getBinaryFile(); o3.setSize(size); }
public byte[] getBinaryFileBinData(int fileAnnotationIndex) { // Parents: {u'BinaryFile': {u'FileAnnotation': {u'StructuredAnnotations': {u'OME': None}}}, u'Mask': None, u'Pixels': {u'Image': {u'OME': None}}} // Base64Binary is not a reference return root.getStructuredAnnotations().getFileAnnotation(fileAnnotationIndex).getBinaryFile().getBinData().getBase64Binary(); }
setBinaryFile(new BinaryFile( (Element) BinaryFile_nodeList.get(0), model));
public NonNegativeLong getBinaryFileSize(int fileAnnotationIndex) { // Parents: {u'FileAnnotation': {u'StructuredAnnotations': {u'OME': None}}} // Size is not a reference return root.getStructuredAnnotations().getFileAnnotation(fileAnnotationIndex).getBinaryFile().getSize(); }
public String getBinaryFileMIMEType(int fileAnnotationIndex) { // Parents: {u'FileAnnotation': {u'StructuredAnnotations': {u'OME': None}}} // MIMEType is not a reference return root.getStructuredAnnotations().getFileAnnotation(fileAnnotationIndex).getBinaryFile().getMIMEType(); }