Changeset 3988


Ignore:
Timestamp:
04/28/08 16:21:07 (12 years ago)
Author:
curtis
Message:

Add TiffData entity and properties to MetadataStore.

Location:
trunk
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/auto/OMEXMLMetadata.vm

    r3980 r3988  
    9393#foreach ($entity in $q.entities()) 
    9494#set ($dummy = $q.setEntity($entity)) 
    95 #set ($last = $q.last()) 
    96 #set ($lastVar = $q.var($last)) 
    9795 
    9896  // - $entity property retrieval - 
    9997#foreach ($prop in $q.props()) 
    10098#set ($dummy = $q.setProperty($prop)) 
     99#set ($last = $q.last()) 
     100#set ($lastVar = $q.var($last)) 
    101101 
    102102  /* @see loci.formats.meta.MetadataRetrieve#get$entity$prop($q.typesList()) */ 
     
    139139#foreach ($entity in $q.entities()) 
    140140#set ($dummy = $q.setEntity($entity)) 
    141 #set ($last = $q.last()) 
    142 #set ($lastVar = $q.var($last)) 
    143141 
    144142  // - $entity property storage - 
     
    146144#set ($dummy = $q.setProperty($prop)) 
    147145#set ($varName = $q.var($prop)) 
     146#set ($last = $q.last()) 
     147#set ($lastVar = $q.var($last)) 
    148148 
    149149  /* @see loci.formats.meta.MetadataStore#set$entity$prop($q.defaultType(), $q.typesList()) */ 
     
    153153#else 
    154154    if ($varName == null) return; 
    155     ${last}Node $lastVar = get${last}Node($q.varsList(), true); 
    156     $q.setter($lastVar, $varName); 
     155    ${last}Node ${lastVar}Node = get${last}Node($q.varsList(), true); 
     156    $q.setter("${lastVar}Node", $varName); 
    157157#end##if "-" 
    158158  } 
  • trunk/loci/formats/auto/entities.txt

    r3981 r3988  
    9898type = String 
    9999description = the dimension order of the pixels set 
     100 
     101## TiffData ## 
     102 
     103[TiffData] 
     104countable = true 
     105path = Image+/Pixels+/TiffData+ 
     106description = TODO 
     107 
     108[TiffData 2003FC] 
     109path = - 
     110 
     111[TiffData FirstZ] 
     112type = Integer 
     113description = TODO 
     114 
     115[TiffData FirstT] 
     116type = Integer 
     117description = TODO 
     118 
     119[TiffData FirstC] 
     120type = Integer 
     121description = TODO 
     122 
     123[TiffData IFD] 
     124type = Integer 
     125description = TODO 
     126 
     127[TiffData NumPlanes] 
     128type = Integer 
     129description = TODO 
     130 
     131[TiffData UUID] 
     132path = Image+/Pixels+/TiffData+/UUID 
     133type = String 
     134getter = getCData 
     135setter = setCData 
     136description = TODO 
     137 
     138[TiffData UUID 200706] 
     139path = - 
     140 
     141[TiffData UUID 2003FC] 
     142path = - 
     143 
     144[TiffData FileName] 
     145path = Image+/Pixels+/TiffData+/UUID 
     146type = String 
     147description = TODO 
     148 
     149[TiffData FileName 200706] 
     150path = - 
     151 
     152[TiffData FileName 2003FC] 
     153path = - 
    100154 
    101155## Dimensions ## 
  • trunk/loci/formats/meta/AggregateMetadata.java

    r3982 r3988  
    2626 * 
    2727 * THIS IS AUTOMATICALLY GENERATED CODE.  DO NOT MODIFY. 
    28  * Created by curtis via MetadataAutogen on Apr 24, 2008 4:44:24 PM CDT 
     28 * Created by curtis via MetadataAutogen on Apr 28, 2008 4:19:17 PM CDT 
    2929 * 
    3030 *----------------------------------------------------------------------------- 
     
    251251  } 
    252252 
     253  /* @see MetadataRetrieve#getTiffDataCount(int, int) */ 
     254  public int getTiffDataCount(int imageIndex, int pixelsIndex) { 
     255    for (Iterator iter = delegates.iterator(); iter.hasNext();) { 
     256      Object o = iter.next(); 
     257      if (o instanceof MetadataRetrieve) { 
     258        MetadataRetrieve retrieve = (MetadataRetrieve) o; 
     259        int result = retrieve.getTiffDataCount(imageIndex, pixelsIndex); 
     260        if (result >= 0) return result; 
     261      } 
     262    } 
     263    return -1; 
     264  } 
     265 
    253266  // - Entity retrieval - 
    254267 
     
    17661779        MetadataRetrieve retrieve = (MetadataRetrieve) o; 
    17671780        Float result = retrieve.getStagePositionPositionZ(imageIndex, pixelsIndex, planeIndex); 
     1781        if (result != null) return result; 
     1782      } 
     1783    } 
     1784    return null; 
     1785  } 
     1786 
     1787  // - TiffData property retrieval - 
     1788 
     1789  /* @see MetadataRetrieve#getTiffDataFileName(int, int, int) */ 
     1790  public String getTiffDataFileName(int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     1791    for (Iterator iter = delegates.iterator(); iter.hasNext();) { 
     1792      Object o = iter.next(); 
     1793      if (o instanceof MetadataRetrieve) { 
     1794        MetadataRetrieve retrieve = (MetadataRetrieve) o; 
     1795        String result = retrieve.getTiffDataFileName(imageIndex, pixelsIndex, tiffDataIndex); 
     1796        if (result != null) return result; 
     1797      } 
     1798    } 
     1799    return null; 
     1800  } 
     1801 
     1802  /* @see MetadataRetrieve#getTiffDataFirstC(int, int, int) */ 
     1803  public Integer getTiffDataFirstC(int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     1804    for (Iterator iter = delegates.iterator(); iter.hasNext();) { 
     1805      Object o = iter.next(); 
     1806      if (o instanceof MetadataRetrieve) { 
     1807        MetadataRetrieve retrieve = (MetadataRetrieve) o; 
     1808        Integer result = retrieve.getTiffDataFirstC(imageIndex, pixelsIndex, tiffDataIndex); 
     1809        if (result != null) return result; 
     1810      } 
     1811    } 
     1812    return null; 
     1813  } 
     1814 
     1815  /* @see MetadataRetrieve#getTiffDataFirstT(int, int, int) */ 
     1816  public Integer getTiffDataFirstT(int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     1817    for (Iterator iter = delegates.iterator(); iter.hasNext();) { 
     1818      Object o = iter.next(); 
     1819      if (o instanceof MetadataRetrieve) { 
     1820        MetadataRetrieve retrieve = (MetadataRetrieve) o; 
     1821        Integer result = retrieve.getTiffDataFirstT(imageIndex, pixelsIndex, tiffDataIndex); 
     1822        if (result != null) return result; 
     1823      } 
     1824    } 
     1825    return null; 
     1826  } 
     1827 
     1828  /* @see MetadataRetrieve#getTiffDataFirstZ(int, int, int) */ 
     1829  public Integer getTiffDataFirstZ(int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     1830    for (Iterator iter = delegates.iterator(); iter.hasNext();) { 
     1831      Object o = iter.next(); 
     1832      if (o instanceof MetadataRetrieve) { 
     1833        MetadataRetrieve retrieve = (MetadataRetrieve) o; 
     1834        Integer result = retrieve.getTiffDataFirstZ(imageIndex, pixelsIndex, tiffDataIndex); 
     1835        if (result != null) return result; 
     1836      } 
     1837    } 
     1838    return null; 
     1839  } 
     1840 
     1841  /* @see MetadataRetrieve#getTiffDataIFD(int, int, int) */ 
     1842  public Integer getTiffDataIFD(int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     1843    for (Iterator iter = delegates.iterator(); iter.hasNext();) { 
     1844      Object o = iter.next(); 
     1845      if (o instanceof MetadataRetrieve) { 
     1846        MetadataRetrieve retrieve = (MetadataRetrieve) o; 
     1847        Integer result = retrieve.getTiffDataIFD(imageIndex, pixelsIndex, tiffDataIndex); 
     1848        if (result != null) return result; 
     1849      } 
     1850    } 
     1851    return null; 
     1852  } 
     1853 
     1854  /* @see MetadataRetrieve#getTiffDataNumPlanes(int, int, int) */ 
     1855  public Integer getTiffDataNumPlanes(int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     1856    for (Iterator iter = delegates.iterator(); iter.hasNext();) { 
     1857      Object o = iter.next(); 
     1858      if (o instanceof MetadataRetrieve) { 
     1859        MetadataRetrieve retrieve = (MetadataRetrieve) o; 
     1860        Integer result = retrieve.getTiffDataNumPlanes(imageIndex, pixelsIndex, tiffDataIndex); 
     1861        if (result != null) return result; 
     1862      } 
     1863    } 
     1864    return null; 
     1865  } 
     1866 
     1867  /* @see MetadataRetrieve#getTiffDataUUID(int, int, int) */ 
     1868  public String getTiffDataUUID(int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     1869    for (Iterator iter = delegates.iterator(); iter.hasNext();) { 
     1870      Object o = iter.next(); 
     1871      if (o instanceof MetadataRetrieve) { 
     1872        MetadataRetrieve retrieve = (MetadataRetrieve) o; 
     1873        String result = retrieve.getTiffDataUUID(imageIndex, pixelsIndex, tiffDataIndex); 
    17681874        if (result != null) return result; 
    17691875      } 
     
    30953201  } 
    30963202 
     3203  // - TiffData property storage - 
     3204 
     3205  /* @see MetadataStore#setTiffDataFileName(String, int, int, int) */ 
     3206  public void setTiffDataFileName(String fileName, int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     3207    for (Iterator iter = delegates.iterator(); iter.hasNext();) { 
     3208      Object o = iter.next(); 
     3209      if (o instanceof MetadataStore) { 
     3210        MetadataStore store = (MetadataStore) o; 
     3211        store.setTiffDataFileName(fileName, imageIndex, pixelsIndex, tiffDataIndex); 
     3212      } 
     3213    } 
     3214  } 
     3215 
     3216  /* @see MetadataStore#setTiffDataFirstC(Integer, int, int, int) */ 
     3217  public void setTiffDataFirstC(Integer firstC, int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     3218    for (Iterator iter = delegates.iterator(); iter.hasNext();) { 
     3219      Object o = iter.next(); 
     3220      if (o instanceof MetadataStore) { 
     3221        MetadataStore store = (MetadataStore) o; 
     3222        store.setTiffDataFirstC(firstC, imageIndex, pixelsIndex, tiffDataIndex); 
     3223      } 
     3224    } 
     3225  } 
     3226 
     3227  /* @see MetadataStore#setTiffDataFirstT(Integer, int, int, int) */ 
     3228  public void setTiffDataFirstT(Integer firstT, int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     3229    for (Iterator iter = delegates.iterator(); iter.hasNext();) { 
     3230      Object o = iter.next(); 
     3231      if (o instanceof MetadataStore) { 
     3232        MetadataStore store = (MetadataStore) o; 
     3233        store.setTiffDataFirstT(firstT, imageIndex, pixelsIndex, tiffDataIndex); 
     3234      } 
     3235    } 
     3236  } 
     3237 
     3238  /* @see MetadataStore#setTiffDataFirstZ(Integer, int, int, int) */ 
     3239  public void setTiffDataFirstZ(Integer firstZ, int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     3240    for (Iterator iter = delegates.iterator(); iter.hasNext();) { 
     3241      Object o = iter.next(); 
     3242      if (o instanceof MetadataStore) { 
     3243        MetadataStore store = (MetadataStore) o; 
     3244        store.setTiffDataFirstZ(firstZ, imageIndex, pixelsIndex, tiffDataIndex); 
     3245      } 
     3246    } 
     3247  } 
     3248 
     3249  /* @see MetadataStore#setTiffDataIFD(Integer, int, int, int) */ 
     3250  public void setTiffDataIFD(Integer ifd, int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     3251    for (Iterator iter = delegates.iterator(); iter.hasNext();) { 
     3252      Object o = iter.next(); 
     3253      if (o instanceof MetadataStore) { 
     3254        MetadataStore store = (MetadataStore) o; 
     3255        store.setTiffDataIFD(ifd, imageIndex, pixelsIndex, tiffDataIndex); 
     3256      } 
     3257    } 
     3258  } 
     3259 
     3260  /* @see MetadataStore#setTiffDataNumPlanes(Integer, int, int, int) */ 
     3261  public void setTiffDataNumPlanes(Integer numPlanes, int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     3262    for (Iterator iter = delegates.iterator(); iter.hasNext();) { 
     3263      Object o = iter.next(); 
     3264      if (o instanceof MetadataStore) { 
     3265        MetadataStore store = (MetadataStore) o; 
     3266        store.setTiffDataNumPlanes(numPlanes, imageIndex, pixelsIndex, tiffDataIndex); 
     3267      } 
     3268    } 
     3269  } 
     3270 
     3271  /* @see MetadataStore#setTiffDataUUID(String, int, int, int) */ 
     3272  public void setTiffDataUUID(String uuid, int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     3273    for (Iterator iter = delegates.iterator(); iter.hasNext();) { 
     3274      Object o = iter.next(); 
     3275      if (o instanceof MetadataStore) { 
     3276        MetadataStore store = (MetadataStore) o; 
     3277        store.setTiffDataUUID(uuid, imageIndex, pixelsIndex, tiffDataIndex); 
     3278      } 
     3279    } 
     3280  } 
     3281 
    30973282} 
  • trunk/loci/formats/meta/DummyMetadata.java

    r3982 r3988  
    2626 * 
    2727 * THIS IS AUTOMATICALLY GENERATED CODE.  DO NOT MODIFY. 
    28  * Created by curtis via MetadataAutogen on Apr 24, 2008 4:44:24 PM CDT 
     28 * Created by curtis via MetadataAutogen on Apr 28, 2008 4:19:17 PM CDT 
    2929 * 
    3030 *----------------------------------------------------------------------------- 
     
    111111  } 
    112112 
     113  /* @see MetadataRetrieve#getTiffDataCount(int, int) */ 
     114  public int getTiffDataCount(int imageIndex, int pixelsIndex) { 
     115    return -1; 
     116  } 
     117 
    113118  // - Entity retrieval - 
    114119 
     
    640645  } 
    641646 
     647  // - TiffData property retrieval - 
     648 
     649  /* @see MetadataRetrieve#getTiffDataFileName(int, int, int) */ 
     650  public String getTiffDataFileName(int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     651    return null; 
     652  } 
     653  /* @see MetadataRetrieve#getTiffDataFirstC(int, int, int) */ 
     654  public Integer getTiffDataFirstC(int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     655    return null; 
     656  } 
     657  /* @see MetadataRetrieve#getTiffDataFirstT(int, int, int) */ 
     658  public Integer getTiffDataFirstT(int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     659    return null; 
     660  } 
     661  /* @see MetadataRetrieve#getTiffDataFirstZ(int, int, int) */ 
     662  public Integer getTiffDataFirstZ(int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     663    return null; 
     664  } 
     665  /* @see MetadataRetrieve#getTiffDataIFD(int, int, int) */ 
     666  public Integer getTiffDataIFD(int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     667    return null; 
     668  } 
     669  /* @see MetadataRetrieve#getTiffDataNumPlanes(int, int, int) */ 
     670  public Integer getTiffDataNumPlanes(int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     671    return null; 
     672  } 
     673  /* @see MetadataRetrieve#getTiffDataUUID(int, int, int) */ 
     674  public String getTiffDataUUID(int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     675    return null; 
     676  } 
     677 
    642678  // -- MetadataStore API methods -- 
    643679 
     
    11551191  } 
    11561192 
     1193  // - TiffData property storage - 
     1194 
     1195  /* @see MetadataStore#setTiffDataFileName(String, int, int, int) */ 
     1196  public void setTiffDataFileName(String fileName, int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     1197  } 
     1198 
     1199  /* @see MetadataStore#setTiffDataFirstC(Integer, int, int, int) */ 
     1200  public void setTiffDataFirstC(Integer firstC, int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     1201  } 
     1202 
     1203  /* @see MetadataStore#setTiffDataFirstT(Integer, int, int, int) */ 
     1204  public void setTiffDataFirstT(Integer firstT, int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     1205  } 
     1206 
     1207  /* @see MetadataStore#setTiffDataFirstZ(Integer, int, int, int) */ 
     1208  public void setTiffDataFirstZ(Integer firstZ, int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     1209  } 
     1210 
     1211  /* @see MetadataStore#setTiffDataIFD(Integer, int, int, int) */ 
     1212  public void setTiffDataIFD(Integer ifd, int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     1213  } 
     1214 
     1215  /* @see MetadataStore#setTiffDataNumPlanes(Integer, int, int, int) */ 
     1216  public void setTiffDataNumPlanes(Integer numPlanes, int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     1217  } 
     1218 
     1219  /* @see MetadataStore#setTiffDataUUID(String, int, int, int) */ 
     1220  public void setTiffDataUUID(String uuid, int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     1221  } 
     1222 
    11571223} 
  • trunk/loci/formats/meta/FilterMetadata.java

    r3982 r3988  
    2626 * 
    2727 * THIS IS AUTOMATICALLY GENERATED CODE.  DO NOT MODIFY. 
    28  * Created by curtis via MetadataAutogen on Apr 24, 2008 4:44:24 PM CDT 
     28 * Created by curtis via MetadataAutogen on Apr 28, 2008 4:19:17 PM CDT 
    2929 * 
    3030 *----------------------------------------------------------------------------- 
     
    739739  } 
    740740 
     741  // -- TiffData property storage - 
     742 
     743  /* @see MetadataStore#setTiffDataFileName(String, int, int, int) */ 
     744  public void setTiffDataFileName(String fileName, int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     745    String value = filter ? DataTools.sanitize(fileName) : fileName; 
     746    store.setTiffDataFileName(value, imageIndex, pixelsIndex, tiffDataIndex); 
     747  } 
     748 
     749  /* @see MetadataStore#setTiffDataFirstC(Integer, int, int, int) */ 
     750  public void setTiffDataFirstC(Integer firstC, int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     751    store.setTiffDataFirstC(firstC, imageIndex, pixelsIndex, tiffDataIndex); 
     752  } 
     753 
     754  /* @see MetadataStore#setTiffDataFirstT(Integer, int, int, int) */ 
     755  public void setTiffDataFirstT(Integer firstT, int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     756    store.setTiffDataFirstT(firstT, imageIndex, pixelsIndex, tiffDataIndex); 
     757  } 
     758 
     759  /* @see MetadataStore#setTiffDataFirstZ(Integer, int, int, int) */ 
     760  public void setTiffDataFirstZ(Integer firstZ, int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     761    store.setTiffDataFirstZ(firstZ, imageIndex, pixelsIndex, tiffDataIndex); 
     762  } 
     763 
     764  /* @see MetadataStore#setTiffDataIFD(Integer, int, int, int) */ 
     765  public void setTiffDataIFD(Integer ifd, int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     766    store.setTiffDataIFD(ifd, imageIndex, pixelsIndex, tiffDataIndex); 
     767  } 
     768 
     769  /* @see MetadataStore#setTiffDataNumPlanes(Integer, int, int, int) */ 
     770  public void setTiffDataNumPlanes(Integer numPlanes, int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     771    store.setTiffDataNumPlanes(numPlanes, imageIndex, pixelsIndex, tiffDataIndex); 
     772  } 
     773 
     774  /* @see MetadataStore#setTiffDataUUID(String, int, int, int) */ 
     775  public void setTiffDataUUID(String uuid, int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     776    String value = filter ? DataTools.sanitize(uuid) : uuid; 
     777    store.setTiffDataUUID(value, imageIndex, pixelsIndex, tiffDataIndex); 
     778  } 
     779 
    741780} 
  • trunk/loci/formats/meta/MetadataConverter.java

    r3982 r3988  
    2626 * 
    2727 * THIS IS AUTOMATICALLY GENERATED CODE.  DO NOT MODIFY. 
    28  * Created by curtis via MetadataAutogen on Apr 24, 2008 4:44:24 PM CDT 
     28 * Created by curtis via MetadataAutogen on Apr 28, 2008 4:19:17 PM CDT 
    2929 * 
    3030 *----------------------------------------------------------------------------- 
     
    151151          dest.setStagePositionPositionZ(src.getStagePositionPositionZ(imageIndex, pixelsIndex, planeIndex), imageIndex, pixelsIndex, planeIndex); 
    152152        } 
     153        int tiffDataCount = src.getTiffDataCount(imageIndex, pixelsIndex); 
     154        for (int tiffDataIndex=0; tiffDataIndex<tiffDataCount; tiffDataIndex++) { 
     155          dest.setTiffDataFileName(src.getTiffDataFileName(imageIndex, pixelsIndex, tiffDataIndex), imageIndex, pixelsIndex, tiffDataIndex); 
     156          dest.setTiffDataFirstC(src.getTiffDataFirstC(imageIndex, pixelsIndex, tiffDataIndex), imageIndex, pixelsIndex, tiffDataIndex); 
     157          dest.setTiffDataFirstT(src.getTiffDataFirstT(imageIndex, pixelsIndex, tiffDataIndex), imageIndex, pixelsIndex, tiffDataIndex); 
     158          dest.setTiffDataFirstZ(src.getTiffDataFirstZ(imageIndex, pixelsIndex, tiffDataIndex), imageIndex, pixelsIndex, tiffDataIndex); 
     159          dest.setTiffDataIFD(src.getTiffDataIFD(imageIndex, pixelsIndex, tiffDataIndex), imageIndex, pixelsIndex, tiffDataIndex); 
     160          dest.setTiffDataNumPlanes(src.getTiffDataNumPlanes(imageIndex, pixelsIndex, tiffDataIndex), imageIndex, pixelsIndex, tiffDataIndex); 
     161          dest.setTiffDataUUID(src.getTiffDataUUID(imageIndex, pixelsIndex, tiffDataIndex), imageIndex, pixelsIndex, tiffDataIndex); 
     162        } 
    153163      } 
    154164        dest.setStageLabelName(src.getStageLabelName(imageIndex), imageIndex); 
  • trunk/loci/formats/meta/MetadataRetrieve.java

    r3982 r3988  
    2626 * 
    2727 * THIS IS AUTOMATICALLY GENERATED CODE.  DO NOT MODIFY. 
    28  * Created by curtis via MetadataAutogen on Apr 24, 2008 4:44:24 PM CDT 
     28 * Created by curtis via MetadataAutogen on Apr 28, 2008 4:19:17 PM CDT 
    2929 * 
    3030 *----------------------------------------------------------------------------- 
     
    7171  int getROICount(int imageIndex); 
    7272 
     73  int getTiffDataCount(int imageIndex, int pixelsIndex); 
     74 
    7375  // - Entity retrieval - 
    7476 
     
    900902  Float getStagePositionPositionZ(int imageIndex, int pixelsIndex, int planeIndex); 
    901903 
     904  // - TiffData property retrieval - 
     905 
     906  /** 
     907   * For a particular TiffData, gets TODO. 
     908   * @param imageIndex index of the Image 
     909   * @param pixelsIndex index of the Pixels 
     910   * @param tiffDataIndex index of the TiffData 
     911   */ 
     912  String getTiffDataFileName(int imageIndex, int pixelsIndex, int tiffDataIndex); 
     913 
     914  /** 
     915   * For a particular TiffData, gets TODO. 
     916   * @param imageIndex index of the Image 
     917   * @param pixelsIndex index of the Pixels 
     918   * @param tiffDataIndex index of the TiffData 
     919   */ 
     920  Integer getTiffDataFirstC(int imageIndex, int pixelsIndex, int tiffDataIndex); 
     921 
     922  /** 
     923   * For a particular TiffData, gets TODO. 
     924   * @param imageIndex index of the Image 
     925   * @param pixelsIndex index of the Pixels 
     926   * @param tiffDataIndex index of the TiffData 
     927   */ 
     928  Integer getTiffDataFirstT(int imageIndex, int pixelsIndex, int tiffDataIndex); 
     929 
     930  /** 
     931   * For a particular TiffData, gets TODO. 
     932   * @param imageIndex index of the Image 
     933   * @param pixelsIndex index of the Pixels 
     934   * @param tiffDataIndex index of the TiffData 
     935   */ 
     936  Integer getTiffDataFirstZ(int imageIndex, int pixelsIndex, int tiffDataIndex); 
     937 
     938  /** 
     939   * For a particular TiffData, gets TODO. 
     940   * @param imageIndex index of the Image 
     941   * @param pixelsIndex index of the Pixels 
     942   * @param tiffDataIndex index of the TiffData 
     943   */ 
     944  Integer getTiffDataIFD(int imageIndex, int pixelsIndex, int tiffDataIndex); 
     945 
     946  /** 
     947   * For a particular TiffData, gets TODO. 
     948   * @param imageIndex index of the Image 
     949   * @param pixelsIndex index of the Pixels 
     950   * @param tiffDataIndex index of the TiffData 
     951   */ 
     952  Integer getTiffDataNumPlanes(int imageIndex, int pixelsIndex, int tiffDataIndex); 
     953 
     954  /** 
     955   * For a particular TiffData, gets TODO. 
     956   * @param imageIndex index of the Image 
     957   * @param pixelsIndex index of the Pixels 
     958   * @param tiffDataIndex index of the TiffData 
     959   */ 
     960  String getTiffDataUUID(int imageIndex, int pixelsIndex, int tiffDataIndex); 
     961 
    902962} 
  • trunk/loci/formats/meta/MetadataStore.java

    r3982 r3988  
    2626 * 
    2727 * THIS IS AUTOMATICALLY GENERATED CODE.  DO NOT MODIFY. 
    28  * Created by curtis via MetadataAutogen on Apr 24, 2008 4:44:24 PM CDT 
     28 * Created by curtis via MetadataAutogen on Apr 28, 2008 4:19:17 PM CDT 
    2929 * 
    3030 *----------------------------------------------------------------------------- 
     
    996996  void setStagePositionPositionZ(Float positionZ, int imageIndex, int pixelsIndex, int planeIndex); 
    997997 
     998  // - TiffData property storage - 
     999 
     1000  /** 
     1001   * For a particular TiffData, sets TODO. 
     1002   * @param fileName TODO 
     1003   * @param imageIndex index of the Image 
     1004   * @param pixelsIndex index of the Pixels 
     1005   * @param tiffDataIndex index of the TiffData 
     1006   */ 
     1007  void setTiffDataFileName(String fileName, int imageIndex, int pixelsIndex, int tiffDataIndex); 
     1008 
     1009  /** 
     1010   * For a particular TiffData, sets TODO. 
     1011   * @param firstC TODO 
     1012   * @param imageIndex index of the Image 
     1013   * @param pixelsIndex index of the Pixels 
     1014   * @param tiffDataIndex index of the TiffData 
     1015   */ 
     1016  void setTiffDataFirstC(Integer firstC, int imageIndex, int pixelsIndex, int tiffDataIndex); 
     1017 
     1018  /** 
     1019   * For a particular TiffData, sets TODO. 
     1020   * @param firstT TODO 
     1021   * @param imageIndex index of the Image 
     1022   * @param pixelsIndex index of the Pixels 
     1023   * @param tiffDataIndex index of the TiffData 
     1024   */ 
     1025  void setTiffDataFirstT(Integer firstT, int imageIndex, int pixelsIndex, int tiffDataIndex); 
     1026 
     1027  /** 
     1028   * For a particular TiffData, sets TODO. 
     1029   * @param firstZ TODO 
     1030   * @param imageIndex index of the Image 
     1031   * @param pixelsIndex index of the Pixels 
     1032   * @param tiffDataIndex index of the TiffData 
     1033   */ 
     1034  void setTiffDataFirstZ(Integer firstZ, int imageIndex, int pixelsIndex, int tiffDataIndex); 
     1035 
     1036  /** 
     1037   * For a particular TiffData, sets TODO. 
     1038   * @param ifd TODO 
     1039   * @param imageIndex index of the Image 
     1040   * @param pixelsIndex index of the Pixels 
     1041   * @param tiffDataIndex index of the TiffData 
     1042   */ 
     1043  void setTiffDataIFD(Integer ifd, int imageIndex, int pixelsIndex, int tiffDataIndex); 
     1044 
     1045  /** 
     1046   * For a particular TiffData, sets TODO. 
     1047   * @param numPlanes TODO 
     1048   * @param imageIndex index of the Image 
     1049   * @param pixelsIndex index of the Pixels 
     1050   * @param tiffDataIndex index of the TiffData 
     1051   */ 
     1052  void setTiffDataNumPlanes(Integer numPlanes, int imageIndex, int pixelsIndex, int tiffDataIndex); 
     1053 
     1054  /** 
     1055   * For a particular TiffData, sets TODO. 
     1056   * @param uuid TODO 
     1057   * @param imageIndex index of the Image 
     1058   * @param pixelsIndex index of the Pixels 
     1059   * @param tiffDataIndex index of the TiffData 
     1060   */ 
     1061  void setTiffDataUUID(String uuid, int imageIndex, int pixelsIndex, int tiffDataIndex); 
     1062 
    9981063} 
  • trunk/loci/formats/ome/OMEXML2003FCMetadata.java

    r3982 r3988  
    2626 * 
    2727 * THIS IS AUTOMATICALLY GENERATED CODE.  DO NOT MODIFY. 
    28  * Created by curtis via MetadataAutogen on Apr 24, 2008 4:44:24 PM CDT 
     28 * Created by curtis via MetadataAutogen on Apr 28, 2008 4:19:17 PM CDT 
    2929 * 
    3030 *----------------------------------------------------------------------------- 
     
    165165  } 
    166166 
     167  /* @see loci.formats.meta.MetadataRetrieve#getTiffDataCount(int, int) */ 
     168  public int getTiffDataCount(int imageIndex, int pixelsIndex) { 
     169    // NB: TiffData unsupported for schema version 2003-FC 
     170    return -1; 
     171  } 
     172 
    167173  // - Entity retrieval - 
    168174 
     
    892898  public Float getStagePositionPositionZ(int imageIndex, int pixelsIndex, int planeIndex) { 
    893899    // NB: PositionZ unsupported for schema version 2003-FC 
     900    return null; 
     901  } 
     902 
     903  // - TiffData property retrieval - 
     904 
     905  /* @see loci.formats.meta.MetadataRetrieve#getTiffDataFileName(int, int, int) */ 
     906  public String getTiffDataFileName(int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     907    // NB: FileName unsupported for schema version 2003-FC 
     908    return null; 
     909  } 
     910 
     911  /* @see loci.formats.meta.MetadataRetrieve#getTiffDataFirstC(int, int, int) */ 
     912  public Integer getTiffDataFirstC(int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     913    // NB: FirstC unsupported for schema version 2003-FC 
     914    return null; 
     915  } 
     916 
     917  /* @see loci.formats.meta.MetadataRetrieve#getTiffDataFirstT(int, int, int) */ 
     918  public Integer getTiffDataFirstT(int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     919    // NB: FirstT unsupported for schema version 2003-FC 
     920    return null; 
     921  } 
     922 
     923  /* @see loci.formats.meta.MetadataRetrieve#getTiffDataFirstZ(int, int, int) */ 
     924  public Integer getTiffDataFirstZ(int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     925    // NB: FirstZ unsupported for schema version 2003-FC 
     926    return null; 
     927  } 
     928 
     929  /* @see loci.formats.meta.MetadataRetrieve#getTiffDataIFD(int, int, int) */ 
     930  public Integer getTiffDataIFD(int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     931    // NB: IFD unsupported for schema version 2003-FC 
     932    return null; 
     933  } 
     934 
     935  /* @see loci.formats.meta.MetadataRetrieve#getTiffDataNumPlanes(int, int, int) */ 
     936  public Integer getTiffDataNumPlanes(int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     937    // NB: NumPlanes unsupported for schema version 2003-FC 
     938    return null; 
     939  } 
     940 
     941  /* @see loci.formats.meta.MetadataRetrieve#getTiffDataUUID(int, int, int) */ 
     942  public String getTiffDataUUID(int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     943    // NB: UUID unsupported for schema version 2003-FC 
    894944    return null; 
    895945  } 
     
    925975  public void setArcType(String type, int instrumentIndex, int lightSourceIndex) { 
    926976    if (type == null) return; 
    927     ArcNode arc = getArcNode(instrumentIndex, lightSourceIndex, true); 
    928     arc.setType(type); 
     977    ArcNode arcNode = getArcNode(instrumentIndex, lightSourceIndex, true); 
     978    arcNode.setType(type); 
    929979  } 
    930980 
     
    934984  public void setChannelComponentColorDomain(String colorDomain, int imageIndex, int logicalChannelIndex, int channelComponentIndex) { 
    935985    if (colorDomain == null) return; 
    936     ChannelComponentNode channelComponent = getChannelComponentNode(imageIndex, logicalChannelIndex, channelComponentIndex, true); 
    937     channelComponent.setColorDomain(colorDomain); 
     986    ChannelComponentNode channelComponentNode = getChannelComponentNode(imageIndex, logicalChannelIndex, channelComponentIndex, true); 
     987    channelComponentNode.setColorDomain(colorDomain); 
    938988  } 
    939989 
     
    941991  public void setChannelComponentIndex(Integer index, int imageIndex, int logicalChannelIndex, int channelComponentIndex) { 
    942992    if (index == null) return; 
    943     ChannelComponentNode channelComponent = getChannelComponentNode(imageIndex, logicalChannelIndex, channelComponentIndex, true); 
    944     channelComponent.setIndex(index); 
     993    ChannelComponentNode channelComponentNode = getChannelComponentNode(imageIndex, logicalChannelIndex, channelComponentIndex, true); 
     994    channelComponentNode.setIndex(index); 
    945995  } 
    946996 
     
    9501000  public void setDetectorGain(Float gain, int instrumentIndex, int detectorIndex) { 
    9511001    if (gain == null) return; 
    952     DetectorNode detector = getDetectorNode(instrumentIndex, detectorIndex, true); 
    953     detector.setGain(gain); 
     1002    DetectorNode detectorNode = getDetectorNode(instrumentIndex, detectorIndex, true); 
     1003    detectorNode.setGain(gain); 
    9541004  } 
    9551005 
     
    9571007  public void setDetectorID(String id, int instrumentIndex, int detectorIndex) { 
    9581008    if (id == null) return; 
    959     DetectorNode detector = getDetectorNode(instrumentIndex, detectorIndex, true); 
    960     detector.setNodeID(id); 
     1009    DetectorNode detectorNode = getDetectorNode(instrumentIndex, detectorIndex, true); 
     1010    detectorNode.setNodeID(id); 
    9611011  } 
    9621012 
     
    9641014  public void setDetectorManufacturer(String manufacturer, int instrumentIndex, int detectorIndex) { 
    9651015    if (manufacturer == null) return; 
    966     DetectorNode detector = getDetectorNode(instrumentIndex, detectorIndex, true); 
    967     detector.setManufacturer(manufacturer); 
     1016    DetectorNode detectorNode = getDetectorNode(instrumentIndex, detectorIndex, true); 
     1017    detectorNode.setManufacturer(manufacturer); 
    9681018  } 
    9691019 
     
    9711021  public void setDetectorModel(String model, int instrumentIndex, int detectorIndex) { 
    9721022    if (model == null) return; 
    973     DetectorNode detector = getDetectorNode(instrumentIndex, detectorIndex, true); 
    974     detector.setModel(model); 
     1023    DetectorNode detectorNode = getDetectorNode(instrumentIndex, detectorIndex, true); 
     1024    detectorNode.setModel(model); 
    9751025  } 
    9761026 
     
    9781028  public void setDetectorOffset(Float offset, int instrumentIndex, int detectorIndex) { 
    9791029    if (offset == null) return; 
    980     DetectorNode detector = getDetectorNode(instrumentIndex, detectorIndex, true); 
    981     detector.setOffset(offset); 
     1030    DetectorNode detectorNode = getDetectorNode(instrumentIndex, detectorIndex, true); 
     1031    detectorNode.setOffset(offset); 
    9821032  } 
    9831033 
     
    9851035  public void setDetectorSerialNumber(String serialNumber, int instrumentIndex, int detectorIndex) { 
    9861036    if (serialNumber == null) return; 
    987     DetectorNode detector = getDetectorNode(instrumentIndex, detectorIndex, true); 
    988     detector.setSerialNumber(serialNumber); 
     1037    DetectorNode detectorNode = getDetectorNode(instrumentIndex, detectorIndex, true); 
     1038    detectorNode.setSerialNumber(serialNumber); 
    9891039  } 
    9901040 
     
    9921042  public void setDetectorType(String type, int instrumentIndex, int detectorIndex) { 
    9931043    if (type == null) return; 
    994     DetectorNode detector = getDetectorNode(instrumentIndex, detectorIndex, true); 
    995     detector.setType(type); 
     1044    DetectorNode detectorNode = getDetectorNode(instrumentIndex, detectorIndex, true); 
     1045    detectorNode.setType(type); 
    9961046  } 
    9971047 
     
    9991049  public void setDetectorVoltage(Float voltage, int instrumentIndex, int detectorIndex) { 
    10001050    if (voltage == null) return; 
    1001     DetectorNode detector = getDetectorNode(instrumentIndex, detectorIndex, true); 
    1002     detector.setVoltage(voltage); 
     1051    DetectorNode detectorNode = getDetectorNode(instrumentIndex, detectorIndex, true); 
     1052    detectorNode.setVoltage(voltage); 
    10031053  } 
    10041054 
     
    10081058  public void setDetectorSettingsDetector(String detector, int imageIndex, int logicalChannelIndex) { 
    10091059    if (detector == null) return; 
    1010     DetectorRefNode detectorRef = getDetectorRefNode(imageIndex, logicalChannelIndex, true); 
    1011     detectorRef.setNodeID(detector); 
     1060    DetectorRefNode detectorRefNode = getDetectorRefNode(imageIndex, logicalChannelIndex, true); 
     1061    detectorRefNode.setNodeID(detector); 
    10121062  } 
    10131063 
     
    10151065  public void setDetectorSettingsGain(Float gain, int imageIndex, int logicalChannelIndex) { 
    10161066    if (gain == null) return; 
    1017     DetectorRefNode detectorRef = getDetectorRefNode(imageIndex, logicalChannelIndex, true); 
    1018     detectorRef.setGain(gain); 
     1067    DetectorRefNode detectorRefNode = getDetectorRefNode(imageIndex, logicalChannelIndex, true); 
     1068    detectorRefNode.setGain(gain); 
    10191069  } 
    10201070 
     
    10221072  public void setDetectorSettingsOffset(Float offset, int imageIndex, int logicalChannelIndex) { 
    10231073    if (offset == null) return; 
    1024     DetectorRefNode detectorRef = getDetectorRefNode(imageIndex, logicalChannelIndex, true); 
    1025     detectorRef.setOffset(offset); 
     1074    DetectorRefNode detectorRefNode = getDetectorRefNode(imageIndex, logicalChannelIndex, true); 
     1075    detectorRefNode.setOffset(offset); 
    10261076  } 
    10271077 
     
    10311081  public void setDimensionsPhysicalSizeX(Float physicalSizeX, int imageIndex, int pixelsIndex) { 
    10321082    if (physicalSizeX == null) return; 
    1033     ImageNode image = getImageNode(imageIndex, true); 
    1034     image.setPixelSizeX(physicalSizeX); 
     1083    ImageNode imageNode = getImageNode(imageIndex, true); 
     1084    imageNode.setPixelSizeX(physicalSizeX); 
    10351085  } 
    10361086 
     
    10381088  public void setDimensionsPhysicalSizeY(Float physicalSizeY, int imageIndex, int pixelsIndex) { 
    10391089    if (physicalSizeY == null) return; 
    1040     ImageNode image = getImageNode(imageIndex, true); 
    1041     image.setPixelSizeY(physicalSizeY); 
     1090    ImageNode imageNode = getImageNode(imageIndex, true); 
     1091    imageNode.setPixelSizeY(physicalSizeY); 
    10421092  } 
    10431093 
     
    10451095  public void setDimensionsPhysicalSizeZ(Float physicalSizeZ, int imageIndex, int pixelsIndex) { 
    10461096    if (physicalSizeZ == null) return; 
    1047     ImageNode image = getImageNode(imageIndex, true); 
    1048     image.setPixelSizeZ(physicalSizeZ); 
     1097    ImageNode imageNode = getImageNode(imageIndex, true); 
     1098    imageNode.setPixelSizeZ(physicalSizeZ); 
    10491099  } 
    10501100 
     
    10521102  public void setDimensionsTimeIncrement(Float timeIncrement, int imageIndex, int pixelsIndex) { 
    10531103    if (timeIncrement == null) return; 
    1054     ImageNode image = getImageNode(imageIndex, true); 
    1055     image.setTimeIncrement(timeIncrement); 
     1104    ImageNode imageNode = getImageNode(imageIndex, true); 
     1105    imageNode.setTimeIncrement(timeIncrement); 
    10561106  } 
    10571107 
     
    10591109  public void setDimensionsWaveIncrement(Integer waveIncrement, int imageIndex, int pixelsIndex) { 
    10601110    if (waveIncrement == null) return; 
    1061     ImageNode image = getImageNode(imageIndex, true); 
    1062     image.setWaveIncrement(waveIncrement); 
     1111    ImageNode imageNode = getImageNode(imageIndex, true); 
     1112    imageNode.setWaveIncrement(waveIncrement); 
    10631113  } 
    10641114 
     
    10661116  public void setDimensionsWaveStart(Integer waveStart, int imageIndex, int pixelsIndex) { 
    10671117    if (waveStart == null) return; 
    1068     ImageNode image = getImageNode(imageIndex, true); 
    1069     image.setWaveStart(waveStart); 
     1118    ImageNode imageNode = getImageNode(imageIndex, true); 
     1119    imageNode.setWaveStart(waveStart); 
    10701120  } 
    10711121 
     
    10751125  public void setDisplayOptionsID(String id, int imageIndex) { 
    10761126    if (id == null) return; 
    1077     DisplayOptionsNode displayOptions = getDisplayOptionsNode(imageIndex, true); 
    1078     displayOptions.setNodeID(id); 
     1127    DisplayOptionsNode displayOptionsNode = getDisplayOptionsNode(imageIndex, true); 
     1128    displayOptionsNode.setNodeID(id); 
    10791129  } 
    10801130 
     
    10821132  public void setDisplayOptionsZoom(Float zoom, int imageIndex) { 
    10831133    if (zoom == null) return; 
    1084     DisplayOptionsNode displayOptions = getDisplayOptionsNode(imageIndex, true); 
    1085     displayOptions.setZoom(zoom); 
     1134    DisplayOptionsNode displayOptionsNode = getDisplayOptionsNode(imageIndex, true); 
     1135    displayOptionsNode.setZoom(zoom); 
    10861136  } 
    10871137 
     
    10911141  public void setDisplayOptionsProjectionZStart(Integer zStart, int imageIndex) { 
    10921142    if (zStart == null) return; 
    1093     ProjectionNode projection = getProjectionNode(imageIndex, true); 
    1094     projection.setZstart(zStart); 
     1143    ProjectionNode projectionNode = getProjectionNode(imageIndex, true); 
     1144    projectionNode.setZstart(zStart); 
    10951145  } 
    10961146 
     
    10981148  public void setDisplayOptionsProjectionZStop(Integer zStop, int imageIndex) { 
    10991149    if (zStop == null) return; 
    1100     ProjectionNode projection = getProjectionNode(imageIndex, true); 
    1101     projection.setZstop(zStop); 
     1150    ProjectionNode projectionNode = getProjectionNode(imageIndex, true); 
     1151    projectionNode.setZstop(zStop); 
    11021152  } 
    11031153 
     
    11071157  public void setDisplayOptionsTimeTStart(Integer tStart, int imageIndex) { 
    11081158    if (tStart == null) return; 
    1109     TimeNode time = getTimeNode(imageIndex, true); 
    1110     time.setTstart(tStart); 
     1159    TimeNode timeNode = getTimeNode(imageIndex, true); 
     1160    timeNode.setTstart(tStart); 
    11111161  } 
    11121162 
     
    11141164  public void setDisplayOptionsTimeTStop(Integer tStop, int imageIndex) { 
    11151165    if (tStop == null) return; 
    1116     TimeNode time = getTimeNode(imageIndex, true); 
    1117     time.setTstop(tStop); 
     1166    TimeNode timeNode = getTimeNode(imageIndex, true); 
     1167    timeNode.setTstop(tStop); 
    11181168  } 
    11191169 
     
    11231173  public void setExperimenterEmail(String email, int experimenterIndex) { 
    11241174    if (email == null) return; 
    1125     ExperimenterNode experimenter = getExperimenterNode(experimenterIndex, true); 
    1126     experimenter.setEmail(email); 
     1175    ExperimenterNode experimenterNode = getExperimenterNode(experimenterIndex, true); 
     1176    experimenterNode.setEmail(email); 
    11271177  } 
    11281178 
     
    11301180  public void setExperimenterFirstName(String firstName, int experimenterIndex) { 
    11311181    if (firstName == null) return; 
    1132     ExperimenterNode experimenter = getExperimenterNode(experimenterIndex, true); 
    1133     experimenter.setFirstName(firstName); 
     1182    ExperimenterNode experimenterNode = getExperimenterNode(experimenterIndex, true); 
     1183    experimenterNode.setFirstName(firstName); 
    11341184  } 
    11351185 
     
    11371187  public void setExperimenterID(String id, int experimenterIndex) { 
    11381188    if (id == null) return; 
    1139     ExperimenterNode experimenter = getExperimenterNode(experimenterIndex, true); 
    1140     experimenter.setNodeID(id); 
     1189    ExperimenterNode experimenterNode = getExperimenterNode(experimenterIndex, true); 
     1190    experimenterNode.setNodeID(id); 
    11411191  } 
    11421192 
     
    11441194  public void setExperimenterInstitution(String institution, int experimenterIndex) { 
    11451195    if (institution == null) return; 
    1146     ExperimenterNode experimenter = getExperimenterNode(experimenterIndex, true); 
    1147     experimenter.setInstitution(institution); 
     1196    ExperimenterNode experimenterNode = getExperimenterNode(experimenterIndex, true); 
     1197    experimenterNode.setInstitution(institution); 
    11481198  } 
    11491199 
     
    11511201  public void setExperimenterLastName(String lastName, int experimenterIndex) { 
    11521202    if (lastName == null) return; 
    1153     ExperimenterNode experimenter = getExperimenterNode(experimenterIndex, true); 
    1154     experimenter.setLastName(lastName); 
     1203    ExperimenterNode experimenterNode = getExperimenterNode(experimenterIndex, true); 
     1204    experimenterNode.setLastName(lastName); 
    11551205  } 
    11561206 
     
    11601210  public void setFilamentType(String type, int instrumentIndex, int lightSourceIndex) { 
    11611211    if (type == null) return; 
    1162     FilamentNode filament = getFilamentNode(instrumentIndex, lightSourceIndex, true); 
    1163     filament.setType(type); 
     1212    FilamentNode filamentNode = getFilamentNode(instrumentIndex, lightSourceIndex, true); 
     1213    filamentNode.setType(type); 
    11641214  } 
    11651215 
     
    11691219  public void setImageCreationDate(String creationDate, int imageIndex) { 
    11701220    if (creationDate == null) return; 
    1171     ImageNode image = getImageNode(imageIndex, true); 
    1172     image.setCreationDate(creationDate); 
     1221    ImageNode imageNode = getImageNode(imageIndex, true); 
     1222    imageNode.setCreationDate(creationDate); 
    11731223  } 
    11741224 
     
    11761226  public void setImageDescription(String description, int imageIndex) { 
    11771227    if (description == null) return; 
    1178     ImageNode image = getImageNode(imageIndex, true); 
    1179     image.setDescription(description); 
     1228    ImageNode imageNode = getImageNode(imageIndex, true); 
     1229    imageNode.setDescription(description); 
    11801230  } 
    11811231 
     
    11831233  public void setImageID(String id, int imageIndex) { 
    11841234    if (id == null) return; 
    1185     ImageNode image = getImageNode(imageIndex, true); 
    1186     image.setNodeID(id); 
     1235    ImageNode imageNode = getImageNode(imageIndex, true); 
     1236    imageNode.setNodeID(id); 
    11871237  } 
    11881238 
     
    11901240  public void setImageName(String name, int imageIndex) { 
    11911241    if (name == null) return; 
    1192     ImageNode image = getImageNode(imageIndex, true); 
    1193     image.setName(name); 
     1242    ImageNode imageNode = getImageNode(imageIndex, true); 
     1243    imageNode.setName(name); 
    11941244  } 
    11951245 
     
    11991249  public void setImagingEnvironmentAirPressure(Float airPressure, int imageIndex) { 
    12001250    if (airPressure == null) return; 
    1201     ImagingEnvironmentNode imagingEnvironment = getImagingEnvironmentNode(imageIndex, true); 
    1202     imagingEnvironment.setAirPressure(airPressure); 
     1251    ImagingEnvironmentNode imagingEnvironmentNode = getImagingEnvironmentNode(imageIndex, true); 
     1252    imagingEnvironmentNode.setAirPressure(airPressure); 
    12031253  } 
    12041254 
     
    12061256  public void setImagingEnvironmentCO2Percent(Float cO2Percent, int imageIndex) { 
    12071257    if (cO2Percent == null) return; 
    1208     ImagingEnvironmentNode imagingEnvironment = getImagingEnvironmentNode(imageIndex, true); 
    1209     imagingEnvironment.setCO2Percent(cO2Percent); 
     1258    ImagingEnvironmentNode imagingEnvironmentNode = getImagingEnvironmentNode(imageIndex, true); 
     1259    imagingEnvironmentNode.setCO2Percent(cO2Percent); 
    12101260  } 
    12111261 
     
    12131263  public void setImagingEnvironmentHumidity(Float humidity, int imageIndex) { 
    12141264    if (humidity == null) return; 
    1215     ImagingEnvironmentNode imagingEnvironment = getImagingEnvironmentNode(imageIndex, true); 
    1216     imagingEnvironment.setHumidity(humidity); 
     1265    ImagingEnvironmentNode imagingEnvironmentNode = getImagingEnvironmentNode(imageIndex, true); 
     1266    imagingEnvironmentNode.setHumidity(humidity); 
    12171267  } 
    12181268 
     
    12201270  public void setImagingEnvironmentTemperature(Float temperature, int imageIndex) { 
    12211271    if (temperature == null) return; 
    1222     ImagingEnvironmentNode imagingEnvironment = getImagingEnvironmentNode(imageIndex, true); 
    1223     imagingEnvironment.setTemperature(temperature); 
     1272    ImagingEnvironmentNode imagingEnvironmentNode = getImagingEnvironmentNode(imageIndex, true); 
     1273    imagingEnvironmentNode.setTemperature(temperature); 
    12241274  } 
    12251275 
     
    12291279  public void setInstrumentID(String id, int instrumentIndex) { 
    12301280    if (id == null) return; 
    1231     InstrumentNode instrument = getInstrumentNode(instrumentIndex, true); 
    1232     instrument.setNodeID(id); 
     1281    InstrumentNode instrumentNode = getInstrumentNode(instrumentIndex, true); 
     1282    instrumentNode.setNodeID(id); 
    12331283  } 
    12341284 
     
    12381288  public void setLaserFrequencyMultiplication(Integer frequencyMultiplication, int instrumentIndex, int lightSourceIndex) { 
    12391289    if (frequencyMultiplication == null) return; 
    1240     LaserNode laser = getLaserNode(instrumentIndex, lightSourceIndex, true); 
    1241     laser.setFrequencyDoubled(integerToBoolean(frequencyMultiplication)); 
     1290    LaserNode laserNode = getLaserNode(instrumentIndex, lightSourceIndex, true); 
     1291    laserNode.setFrequencyDoubled(integerToBoolean(frequencyMultiplication)); 
    12421292  } 
    12431293 
     
    12451295  public void setLaserLaserMedium(String laserMedium, int instrumentIndex, int lightSourceIndex) { 
    12461296    if (laserMedium == null) return; 
    1247     LaserNode laser = getLaserNode(instrumentIndex, lightSourceIndex, true); 
    1248     laser.setMedium(laserMedium); 
     1297    LaserNode laserNode = getLaserNode(instrumentIndex, lightSourceIndex, true); 
     1298    laserNode.setMedium(laserMedium); 
    12491299  } 
    12501300 
     
    12521302  public void setLaserPulse(String pulse, int instrumentIndex, int lightSourceIndex) { 
    12531303    if (pulse == null) return; 
    1254     LaserNode laser = getLaserNode(instrumentIndex, lightSourceIndex, true); 
    1255     laser.setPulse(pulse); 
     1304    LaserNode laserNode = getLaserNode(instrumentIndex, lightSourceIndex, true); 
     1305    laserNode.setPulse(pulse); 
    12561306  } 
    12571307 
     
    12591309  public void setLaserTuneable(Boolean tuneable, int instrumentIndex, int lightSourceIndex) { 
    12601310    if (tuneable == null) return; 
    1261     LaserNode laser = getLaserNode(instrumentIndex, lightSourceIndex, true); 
    1262     laser.setTunable(tuneable); 
     1311    LaserNode laserNode = getLaserNode(instrumentIndex, lightSourceIndex, true); 
     1312    laserNode.setTunable(tuneable); 
    12631313  } 
    12641314 
     
    12661316  public void setLaserType(String type, int instrumentIndex, int lightSourceIndex) { 
    12671317    if (type == null) return; 
    1268     LaserNode laser = getLaserNode(instrumentIndex, lightSourceIndex, true); 
    1269     laser.setType(type); 
     1318    LaserNode laserNode = getLaserNode(instrumentIndex, lightSourceIndex, true); 
     1319    laserNode.setType(type); 
    12701320  } 
    12711321 
     
    12731323  public void setLaserWavelength(Integer wavelength, int instrumentIndex, int lightSourceIndex) { 
    12741324    if (wavelength == null) return; 
    1275     LaserNode laser = getLaserNode(instrumentIndex, lightSourceIndex, true); 
    1276     laser.setWavelength(wavelength); 
     1325    LaserNode laserNode = getLaserNode(instrumentIndex, lightSourceIndex, true); 
     1326    laserNode.setWavelength(wavelength); 
    12771327  } 
    12781328 
     
    12821332  public void setLightSourceID(String id, int instrumentIndex, int lightSourceIndex) { 
    12831333    if (id == null) return; 
    1284     LightSourceNode lightSource = getLightSourceNode(instrumentIndex, lightSourceIndex, true); 
    1285     lightSource.setNodeID(id); 
     1334    LightSourceNode lightSourceNode = getLightSourceNode(instrumentIndex, lightSourceIndex, true); 
     1335    lightSourceNode.setNodeID(id); 
    12861336  } 
    12871337 
     
    12891339  public void setLightSourceManufacturer(String manufacturer, int instrumentIndex, int lightSourceIndex) { 
    12901340    if (manufacturer == null) return; 
    1291     LightSourceNode lightSource = getLightSourceNode(instrumentIndex, lightSourceIndex, true); 
    1292     lightSource.setManufacturer(manufacturer); 
     1341    LightSourceNode lightSourceNode = getLightSourceNode(instrumentIndex, lightSourceIndex, true); 
     1342    lightSourceNode.setManufacturer(manufacturer); 
    12931343  } 
    12941344 
     
    12961346  public void setLightSourceModel(String model, int instrumentIndex, int lightSourceIndex) { 
    12971347    if (model == null) return; 
    1298     LightSourceNode lightSource = getLightSourceNode(instrumentIndex, lightSourceIndex, true); 
    1299     lightSource.setModel(model); 
     1348    LightSourceNode lightSourceNode = getLightSourceNode(instrumentIndex, lightSourceIndex, true); 
     1349    lightSourceNode.setModel(model); 
    13001350  } 
    13011351 
     
    13081358  public void setLightSourceSerialNumber(String serialNumber, int instrumentIndex, int lightSourceIndex) { 
    13091359    if (serialNumber == null) return; 
    1310     LightSourceNode lightSource = getLightSourceNode(instrumentIndex, lightSourceIndex, true); 
    1311     lightSource.setSerialNumber(serialNumber); 
     1360    LightSourceNode lightSourceNode = getLightSourceNode(instrumentIndex, lightSourceIndex, true); 
     1361    lightSourceNode.setSerialNumber(serialNumber); 
    13121362  } 
    13131363 
     
    13171367  public void setLightSourceSettingsAttenuation(Float attenuation, int imageIndex, int logicalChannelIndex) { 
    13181368    if (attenuation == null) return; 
    1319     LightSourceRefNode lightSourceRef = getLightSourceRefNode(imageIndex, logicalChannelIndex, true); 
    1320     lightSourceRef.setAttenuation(attenuation); 
     1369    LightSourceRefNode lightSourceRefNode = getLightSourceRefNode(imageIndex, logicalChannelIndex, true); 
     1370    lightSourceRefNode.setAttenuation(attenuation); 
    13211371  } 
    13221372 
     
    13241374  public void setLightSourceSettingsLightSource(String lightSource, int imageIndex, int logicalChannelIndex) { 
    13251375    if (lightSource == null) return; 
    1326     LightSourceRefNode lightSourceRef = getLightSourceRefNode(imageIndex, logicalChannelIndex, true); 
    1327     lightSourceRef.setNodeID(lightSource); 
     1376    LightSourceRefNode lightSourceRefNode = getLightSourceRefNode(imageIndex, logicalChannelIndex, true); 
     1377    lightSourceRefNode.setNodeID(lightSource); 
    13281378  } 
    13291379 
     
    13311381  public void setLightSourceSettingsWavelength(Integer wavelength, int imageIndex, int logicalChannelIndex) { 
    13321382    if (wavelength == null) return; 
    1333     LightSourceRefNode lightSourceRef = getLightSourceRefNode(imageIndex, logicalChannelIndex, true); 
    1334     lightSourceRef.setWavelength(wavelength); 
     1383    LightSourceRefNode lightSourceRefNode = getLightSourceRefNode(imageIndex, logicalChannelIndex, true); 
     1384    lightSourceRefNode.setWavelength(wavelength); 
    13351385  } 
    13361386 
     
    13401390  public void setLogicalChannelContrastMethod(String contrastMethod, int imageIndex, int logicalChannelIndex) { 
    13411391    if (contrastMethod == null) return; 
    1342     ChannelInfoNode channelInfo = getChannelInfoNode(imageIndex, logicalChannelIndex, true); 
    1343     channelInfo.setContrastMethod(contrastMethod); 
     1392    ChannelInfoNode channelInfoNode = getChannelInfoNode(imageIndex, logicalChannelIndex, true); 
     1393    channelInfoNode.setContrastMethod(contrastMethod); 
    13441394  } 
    13451395 
     
    13471397  public void setLogicalChannelEmWave(Integer emWave, int imageIndex, int logicalChannelIndex) { 
    13481398    if (emWave == null) return; 
    1349     ChannelInfoNode channelInfo = getChannelInfoNode(imageIndex, logicalChannelIndex, true); 
    1350     channelInfo.setEmWave(emWave); 
     1399    ChannelInfoNode channelInfoNode = getChannelInfoNode(imageIndex, logicalChannelIndex, true); 
     1400    channelInfoNode.setEmWave(emWave); 
    13511401  } 
    13521402 
     
    13541404  public void setLogicalChannelExWave(Integer exWave, int imageIndex, int logicalChannelIndex) { 
    13551405    if (exWave == null) return; 
    1356     ChannelInfoNode channelInfo = getChannelInfoNode(imageIndex, logicalChannelIndex, true); 
    1357     channelInfo.setExWave(exWave); 
     1406    ChannelInfoNode channelInfoNode = getChannelInfoNode(imageIndex, logicalChannelIndex, true); 
     1407    channelInfoNode.setExWave(exWave); 
    13581408  } 
    13591409 
     
    13611411  public void setLogicalChannelFluor(String fluor, int imageIndex, int logicalChannelIndex) { 
    13621412    if (fluor == null) return; 
    1363     ChannelInfoNode channelInfo = getChannelInfoNode(imageIndex, logicalChannelIndex, true); 
    1364     channelInfo.setFluor(fluor); 
     1413    ChannelInfoNode channelInfoNode = getChannelInfoNode(imageIndex, logicalChannelIndex, true); 
     1414    channelInfoNode.setFluor(fluor); 
    13651415  } 
    13661416 
     
    13681418  public void setLogicalChannelID(String id, int imageIndex, int logicalChannelIndex) { 
    13691419    if (id == null) return; 
    1370     ChannelInfoNode channelInfo = getChannelInfoNode(imageIndex, logicalChannelIndex, true); 
    1371     channelInfo.setNodeID(id); 
     1420    ChannelInfoNode channelInfoNode = getChannelInfoNode(imageIndex, logicalChannelIndex, true); 
     1421    channelInfoNode.setNodeID(id); 
    13721422  } 
    13731423 
     
    13751425  public void setLogicalChannelIlluminationType(String illuminationType, int imageIndex, int logicalChannelIndex) { 
    13761426    if (illuminationType == null) return; 
    1377     ChannelInfoNode channelInfo = getChannelInfoNode(imageIndex, logicalChannelIndex, true); 
    1378     channelInfo.setIlluminationType(illuminationType); 
     1427    ChannelInfoNode channelInfoNode = getChannelInfoNode(imageIndex, logicalChannelIndex, true); 
     1428    channelInfoNode.setIlluminationType(illuminationType); 
    13791429  } 
    13801430 
     
    13821432  public void setLogicalChannelMode(String mode, int imageIndex, int logicalChannelIndex) { 
    13831433    if (mode == null) return; 
    1384     ChannelInfoNode channelInfo = getChannelInfoNode(imageIndex, logicalChannelIndex, true); 
    1385     channelInfo.setMode(mode); 
     1434    ChannelInfoNode channelInfoNode = getChannelInfoNode(imageIndex, logicalChannelIndex, true); 
     1435    channelInfoNode.setMode(mode); 
    13861436  } 
    13871437 
     
    13891439  public void setLogicalChannelName(String name, int imageIndex, int logicalChannelIndex) { 
    13901440    if (name == null) return; 
    1391     ChannelInfoNode channelInfo = getChannelInfoNode(imageIndex, logicalChannelIndex, true); 
    1392     channelInfo.setName(name); 
     1441    ChannelInfoNode channelInfoNode = getChannelInfoNode(imageIndex, logicalChannelIndex, true); 
     1442    channelInfoNode.setName(name); 
    13931443  } 
    13941444 
     
    13961446  public void setLogicalChannelNdFilter(Float ndFilter, int imageIndex, int logicalChannelIndex) { 
    13971447    if (ndFilter == null) return; 
    1398     ChannelInfoNode channelInfo = getChannelInfoNode(imageIndex, logicalChannelIndex, true); 
    1399     channelInfo.setNDfilter(ndFilter); 
     1448    ChannelInfoNode channelInfoNode = getChannelInfoNode(imageIndex, logicalChannelIndex, true); 
     1449    channelInfoNode.setNDfilter(ndFilter); 
    14001450  } 
    14011451 
     
    14031453  public void setLogicalChannelPhotometricInterpretation(String photometricInterpretation, int imageIndex, int logicalChannelIndex) { 
    14041454    if (photometricInterpretation == null) return; 
    1405     ChannelInfoNode channelInfo = getChannelInfoNode(imageIndex, logicalChannelIndex, true); 
    1406     channelInfo.setPhotometricInterpretation(photometricInterpretation); 
     1455    ChannelInfoNode channelInfoNode = getChannelInfoNode(imageIndex, logicalChannelIndex, true); 
     1456    channelInfoNode.setPhotometricInterpretation(photometricInterpretation); 
    14071457  } 
    14081458 
     
    14101460  public void setLogicalChannelPinholeSize(Integer pinholeSize, int imageIndex, int logicalChannelIndex) { 
    14111461    if (pinholeSize == null) return; 
    1412     ChannelInfoNode channelInfo = getChannelInfoNode(imageIndex, logicalChannelIndex, true); 
    1413     channelInfo.setPinholeSize(pinholeSize); 
     1462    ChannelInfoNode channelInfoNode = getChannelInfoNode(imageIndex, logicalChannelIndex, true); 
     1463    channelInfoNode.setPinholeSize(pinholeSize); 
    14141464  } 
    14151465 
     
    14221472  public void setLogicalChannelSamplesPerPixel(Integer samplesPerPixel, int imageIndex, int logicalChannelIndex) { 
    14231473    if (samplesPerPixel == null) return; 
    1424     ChannelInfoNode channelInfo = getChannelInfoNode(imageIndex, logicalChannelIndex, true); 
    1425     channelInfo.setSamplesPerPixel(samplesPerPixel); 
     1474    ChannelInfoNode channelInfoNode = getChannelInfoNode(imageIndex, logicalChannelIndex, true); 
     1475    channelInfoNode.setSamplesPerPixel(samplesPerPixel); 
    14261476  } 
    14271477 
     
    14311481  public void setOTFID(String id, int instrumentIndex, int otfIndex) { 
    14321482    if (id == null) return; 
    1433     OTFNode otf = getOTFNode(instrumentIndex, otfIndex, true); 
    1434     otf.setNodeID(id); 
     1483    OTFNode otfNode = getOTFNode(instrumentIndex, otfIndex, true); 
     1484    otfNode.setNodeID(id); 
    14351485  } 
    14361486 
     
    14381488  public void setOTFOpticalAxisAveraged(Boolean opticalAxisAveraged, int instrumentIndex, int otfIndex) { 
    14391489    if (opticalAxisAveraged == null) return; 
    1440     OTFNode otf = getOTFNode(instrumentIndex, otfIndex, true); 
    1441     otf.setOpticalAxisAvrg(opticalAxisAveraged); 
     1490    OTFNode otfNode = getOTFNode(instrumentIndex, otfIndex, true); 
     1491    otfNode.setOpticalAxisAvrg(opticalAxisAveraged); 
    14421492  } 
    14431493 
     
    14451495  public void setOTFPixelType(String pixelType, int instrumentIndex, int otfIndex) { 
    14461496    if (pixelType == null) return; 
    1447     OTFNode otf = getOTFNode(instrumentIndex, otfIndex, true); 
    1448     otf.setPixelType(pixelType); 
     1497    OTFNode otfNode = getOTFNode(instrumentIndex, otfIndex, true); 
     1498    otfNode.setPixelType(pixelType); 
    14491499  } 
    14501500 
     
    14521502  public void setOTFSizeX(Integer sizeX, int instrumentIndex, int otfIndex) { 
    14531503    if (sizeX == null) return; 
    1454     OTFNode otf = getOTFNode(instrumentIndex, otfIndex, true); 
    1455     otf.setSizeX(sizeX); 
     1504    OTFNode otfNode = getOTFNode(instrumentIndex, otfIndex, true); 
     1505    otfNode.setSizeX(sizeX); 
    14561506  } 
    14571507 
     
    14591509  public void setOTFSizeY(Integer sizeY, int instrumentIndex, int otfIndex) { 
    14601510    if (sizeY == null) return; 
    1461     OTFNode otf = getOTFNode(instrumentIndex, otfIndex, true); 
    1462     otf.setSizeY(sizeY); 
     1511    OTFNode otfNode = getOTFNode(instrumentIndex, otfIndex, true); 
     1512    otfNode.setSizeY(sizeY); 
    14631513  } 
    14641514 
     
    14681518  public void setObjectiveCalibratedMagnification(Float calibratedMagnification, int instrumentIndex, int objectiveIndex) { 
    14691519    if (calibratedMagnification == null) return; 
    1470     ObjectiveNode objective = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
    1471     objective.setMagnification(calibratedMagnification); 
     1520    ObjectiveNode objectiveNode = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
     1521    objectiveNode.setMagnification(calibratedMagnification); 
    14721522  } 
    14731523 
     
    14801530  public void setObjectiveID(String id, int instrumentIndex, int objectiveIndex) { 
    14811531    if (id == null) return; 
    1482     ObjectiveNode objective = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
    1483     objective.setNodeID(id); 
     1532    ObjectiveNode objectiveNode = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
     1533    objectiveNode.setNodeID(id); 
    14841534  } 
    14851535 
     
    14921542  public void setObjectiveLensNA(Float lensNA, int instrumentIndex, int objectiveIndex) { 
    14931543    if (lensNA == null) return; 
    1494     ObjectiveNode objective = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
    1495     objective.setLensNA(lensNA); 
     1544    ObjectiveNode objectiveNode = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
     1545    objectiveNode.setLensNA(lensNA); 
    14961546  } 
    14971547 
     
    14991549  public void setObjectiveManufacturer(String manufacturer, int instrumentIndex, int objectiveIndex) { 
    15001550    if (manufacturer == null) return; 
    1501     ObjectiveNode objective = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
    1502     objective.setManufacturer(manufacturer); 
     1551    ObjectiveNode objectiveNode = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
     1552    objectiveNode.setManufacturer(manufacturer); 
    15031553  } 
    15041554 
     
    15061556  public void setObjectiveModel(String model, int instrumentIndex, int objectiveIndex) { 
    15071557    if (model == null) return; 
    1508     ObjectiveNode objective = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
    1509     objective.setModel(model); 
     1558    ObjectiveNode objectiveNode = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
     1559    objectiveNode.setModel(model); 
    15101560  } 
    15111561 
     
    15181568  public void setObjectiveSerialNumber(String serialNumber, int instrumentIndex, int objectiveIndex) { 
    15191569    if (serialNumber == null) return; 
    1520     ObjectiveNode objective = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
    1521     objective.setSerialNumber(serialNumber); 
     1570    ObjectiveNode objectiveNode = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
     1571    objectiveNode.setSerialNumber(serialNumber); 
    15221572  } 
    15231573 
     
    15321582  public void setPixelsBigEndian(Boolean bigEndian, int imageIndex, int pixelsIndex) { 
    15331583    if (bigEndian == null) return; 
    1534     PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, true); 
    1535     pixels.setBigEndian(bigEndian); 
     1584    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
     1585    pixelsNode.setBigEndian(bigEndian); 
    15361586  } 
    15371587 
     
    15391589  public void setPixelsDimensionOrder(String dimensionOrder, int imageIndex, int pixelsIndex) { 
    15401590    if (dimensionOrder == null) return; 
    1541     PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, true); 
    1542     pixels.setDimensionOrder(dimensionOrder); 
     1591    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
     1592    pixelsNode.setDimensionOrder(dimensionOrder); 
    15431593  } 
    15441594 
     
    15461596  public void setPixelsID(String id, int imageIndex, int pixelsIndex) { 
    15471597    if (id == null) return; 
    1548     PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, true); 
    1549     pixels.setNodeID(id); 
     1598    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
     1599    pixelsNode.setNodeID(id); 
    15501600  } 
    15511601 
     
    15531603  public void setPixelsPixelType(String pixelType, int imageIndex, int pixelsIndex) { 
    15541604    if (pixelType == null) return; 
    1555     PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, true); 
    1556     pixels.setPixelType(pixelType); 
     1605    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
     1606    pixelsNode.setPixelType(pixelType); 
    15571607  } 
    15581608 
     
    15601610  public void setPixelsSizeC(Integer sizeC, int imageIndex, int pixelsIndex) { 
    15611611    if (sizeC == null) return; 
    1562     PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, true); 
    1563     pixels.setSizeC(sizeC); 
     1612    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
     1613    pixelsNode.setSizeC(sizeC); 
    15641614  } 
    15651615 
     
    15671617  public void setPixelsSizeT(Integer sizeT, int imageIndex, int pixelsIndex) { 
    15681618    if (sizeT == null) return; 
    1569     PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, true); 
    1570     pixels.setSizeT(sizeT); 
     1619    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
     1620    pixelsNode.setSizeT(sizeT); 
    15711621  } 
    15721622 
     
    15741624  public void setPixelsSizeX(Integer sizeX, int imageIndex, int pixelsIndex) { 
    15751625    if (sizeX == null) return; 
    1576     PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, true); 
    1577     pixels.setSizeX(sizeX); 
     1626    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
     1627    pixelsNode.setSizeX(sizeX); 
    15781628  } 
    15791629 
     
    15811631  public void setPixelsSizeY(Integer sizeY, int imageIndex, int pixelsIndex) { 
    15821632    if (sizeY == null) return; 
    1583     PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, true); 
    1584     pixels.setSizeY(sizeY); 
     1633    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
     1634    pixelsNode.setSizeY(sizeY); 
    15851635  } 
    15861636 
     
    15881638  public void setPixelsSizeZ(Integer sizeZ, int imageIndex, int pixelsIndex) { 
    15891639    if (sizeZ == null) return; 
    1590     PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, true); 
    1591     pixels.setSizeZ(sizeZ); 
     1640    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
     1641    pixelsNode.setSizeZ(sizeZ); 
    15921642  } 
    15931643 
     
    16261676  public void setROIID(String id, int imageIndex, int roiIndex) { 
    16271677    if (id == null) return; 
    1628     ROINode roi = getROINode(imageIndex, roiIndex, true); 
    1629     roi.setNodeID(id); 
     1678    ROINode roiNode = getROINode(imageIndex, roiIndex, true); 
     1679    roiNode.setNodeID(id); 
    16301680  } 
    16311681 
     
    16331683  public void setROIT0(Integer t0, int imageIndex, int roiIndex) { 
    16341684    if (t0 == null) return; 
    1635     ROINode roi = getROINode(imageIndex, roiIndex, true); 
    1636     roi.setT0(t0); 
     1685    ROINode roiNode = getROINode(imageIndex, roiIndex, true); 
     1686    roiNode.setT0(t0); 
    16371687  } 
    16381688 
     
    16401690  public void setROIT1(Integer t1, int imageIndex, int roiIndex) { 
    16411691    if (t1 == null) return; 
    1642     ROINode roi = getROINode(imageIndex, roiIndex, true); 
    1643     roi.setT1(t1); 
     1692    ROINode roiNode = getROINode(imageIndex, roiIndex, true); 
     1693    roiNode.setT1(t1); 
    16441694  } 
    16451695 
     
    16471697  public void setROIX0(Integer x0, int imageIndex, int roiIndex) { 
    16481698    if (x0 == null) return; 
    1649     ROINode roi = getROINode(imageIndex, roiIndex, true); 
    1650     roi.setX0(x0); 
     1699    ROINode roiNode = getROINode(imageIndex, roiIndex, true); 
     1700    roiNode.setX0(x0); 
    16511701  } 
    16521702 
     
    16541704  public void setROIX1(Integer x1, int imageIndex, int roiIndex) { 
    16551705    if (x1 == null) return; 
    1656     ROINode roi = getROINode(imageIndex, roiIndex, true); 
    1657     roi.setX1(x1); 
     1706    ROINode roiNode = getROINode(imageIndex, roiIndex, true); 
     1707    roiNode.setX1(x1); 
    16581708  } 
    16591709 
     
    16611711  public void setROIY0(Integer y0, int imageIndex, int roiIndex) { 
    16621712    if (y0 == null) return; 
    1663     ROINode roi = getROINode(imageIndex, roiIndex, true); 
    1664     roi.setY0(y0); 
     1713    ROINode roiNode = getROINode(imageIndex, roiIndex, true); 
     1714    roiNode.setY0(y0); 
    16651715  } 
    16661716 
     
    16681718  public void setROIY1(Integer y1, int imageIndex, int roiIndex) { 
    16691719    if (y1 == null) return; 
    1670     ROINode roi = getROINode(imageIndex, roiIndex, true); 
    1671     roi.setY1(y1); 
     1720    ROINode roiNode = getROINode(imageIndex, roiIndex, true); 
     1721    roiNode.setY1(y1); 
    16721722  } 
    16731723 
     
    16751725  public void setROIZ0(Integer z0, int imageIndex, int roiIndex) { 
    16761726    if (z0 == null) return; 
    1677     ROINode roi = getROINode(imageIndex, roiIndex, true); 
    1678     roi.setZ0(z0); 
     1727    ROINode roiNode = getROINode(imageIndex, roiIndex, true); 
     1728    roiNode.setZ0(z0); 
    16791729  } 
    16801730 
     
    16821732  public void setROIZ1(Integer z1, int imageIndex, int roiIndex) { 
    16831733    if (z1 == null) return; 
    1684     ROINode roi = getROINode(imageIndex, roiIndex, true); 
    1685     roi.setZ1(z1); 
     1734    ROINode roiNode = getROINode(imageIndex, roiIndex, true); 
     1735    roiNode.setZ1(z1); 
    16861736  } 
    16871737 
     
    16911741  public void setStageLabelName(String name, int imageIndex) { 
    16921742    if (name == null) return; 
    1693     StageLabelNode stageLabel = getStageLabelNode(imageIndex, true); 
    1694     stageLabel.setName(name); 
     1743    StageLabelNode stageLabelNode = getStageLabelNode(imageIndex, true); 
     1744    stageLabelNode.setName(name); 
    16951745  } 
    16961746 
     
    16981748  public void setStageLabelX(Float x, int imageIndex) { 
    16991749    if (x == null) return; 
    1700     StageLabelNode stageLabel = getStageLabelNode(imageIndex, true); 
    1701     stageLabel.setX(x); 
     1750    StageLabelNode stageLabelNode = getStageLabelNode(imageIndex, true); 
     1751    stageLabelNode.setX(x); 
    17021752  } 
    17031753 
     
    17051755  public void setStageLabelY(Float y, int imageIndex) { 
    17061756    if (y == null) return; 
    1707     StageLabelNode stageLabel = getStageLabelNode(imageIndex, true); 
    1708     stageLabel.setY(y); 
     1757    StageLabelNode stageLabelNode = getStageLabelNode(imageIndex, true); 
     1758    stageLabelNode.setY(y); 
    17091759  } 
    17101760 
     
    17121762  public void setStageLabelZ(Float z, int imageIndex) { 
    17131763    if (z == null) return; 
    1714     StageLabelNode stageLabel = getStageLabelNode(imageIndex, true); 
    1715     stageLabel.setZ(z); 
     1764    StageLabelNode stageLabelNode = getStageLabelNode(imageIndex, true); 
     1765    stageLabelNode.setZ(z); 
    17161766  } 
    17171767 
     
    17311781  public void setStagePositionPositionZ(Float positionZ, int imageIndex, int pixelsIndex, int planeIndex) { 
    17321782    // NB: PositionZ unsupported for schema version 2003-FC 
     1783  } 
     1784 
     1785  // - TiffData property storage - 
     1786 
     1787  /* @see loci.formats.meta.MetadataStore#setTiffDataFileName(String, int, int, int) */ 
     1788  public void setTiffDataFileName(String fileName, int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     1789    // NB: FileName unsupported for schema version 2003-FC 
     1790  } 
     1791 
     1792  /* @see loci.formats.meta.MetadataStore#setTiffDataFirstC(Integer, int, int, int) */ 
     1793  public void setTiffDataFirstC(Integer firstC, int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     1794    // NB: FirstC unsupported for schema version 2003-FC 
     1795  } 
     1796 
     1797  /* @see loci.formats.meta.MetadataStore#setTiffDataFirstT(Integer, int, int, int) */ 
     1798  public void setTiffDataFirstT(Integer firstT, int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     1799    // NB: FirstT unsupported for schema version 2003-FC 
     1800  } 
     1801 
     1802  /* @see loci.formats.meta.MetadataStore#setTiffDataFirstZ(Integer, int, int, int) */ 
     1803  public void setTiffDataFirstZ(Integer firstZ, int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     1804    // NB: FirstZ unsupported for schema version 2003-FC 
     1805  } 
     1806 
     1807  /* @see loci.formats.meta.MetadataStore#setTiffDataIFD(Integer, int, int, int) */ 
     1808  public void setTiffDataIFD(Integer ifd, int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     1809    // NB: IFD unsupported for schema version 2003-FC 
     1810  } 
     1811 
     1812  /* @see loci.formats.meta.MetadataStore#setTiffDataNumPlanes(Integer, int, int, int) */ 
     1813  public void setTiffDataNumPlanes(Integer numPlanes, int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     1814    // NB: NumPlanes unsupported for schema version 2003-FC 
     1815  } 
     1816 
     1817  /* @see loci.formats.meta.MetadataStore#setTiffDataUUID(String, int, int, int) */ 
     1818  public void setTiffDataUUID(String uuid, int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     1819    // NB: UUID unsupported for schema version 2003-FC 
    17331820  } 
    17341821 
  • trunk/loci/formats/ome/OMEXML200706Metadata.java

    r3982 r3988  
    2626 * 
    2727 * THIS IS AUTOMATICALLY GENERATED CODE.  DO NOT MODIFY. 
    28  * Created by curtis via MetadataAutogen on Apr 24, 2008 4:44:24 PM CDT 
     28 * Created by curtis via MetadataAutogen on Apr 28, 2008 4:19:17 PM CDT 
    2929 * 
    3030 *----------------------------------------------------------------------------- 
     
    167167  } 
    168168 
     169  /* @see loci.formats.meta.MetadataRetrieve#getTiffDataCount(int, int) */ 
     170  public int getTiffDataCount(int imageIndex, int pixelsIndex) { 
     171    for (int i=0; i<Integer.MAX_VALUE; i++) { 
     172      if (getTiffDataNode(imageIndex, pixelsIndex, i, false) == null) return i; 
     173    } 
     174    return -1; 
     175  } 
     176 
    169177  // - Entity retrieval - 
    170178 
     
    895903    StagePositionNode stagePosition = getStagePositionNode(imageIndex, pixelsIndex, planeIndex, false); 
    896904    return stagePosition == null ? null : stagePosition.getPositionZ(); 
     905  } 
     906 
     907  // - TiffData property retrieval - 
     908 
     909  /* @see loci.formats.meta.MetadataRetrieve#getTiffDataFileName(int, int, int) */ 
     910  public String getTiffDataFileName(int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     911    // NB: FileName unsupported for schema version 2007-06 
     912    return null; 
     913  } 
     914 
     915  /* @see loci.formats.meta.MetadataRetrieve#getTiffDataFirstC(int, int, int) */ 
     916  public Integer getTiffDataFirstC(int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     917    TiffDataNode tiffData = getTiffDataNode(imageIndex, pixelsIndex, tiffDataIndex, false); 
     918    return tiffData == null ? null : tiffData.getFirstC(); 
     919  } 
     920 
     921  /* @see loci.formats.meta.MetadataRetrieve#getTiffDataFirstT(int, int, int) */ 
     922  public Integer getTiffDataFirstT(int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     923    TiffDataNode tiffData = getTiffDataNode(imageIndex, pixelsIndex, tiffDataIndex, false); 
     924    return tiffData == null ? null : tiffData.getFirstT(); 
     925  } 
     926 
     927  /* @see loci.formats.meta.MetadataRetrieve#getTiffDataFirstZ(int, int, int) */ 
     928  public Integer getTiffDataFirstZ(int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     929    TiffDataNode tiffData = getTiffDataNode(imageIndex, pixelsIndex, tiffDataIndex, false); 
     930    return tiffData == null ? null : tiffData.getFirstZ(); 
     931  } 
     932 
     933  /* @see loci.formats.meta.MetadataRetrieve#getTiffDataIFD(int, int, int) */ 
     934  public Integer getTiffDataIFD(int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     935    TiffDataNode tiffData = getTiffDataNode(imageIndex, pixelsIndex, tiffDataIndex, false); 
     936    return tiffData == null ? null : tiffData.getIFD(); 
     937  } 
     938 
     939  /* @see loci.formats.meta.MetadataRetrieve#getTiffDataNumPlanes(int, int, int) */ 
     940  public Integer getTiffDataNumPlanes(int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     941    TiffDataNode tiffData = getTiffDataNode(imageIndex, pixelsIndex, tiffDataIndex, false); 
     942    return tiffData == null ? null : tiffData.getNumPlanes(); 
     943  } 
     944 
     945  /* @see loci.formats.meta.MetadataRetrieve#getTiffDataUUID(int, int, int) */ 
     946  public String getTiffDataUUID(int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     947    // NB: UUID unsupported for schema version 2007-06 
     948    return null; 
    897949  } 
    898950 
     
    927979  public void setArcType(String type, int instrumentIndex, int lightSourceIndex) { 
    928980    if (type == null) return; 
    929     ArcNode arc = getArcNode(instrumentIndex, lightSourceIndex, true); 
    930     arc.setType(type); 
     981    ArcNode arcNode = getArcNode(instrumentIndex, lightSourceIndex, true); 
     982    arcNode.setType(type); 
    931983  } 
    932984 
     
    936988  public void setChannelComponentColorDomain(String colorDomain, int imageIndex, int logicalChannelIndex, int channelComponentIndex) { 
    937989    if (colorDomain == null) return; 
    938     ChannelComponentNode channelComponent = getChannelComponentNode(imageIndex, logicalChannelIndex, channelComponentIndex, true); 
    939     channelComponent.setColorDomain(colorDomain); 
     990    ChannelComponentNode channelComponentNode = getChannelComponentNode(imageIndex, logicalChannelIndex, channelComponentIndex, true); 
     991    channelComponentNode.setColorDomain(colorDomain); 
    940992  } 
    941993 
     
    943995  public void setChannelComponentIndex(Integer index, int imageIndex, int logicalChannelIndex, int channelComponentIndex) { 
    944996    if (index == null) return; 
    945     ChannelComponentNode channelComponent = getChannelComponentNode(imageIndex, logicalChannelIndex, channelComponentIndex, true); 
    946     channelComponent.setIndex(index); 
     997    ChannelComponentNode channelComponentNode = getChannelComponentNode(imageIndex, logicalChannelIndex, channelComponentIndex, true); 
     998    channelComponentNode.setIndex(index); 
    947999  } 
    9481000 
     
    9521004  public void setDetectorGain(Float gain, int instrumentIndex, int detectorIndex) { 
    9531005    if (gain == null) return; 
    954     DetectorNode detector = getDetectorNode(instrumentIndex, detectorIndex, true); 
    955     detector.setGain(gain); 
     1006    DetectorNode detectorNode = getDetectorNode(instrumentIndex, detectorIndex, true); 
     1007    detectorNode.setGain(gain); 
    9561008  } 
    9571009 
     
    9591011  public void setDetectorID(String id, int instrumentIndex, int detectorIndex) { 
    9601012    if (id == null) return; 
    961     DetectorNode detector = getDetectorNode(instrumentIndex, detectorIndex, true); 
    962     detector.setNodeID(id); 
     1013    DetectorNode detectorNode = getDetectorNode(instrumentIndex, detectorIndex, true); 
     1014    detectorNode.setNodeID(id); 
    9631015  } 
    9641016 
     
    9661018  public void setDetectorManufacturer(String manufacturer, int instrumentIndex, int detectorIndex) { 
    9671019    if (manufacturer == null) return; 
    968     DetectorNode detector = getDetectorNode(instrumentIndex, detectorIndex, true); 
    969     detector.setManufacturer(manufacturer); 
     1020    DetectorNode detectorNode = getDetectorNode(instrumentIndex, detectorIndex, true); 
     1021    detectorNode.setManufacturer(manufacturer); 
    9701022  } 
    9711023 
     
    9731025  public void setDetectorModel(String model, int instrumentIndex, int detectorIndex) { 
    9741026    if (model == null) return; 
    975     DetectorNode detector = getDetectorNode(instrumentIndex, detectorIndex, true); 
    976     detector.setModel(model); 
     1027    DetectorNode detectorNode = getDetectorNode(instrumentIndex, detectorIndex, true); 
     1028    detectorNode.setModel(model); 
    9771029  } 
    9781030 
     
    9801032  public void setDetectorOffset(Float offset, int instrumentIndex, int detectorIndex) { 
    9811033    if (offset == null) return; 
    982     DetectorNode detector = getDetectorNode(instrumentIndex, detectorIndex, true); 
    983     detector.setOffset(offset); 
     1034    DetectorNode detectorNode = getDetectorNode(instrumentIndex, detectorIndex, true); 
     1035    detectorNode.setOffset(offset); 
    9841036  } 
    9851037 
     
    9871039  public void setDetectorSerialNumber(String serialNumber, int instrumentIndex, int detectorIndex) { 
    9881040    if (serialNumber == null) return; 
    989     DetectorNode detector = getDetectorNode(instrumentIndex, detectorIndex, true); 
    990     detector.setSerialNumber(serialNumber); 
     1041    DetectorNode detectorNode = getDetectorNode(instrumentIndex, detectorIndex, true); 
     1042    detectorNode.setSerialNumber(serialNumber); 
    9911043  } 
    9921044 
     
    9941046  public void setDetectorType(String type, int instrumentIndex, int detectorIndex) { 
    9951047    if (type == null) return; 
    996     DetectorNode detector = getDetectorNode(instrumentIndex, detectorIndex, true); 
    997     detector.setType(type); 
     1048    DetectorNode detectorNode = getDetectorNode(instrumentIndex, detectorIndex, true); 
     1049    detectorNode.setType(type); 
    9981050  } 
    9991051 
     
    10011053  public void setDetectorVoltage(Float voltage, int instrumentIndex, int detectorIndex) { 
    10021054    if (voltage == null) return; 
    1003     DetectorNode detector = getDetectorNode(instrumentIndex, detectorIndex, true); 
    1004     detector.setVoltage(voltage); 
     1055    DetectorNode detectorNode = getDetectorNode(instrumentIndex, detectorIndex, true); 
     1056    detectorNode.setVoltage(voltage); 
    10051057  } 
    10061058 
     
    10101062  public void setDetectorSettingsDetector(String detector, int imageIndex, int logicalChannelIndex) { 
    10111063    if (detector == null) return; 
    1012     DetectorRefNode detectorRef = getDetectorRefNode(imageIndex, logicalChannelIndex, true); 
    1013     detectorRef.setNodeID(detector); 
     1064    DetectorRefNode detectorRefNode = getDetectorRefNode(imageIndex, logicalChannelIndex, true); 
     1065    detectorRefNode.setNodeID(detector); 
    10141066  } 
    10151067 
     
    10171069  public void setDetectorSettingsGain(Float gain, int imageIndex, int logicalChannelIndex) { 
    10181070    if (gain == null) return; 
    1019     DetectorRefNode detectorRef = getDetectorRefNode(imageIndex, logicalChannelIndex, true); 
    1020     detectorRef.setGain(gain); 
     1071    DetectorRefNode detectorRefNode = getDetectorRefNode(imageIndex, logicalChannelIndex, true); 
     1072    detectorRefNode.setGain(gain); 
    10211073  } 
    10221074 
     
    10241076  public void setDetectorSettingsOffset(Float offset, int imageIndex, int logicalChannelIndex) { 
    10251077    if (offset == null) return; 
    1026     DetectorRefNode detectorRef = getDetectorRefNode(imageIndex, logicalChannelIndex, true); 
    1027     detectorRef.setOffset(offset); 
     1078    DetectorRefNode detectorRefNode = getDetectorRefNode(imageIndex, logicalChannelIndex, true); 
     1079    detectorRefNode.setOffset(offset); 
    10281080  } 
    10291081 
     
    10331085  public void setDimensionsPhysicalSizeX(Float physicalSizeX, int imageIndex, int pixelsIndex) { 
    10341086    if (physicalSizeX == null) return; 
    1035     PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, true); 
    1036     pixels.setPhysicalSizeX(physicalSizeX); 
     1087    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
     1088    pixelsNode.setPhysicalSizeX(physicalSizeX); 
    10371089  } 
    10381090 
     
    10401092  public void setDimensionsPhysicalSizeY(Float physicalSizeY, int imageIndex, int pixelsIndex) { 
    10411093    if (physicalSizeY == null) return; 
    1042     PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, true); 
    1043     pixels.setPhysicalSizeY(physicalSizeY); 
     1094    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
     1095    pixelsNode.setPhysicalSizeY(physicalSizeY); 
    10441096  } 
    10451097 
     
    10471099  public void setDimensionsPhysicalSizeZ(Float physicalSizeZ, int imageIndex, int pixelsIndex) { 
    10481100    if (physicalSizeZ == null) return; 
    1049     PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, true); 
    1050     pixels.setPhysicalSizeZ(physicalSizeZ); 
     1101    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
     1102    pixelsNode.setPhysicalSizeZ(physicalSizeZ); 
    10511103  } 
    10521104 
     
    10541106  public void setDimensionsTimeIncrement(Float timeIncrement, int imageIndex, int pixelsIndex) { 
    10551107    if (timeIncrement == null) return; 
    1056     PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, true); 
    1057     pixels.setTimeIncrement(timeIncrement); 
     1108    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
     1109    pixelsNode.setTimeIncrement(timeIncrement); 
    10581110  } 
    10591111 
     
    10611113  public void setDimensionsWaveIncrement(Integer waveIncrement, int imageIndex, int pixelsIndex) { 
    10621114    if (waveIncrement == null) return; 
    1063     PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, true); 
    1064     pixels.setWaveIncrement(waveIncrement); 
     1115    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
     1116    pixelsNode.setWaveIncrement(waveIncrement); 
    10651117  } 
    10661118 
     
    10681120  public void setDimensionsWaveStart(Integer waveStart, int imageIndex, int pixelsIndex) { 
    10691121    if (waveStart == null) return; 
    1070     PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, true); 
    1071     pixels.setWaveStart(waveStart); 
     1122    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
     1123    pixelsNode.setWaveStart(waveStart); 
    10721124  } 
    10731125 
     
    10771129  public void setDisplayOptionsID(String id, int imageIndex) { 
    10781130    if (id == null) return; 
    1079     DisplayOptionsNode displayOptions = getDisplayOptionsNode(imageIndex, true); 
    1080     displayOptions.setNodeID(id); 
     1131    DisplayOptionsNode displayOptionsNode = getDisplayOptionsNode(imageIndex, true); 
     1132    displayOptionsNode.setNodeID(id); 
    10811133  } 
    10821134 
     
    10841136  public void setDisplayOptionsZoom(Float zoom, int imageIndex) { 
    10851137    if (zoom == null) return; 
    1086     DisplayOptionsNode displayOptions = getDisplayOptionsNode(imageIndex, true); 
    1087     displayOptions.setZoom(zoom); 
     1138    DisplayOptionsNode displayOptionsNode = getDisplayOptionsNode(imageIndex, true); 
     1139    displayOptionsNode.setZoom(zoom); 
    10881140  } 
    10891141 
     
    10931145  public void setDisplayOptionsProjectionZStart(Integer zStart, int imageIndex) { 
    10941146    if (zStart == null) return; 
    1095     ProjectionNode projection = getProjectionNode(imageIndex, true); 
    1096     projection.setZStart(zStart); 
     1147    ProjectionNode projectionNode = getProjectionNode(imageIndex, true); 
     1148    projectionNode.setZStart(zStart); 
    10971149  } 
    10981150 
     
    11001152  public void setDisplayOptionsProjectionZStop(Integer zStop, int imageIndex) { 
    11011153    if (zStop == null) return; 
    1102     ProjectionNode projection = getProjectionNode(imageIndex, true); 
    1103     projection.setZStop(zStop); 
     1154    ProjectionNode projectionNode = getProjectionNode(imageIndex, true); 
     1155    projectionNode.setZStop(zStop); 
    11041156  } 
    11051157 
     
    11091161  public void setDisplayOptionsTimeTStart(Integer tStart, int imageIndex) { 
    11101162    if (tStart == null) return; 
    1111     TimeNode time = getTimeNode(imageIndex, true); 
    1112     time.setTStart(tStart); 
     1163    TimeNode timeNode = getTimeNode(imageIndex, true); 
     1164    timeNode.setTStart(tStart); 
    11131165  } 
    11141166 
     
    11161168  public void setDisplayOptionsTimeTStop(Integer tStop, int imageIndex) { 
    11171169    if (tStop == null) return; 
    1118     TimeNode time = getTimeNode(imageIndex, true); 
    1119     time.setTStop(tStop); 
     1170    TimeNode timeNode = getTimeNode(imageIndex, true); 
     1171    timeNode.setTStop(tStop); 
    11201172  } 
    11211173 
     
    11251177  public void setExperimenterEmail(String email, int experimenterIndex) { 
    11261178    if (email == null) return; 
    1127     ExperimenterNode experimenter = getExperimenterNode(experimenterIndex, true); 
    1128     experimenter.setEmail(email); 
     1179    ExperimenterNode experimenterNode = getExperimenterNode(experimenterIndex, true); 
     1180    experimenterNode.setEmail(email); 
    11291181  } 
    11301182 
     
    11321184  public void setExperimenterFirstName(String firstName, int experimenterIndex) { 
    11331185    if (firstName == null) return; 
    1134     ExperimenterNode experimenter = getExperimenterNode(experimenterIndex, true); 
    1135     experimenter.setFirstName(firstName); 
     1186    ExperimenterNode experimenterNode = getExperimenterNode(experimenterIndex, true); 
     1187    experimenterNode.setFirstName(firstName); 
    11361188  } 
    11371189 
     
    11391191  public void setExperimenterID(String id, int experimenterIndex) { 
    11401192    if (id == null) return; 
    1141     ExperimenterNode experimenter = getExperimenterNode(experimenterIndex, true); 
    1142     experimenter.setNodeID(id); 
     1193    ExperimenterNode experimenterNode = getExperimenterNode(experimenterIndex, true); 
     1194    experimenterNode.setNodeID(id); 
    11431195  } 
    11441196 
     
    11461198  public void setExperimenterInstitution(String institution, int experimenterIndex) { 
    11471199    if (institution == null) return; 
    1148     ExperimenterNode experimenter = getExperimenterNode(experimenterIndex, true); 
    1149     experimenter.setInstitution(institution); 
     1200    ExperimenterNode experimenterNode = getExperimenterNode(experimenterIndex, true); 
     1201    experimenterNode.setInstitution(institution); 
    11501202  } 
    11511203 
     
    11531205  public void setExperimenterLastName(String lastName, int experimenterIndex) { 
    11541206    if (lastName == null) return; 
    1155     ExperimenterNode experimenter = getExperimenterNode(experimenterIndex, true); 
    1156     experimenter.setLastName(lastName); 
     1207    ExperimenterNode experimenterNode = getExperimenterNode(experimenterIndex, true); 
     1208    experimenterNode.setLastName(lastName); 
    11571209  } 
    11581210 
     
    11621214  public void setFilamentType(String type, int instrumentIndex, int lightSourceIndex) { 
    11631215    if (type == null) return; 
    1164     FilamentNode filament = getFilamentNode(instrumentIndex, lightSourceIndex, true); 
    1165     filament.setType(type); 
     1216    FilamentNode filamentNode = getFilamentNode(instrumentIndex, lightSourceIndex, true); 
     1217    filamentNode.setType(type); 
    11661218  } 
    11671219 
     
    11711223  public void setImageCreationDate(String creationDate, int imageIndex) { 
    11721224    if (creationDate == null) return; 
    1173     ImageNode image = getImageNode(imageIndex, true); 
    1174     image.setCreationDate(creationDate); 
     1225    ImageNode imageNode = getImageNode(imageIndex, true); 
     1226    imageNode.setCreationDate(creationDate); 
    11751227  } 
    11761228 
     
    11781230  public void setImageDescription(String description, int imageIndex) { 
    11791231    if (description == null) return; 
    1180     ImageNode image = getImageNode(imageIndex, true); 
    1181     image.setDescription(description); 
     1232    ImageNode imageNode = getImageNode(imageIndex, true); 
     1233    imageNode.setDescription(description); 
    11821234  } 
    11831235 
     
    11851237  public void setImageID(String id, int imageIndex) { 
    11861238    if (id == null) return; 
    1187     ImageNode image = getImageNode(imageIndex, true); 
    1188     image.setNodeID(id); 
     1239    ImageNode imageNode = getImageNode(imageIndex, true); 
     1240    imageNode.setNodeID(id); 
    11891241  } 
    11901242 
     
    11921244  public void setImageName(String name, int imageIndex) { 
    11931245    if (name == null) return; 
    1194     ImageNode image = getImageNode(imageIndex, true); 
    1195     image.setName(name); 
     1246    ImageNode imageNode = getImageNode(imageIndex, true); 
     1247    imageNode.setName(name); 
    11961248  } 
    11971249 
     
    12011253  public void setImagingEnvironmentAirPressure(Float airPressure, int imageIndex) { 
    12021254    if (airPressure == null) return; 
    1203     ImagingEnvironmentNode imagingEnvironment = getImagingEnvironmentNode(imageIndex, true); 
    1204     imagingEnvironment.setAirPressure(airPressure); 
     1255    ImagingEnvironmentNode imagingEnvironmentNode = getImagingEnvironmentNode(imageIndex, true); 
     1256    imagingEnvironmentNode.setAirPressure(airPressure); 
    12051257  } 
    12061258 
     
    12081260  public void setImagingEnvironmentCO2Percent(Float cO2Percent, int imageIndex) { 
    12091261    if (cO2Percent == null) return; 
    1210     ImagingEnvironmentNode imagingEnvironment = getImagingEnvironmentNode(imageIndex, true); 
    1211     imagingEnvironment.setCO2Percent(cO2Percent); 
     1262    ImagingEnvironmentNode imagingEnvironmentNode = getImagingEnvironmentNode(imageIndex, true); 
     1263    imagingEnvironmentNode.setCO2Percent(cO2Percent); 
    12121264  } 
    12131265 
     
    12151267  public void setImagingEnvironmentHumidity(Float humidity, int imageIndex) { 
    12161268    if (humidity == null) return; 
    1217     ImagingEnvironmentNode imagingEnvironment = getImagingEnvironmentNode(imageIndex, true); 
    1218     imagingEnvironment.setHumidity(humidity); 
     1269    ImagingEnvironmentNode imagingEnvironmentNode = getImagingEnvironmentNode(imageIndex, true); 
     1270    imagingEnvironmentNode.setHumidity(humidity); 
    12191271  } 
    12201272 
     
    12221274  public void setImagingEnvironmentTemperature(Float temperature, int imageIndex) { 
    12231275    if (temperature == null) return; 
    1224     ImagingEnvironmentNode imagingEnvironment = getImagingEnvironmentNode(imageIndex, true); 
    1225     imagingEnvironment.setTemperature(temperature); 
     1276    ImagingEnvironmentNode imagingEnvironmentNode = getImagingEnvironmentNode(imageIndex, true); 
     1277    imagingEnvironmentNode.setTemperature(temperature); 
    12261278  } 
    12271279 
     
    12311283  public void setInstrumentID(String id, int instrumentIndex) { 
    12321284    if (id == null) return; 
    1233     InstrumentNode instrument = getInstrumentNode(instrumentIndex, true); 
    1234     instrument.setNodeID(id); 
     1285    InstrumentNode instrumentNode = getInstrumentNode(instrumentIndex, true); 
     1286    instrumentNode.setNodeID(id); 
    12351287  } 
    12361288 
     
    12401292  public void setLaserFrequencyMultiplication(Integer frequencyMultiplication, int instrumentIndex, int lightSourceIndex) { 
    12411293    if (frequencyMultiplication == null) return; 
    1242     LaserNode laser = getLaserNode(instrumentIndex, lightSourceIndex, true); 
    1243     laser.setFrequencyMultiplication(frequencyMultiplication); 
     1294    LaserNode laserNode = getLaserNode(instrumentIndex, lightSourceIndex, true); 
     1295    laserNode.setFrequencyMultiplication(frequencyMultiplication); 
    12441296  } 
    12451297 
     
    12471299  public void setLaserLaserMedium(String laserMedium, int instrumentIndex, int lightSourceIndex) { 
    12481300    if (laserMedium == null) return; 
    1249     LaserNode laser = getLaserNode(instrumentIndex, lightSourceIndex, true); 
    1250     laser.setLaserMedium(laserMedium); 
     1301    LaserNode laserNode = getLaserNode(instrumentIndex, lightSourceIndex, true); 
     1302    laserNode.setLaserMedium(laserMedium); 
    12511303  } 
    12521304 
     
    12541306  public void setLaserPulse(String pulse, int instrumentIndex, int lightSourceIndex) { 
    12551307    if (pulse == null) return; 
    1256     LaserNode laser = getLaserNode(instrumentIndex, lightSourceIndex, true); 
    1257     laser.setPulse(pulse); 
     1308    LaserNode laserNode = getLaserNode(instrumentIndex, lightSourceIndex, true); 
     1309    laserNode.setPulse(pulse); 
    12581310  } 
    12591311 
     
    12611313  public void setLaserTuneable(Boolean tuneable, int instrumentIndex, int lightSourceIndex) { 
    12621314    if (tuneable == null) return; 
    1263     LaserNode laser = getLaserNode(instrumentIndex, lightSourceIndex, true); 
    1264     laser.setTuneable(tuneable); 
     1315    LaserNode laserNode = getLaserNode(instrumentIndex, lightSourceIndex, true); 
     1316    laserNode.setTuneable(tuneable); 
    12651317  } 
    12661318 
     
    12681320  public void setLaserType(String type, int instrumentIndex, int lightSourceIndex) { 
    12691321    if (type == null) return; 
    1270     LaserNode laser = getLaserNode(instrumentIndex, lightSourceIndex, true); 
    1271     laser.setType(type); 
     1322    LaserNode laserNode = getLaserNode(instrumentIndex, lightSourceIndex, true); 
     1323    laserNode.setType(type); 
    12721324  } 
    12731325 
     
    12751327  public void setLaserWavelength(Integer wavelength, int instrumentIndex, int lightSourceIndex) { 
    12761328    if (wavelength == null) return; 
    1277     LaserNode laser = getLaserNode(instrumentIndex, lightSourceIndex, true); 
    1278     laser.setWavelength(wavelength); 
     1329    LaserNode laserNode = getLaserNode(instrumentIndex, lightSourceIndex, true); 
     1330    laserNode.setWavelength(wavelength); 
    12791331  } 
    12801332 
     
    12841336  public void setLightSourceID(String id, int instrumentIndex, int lightSourceIndex) { 
    12851337    if (id == null) return; 
    1286     LightSourceNode lightSource = getLightSourceNode(instrumentIndex, lightSourceIndex, true); 
    1287     lightSource.setNodeID(id); 
     1338    LightSourceNode lightSourceNode = getLightSourceNode(instrumentIndex, lightSourceIndex, true); 
     1339    lightSourceNode.setNodeID(id); 
    12881340  } 
    12891341 
     
    12911343  public void setLightSourceManufacturer(String manufacturer, int instrumentIndex, int lightSourceIndex) { 
    12921344    if (manufacturer == null) return; 
    1293     LightSourceNode lightSource = getLightSourceNode(instrumentIndex, lightSourceIndex, true); 
    1294     lightSource.setManufacturer(manufacturer); 
     1345    LightSourceNode lightSourceNode = getLightSourceNode(instrumentIndex, lightSourceIndex, true); 
     1346    lightSourceNode.setManufacturer(manufacturer); 
    12951347  } 
    12961348 
     
    12981350  public void setLightSourceModel(String model, int instrumentIndex, int lightSourceIndex) { 
    12991351    if (model == null) return; 
    1300     LightSourceNode lightSource = getLightSourceNode(instrumentIndex, lightSourceIndex, true); 
    1301     lightSource.setModel(model); 
     1352    LightSourceNode lightSourceNode = getLightSourceNode(instrumentIndex, lightSourceIndex, true); 
     1353    lightSourceNode.setModel(model); 
    13021354  } 
    13031355 
     
    13101362  public void setLightSourceSerialNumber(String serialNumber, int instrumentIndex, int lightSourceIndex) { 
    13111363    if (serialNumber == null) return; 
    1312     LightSourceNode lightSource = getLightSourceNode(instrumentIndex, lightSourceIndex, true); 
    1313     lightSource.setSerialNumber(serialNumber); 
     1364    LightSourceNode lightSourceNode = getLightSourceNode(instrumentIndex, lightSourceIndex, true); 
     1365    lightSourceNode.setSerialNumber(serialNumber); 
    13141366  } 
    13151367 
     
    13191371  public void setLightSourceSettingsAttenuation(Float attenuation, int imageIndex, int logicalChannelIndex) { 
    13201372    if (attenuation == null) return; 
    1321     LightSourceRefNode lightSourceRef = getLightSourceRefNode(imageIndex, logicalChannelIndex, true); 
    1322     lightSourceRef.setAttenuation(attenuation); 
     1373    LightSourceRefNode lightSourceRefNode = getLightSourceRefNode(imageIndex, logicalChannelIndex, true); 
     1374    lightSourceRefNode.setAttenuation(attenuation); 
    13231375  } 
    13241376 
     
    13261378  public void setLightSourceSettingsLightSource(String lightSource, int imageIndex, int logicalChannelIndex) { 
    13271379    if (lightSource == null) return; 
    1328     LightSourceRefNode lightSourceRef = getLightSourceRefNode(imageIndex, logicalChannelIndex, true); 
    1329     lightSourceRef.setNodeID(lightSource); 
     1380    LightSourceRefNode lightSourceRefNode = getLightSourceRefNode(imageIndex, logicalChannelIndex, true); 
     1381    lightSourceRefNode.setNodeID(lightSource); 
    13301382  } 
    13311383 
     
    13331385  public void setLightSourceSettingsWavelength(Integer wavelength, int imageIndex, int logicalChannelIndex) { 
    13341386    if (wavelength == null) return; 
    1335     LightSourceRefNode lightSourceRef = getLightSourceRefNode(imageIndex, logicalChannelIndex, true); 
    1336     lightSourceRef.setWavelength(wavelength); 
     1387    LightSourceRefNode lightSourceRefNode = getLightSourceRefNode(imageIndex, logicalChannelIndex, true); 
     1388    lightSourceRefNode.setWavelength(wavelength); 
    13371389  } 
    13381390 
     
    13421394  public void setLogicalChannelContrastMethod(String contrastMethod, int imageIndex, int logicalChannelIndex) { 
    13431395    if (contrastMethod == null) return; 
    1344     LogicalChannelNode logicalChannel = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
    1345     logicalChannel.setContrastMethod(contrastMethod); 
     1396    LogicalChannelNode logicalChannelNode = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
     1397    logicalChannelNode.setContrastMethod(contrastMethod); 
    13461398  } 
    13471399 
     
    13491401  public void setLogicalChannelEmWave(Integer emWave, int imageIndex, int logicalChannelIndex) { 
    13501402    if (emWave == null) return; 
    1351     LogicalChannelNode logicalChannel = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
    1352     logicalChannel.setEmWave(emWave); 
     1403    LogicalChannelNode logicalChannelNode = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
     1404    logicalChannelNode.setEmWave(emWave); 
    13531405  } 
    13541406 
     
    13561408  public void setLogicalChannelExWave(Integer exWave, int imageIndex, int logicalChannelIndex) { 
    13571409    if (exWave == null) return; 
    1358     LogicalChannelNode logicalChannel = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
    1359     logicalChannel.setExWave(exWave); 
     1410    LogicalChannelNode logicalChannelNode = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
     1411    logicalChannelNode.setExWave(exWave); 
    13601412  } 
    13611413 
     
    13631415  public void setLogicalChannelFluor(String fluor, int imageIndex, int logicalChannelIndex) { 
    13641416    if (fluor == null) return; 
    1365     LogicalChannelNode logicalChannel = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
    1366     logicalChannel.setFluor(fluor); 
     1417    LogicalChannelNode logicalChannelNode = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
     1418    logicalChannelNode.setFluor(fluor); 
    13671419  } 
    13681420 
     
    13701422  public void setLogicalChannelID(String id, int imageIndex, int logicalChannelIndex) { 
    13711423    if (id == null) return; 
    1372     LogicalChannelNode logicalChannel = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
    1373     logicalChannel.setNodeID(id); 
     1424    LogicalChannelNode logicalChannelNode = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
     1425    logicalChannelNode.setNodeID(id); 
    13741426  } 
    13751427 
     
    13771429  public void setLogicalChannelIlluminationType(String illuminationType, int imageIndex, int logicalChannelIndex) { 
    13781430    if (illuminationType == null) return; 
    1379     LogicalChannelNode logicalChannel = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
    1380     logicalChannel.setIlluminationType(illuminationType); 
     1431    LogicalChannelNode logicalChannelNode = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
     1432    logicalChannelNode.setIlluminationType(illuminationType); 
    13811433  } 
    13821434 
     
    13841436  public void setLogicalChannelMode(String mode, int imageIndex, int logicalChannelIndex) { 
    13851437    if (mode == null) return; 
    1386     LogicalChannelNode logicalChannel = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
    1387     logicalChannel.setMode(mode); 
     1438    LogicalChannelNode logicalChannelNode = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
     1439    logicalChannelNode.setMode(mode); 
    13881440  } 
    13891441 
     
    13911443  public void setLogicalChannelName(String name, int imageIndex, int logicalChannelIndex) { 
    13921444    if (name == null) return; 
    1393     LogicalChannelNode logicalChannel = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
    1394     logicalChannel.setName(name); 
     1445    LogicalChannelNode logicalChannelNode = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
     1446    logicalChannelNode.setName(name); 
    13951447  } 
    13961448 
     
    13981450  public void setLogicalChannelNdFilter(Float ndFilter, int imageIndex, int logicalChannelIndex) { 
    13991451    if (ndFilter == null) return; 
    1400     LogicalChannelNode logicalChannel = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
    1401     logicalChannel.setNdFilter(ndFilter); 
     1452    LogicalChannelNode logicalChannelNode = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
     1453    logicalChannelNode.setNdFilter(ndFilter); 
    14021454  } 
    14031455 
     
    14051457  public void setLogicalChannelPhotometricInterpretation(String photometricInterpretation, int imageIndex, int logicalChannelIndex) { 
    14061458    if (photometricInterpretation == null) return; 
    1407     LogicalChannelNode logicalChannel = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
    1408     logicalChannel.setPhotometricInterpretation(photometricInterpretation); 
     1459    LogicalChannelNode logicalChannelNode = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
     1460    logicalChannelNode.setPhotometricInterpretation(photometricInterpretation); 
    14091461  } 
    14101462 
     
    14121464  public void setLogicalChannelPinholeSize(Integer pinholeSize, int imageIndex, int logicalChannelIndex) { 
    14131465    if (pinholeSize == null) return; 
    1414     LogicalChannelNode logicalChannel = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
    1415     logicalChannel.setPinholeSize(pinholeSize); 
     1466    LogicalChannelNode logicalChannelNode = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
     1467    logicalChannelNode.setPinholeSize(pinholeSize); 
    14161468  } 
    14171469 
     
    14191471  public void setLogicalChannelPockelCellSetting(Integer pockelCellSetting, int imageIndex, int logicalChannelIndex) { 
    14201472    if (pockelCellSetting == null) return; 
    1421     LogicalChannelNode logicalChannel = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
    1422     logicalChannel.setPockelCellSetting(pockelCellSetting); 
     1473    LogicalChannelNode logicalChannelNode = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
     1474    logicalChannelNode.setPockelCellSetting(pockelCellSetting); 
    14231475  } 
    14241476 
     
    14261478  public void setLogicalChannelSamplesPerPixel(Integer samplesPerPixel, int imageIndex, int logicalChannelIndex) { 
    14271479    if (samplesPerPixel == null) return; 
    1428     LogicalChannelNode logicalChannel = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
    1429     logicalChannel.setSamplesPerPixel(samplesPerPixel); 
     1480    LogicalChannelNode logicalChannelNode = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
     1481    logicalChannelNode.setSamplesPerPixel(samplesPerPixel); 
    14301482  } 
    14311483 
     
    14351487  public void setOTFID(String id, int instrumentIndex, int otfIndex) { 
    14361488    if (id == null) return; 
    1437     OTFNode otf = getOTFNode(instrumentIndex, otfIndex, true); 
    1438     otf.setNodeID(id); 
     1489    OTFNode otfNode = getOTFNode(instrumentIndex, otfIndex, true); 
     1490    otfNode.setNodeID(id); 
    14391491  } 
    14401492 
     
    14421494  public void setOTFOpticalAxisAveraged(Boolean opticalAxisAveraged, int instrumentIndex, int otfIndex) { 
    14431495    if (opticalAxisAveraged == null) return; 
    1444     OTFNode otf = getOTFNode(instrumentIndex, otfIndex, true); 
    1445     otf.setOpticalAxisAveraged(opticalAxisAveraged); 
     1496    OTFNode otfNode = getOTFNode(instrumentIndex, otfIndex, true); 
     1497    otfNode.setOpticalAxisAveraged(opticalAxisAveraged); 
    14461498  } 
    14471499 
     
    14491501  public void setOTFPixelType(String pixelType, int instrumentIndex, int otfIndex) { 
    14501502    if (pixelType == null) return; 
    1451     OTFNode otf = getOTFNode(instrumentIndex, otfIndex, true); 
    1452     otf.setPixelType(pixelType); 
     1503    OTFNode otfNode = getOTFNode(instrumentIndex, otfIndex, true); 
     1504    otfNode.setPixelType(pixelType); 
    14531505  } 
    14541506 
     
    14561508  public void setOTFSizeX(Integer sizeX, int instrumentIndex, int otfIndex) { 
    14571509    if (sizeX == null) return; 
    1458     OTFNode otf = getOTFNode(instrumentIndex, otfIndex, true); 
    1459     otf.setSizeX(sizeX); 
     1510    OTFNode otfNode = getOTFNode(instrumentIndex, otfIndex, true); 
     1511    otfNode.setSizeX(sizeX); 
    14601512  } 
    14611513 
     
    14631515  public void setOTFSizeY(Integer sizeY, int instrumentIndex, int otfIndex) { 
    14641516    if (sizeY == null) return; 
    1465     OTFNode otf = getOTFNode(instrumentIndex, otfIndex, true); 
    1466     otf.setSizeY(sizeY); 
     1517    OTFNode otfNode = getOTFNode(instrumentIndex, otfIndex, true); 
     1518    otfNode.setSizeY(sizeY); 
    14671519  } 
    14681520 
     
    14721524  public void setObjectiveCalibratedMagnification(Float calibratedMagnification, int instrumentIndex, int objectiveIndex) { 
    14731525    if (calibratedMagnification == null) return; 
    1474     ObjectiveNode objective = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
    1475     objective.setCalibratedMagnification(calibratedMagnification); 
     1526    ObjectiveNode objectiveNode = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
     1527    objectiveNode.setCalibratedMagnification(calibratedMagnification); 
    14761528  } 
    14771529 
     
    14791531  public void setObjectiveCorrection(String correction, int instrumentIndex, int objectiveIndex) { 
    14801532    if (correction == null) return; 
    1481     ObjectiveNode objective = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
    1482     objective.setCorrection(correction); 
     1533    ObjectiveNode objectiveNode = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
     1534    objectiveNode.setCorrection(correction); 
    14831535  } 
    14841536 
     
    14861538  public void setObjectiveID(String id, int instrumentIndex, int objectiveIndex) { 
    14871539    if (id == null) return; 
    1488     ObjectiveNode objective = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
    1489     objective.setNodeID(id); 
     1540    ObjectiveNode objectiveNode = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
     1541    objectiveNode.setNodeID(id); 
    14901542  } 
    14911543 
     
    14931545  public void setObjectiveImmersion(String immersion, int instrumentIndex, int objectiveIndex) { 
    14941546    if (immersion == null) return; 
    1495     ObjectiveNode objective = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
    1496     objective.setImmersion(immersion); 
     1547    ObjectiveNode objectiveNode = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
     1548    objectiveNode.setImmersion(immersion); 
    14971549  } 
    14981550 
     
    15001552  public void setObjectiveLensNA(Float lensNA, int instrumentIndex, int objectiveIndex) { 
    15011553    if (lensNA == null) return; 
    1502     ObjectiveNode objective = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
    1503     objective.setLensNA(lensNA); 
     1554    ObjectiveNode objectiveNode = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
     1555    objectiveNode.setLensNA(lensNA); 
    15041556  } 
    15051557 
     
    15071559  public void setObjectiveManufacturer(String manufacturer, int instrumentIndex, int objectiveIndex) { 
    15081560    if (manufacturer == null) return; 
    1509     ObjectiveNode objective = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
    1510     objective.setManufacturer(manufacturer); 
     1561    ObjectiveNode objectiveNode = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
     1562    objectiveNode.setManufacturer(manufacturer); 
    15111563  } 
    15121564 
     
    15141566  public void setObjectiveModel(String model, int instrumentIndex, int objectiveIndex) { 
    15151567    if (model == null) return; 
    1516     ObjectiveNode objective = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
    1517     objective.setModel(model); 
     1568    ObjectiveNode objectiveNode = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
     1569    objectiveNode.setModel(model); 
    15181570  } 
    15191571 
     
    15211573  public void setObjectiveNominalMagnification(Integer nominalMagnification, int instrumentIndex, int objectiveIndex) { 
    15221574    if (nominalMagnification == null) return; 
    1523     ObjectiveNode objective = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
    1524     objective.setNominalMagnification(nominalMagnification); 
     1575    ObjectiveNode objectiveNode = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
     1576    objectiveNode.setNominalMagnification(nominalMagnification); 
    15251577  } 
    15261578 
     
    15281580  public void setObjectiveSerialNumber(String serialNumber, int instrumentIndex, int objectiveIndex) { 
    15291581    if (serialNumber == null) return; 
    1530     ObjectiveNode objective = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
    1531     objective.setSerialNumber(serialNumber); 
     1582    ObjectiveNode objectiveNode = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
     1583    objectiveNode.setSerialNumber(serialNumber); 
    15321584  } 
    15331585 
     
    15351587  public void setObjectiveWorkingDistance(Float workingDistance, int instrumentIndex, int objectiveIndex) { 
    15361588    if (workingDistance == null) return; 
    1537     ObjectiveNode objective = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
    1538     objective.setWorkingDistance(workingDistance); 
     1589    ObjectiveNode objectiveNode = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
     1590    objectiveNode.setWorkingDistance(workingDistance); 
    15391591  } 
    15401592 
     
    15441596  public void setPixelsBigEndian(Boolean bigEndian, int imageIndex, int pixelsIndex) { 
    15451597    if (bigEndian == null) return; 
    1546     PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, true); 
    1547     pixels.setBigEndian(bigEndian); 
     1598    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
     1599    pixelsNode.setBigEndian(bigEndian); 
    15481600  } 
    15491601 
     
    15511603  public void setPixelsDimensionOrder(String dimensionOrder, int imageIndex, int pixelsIndex) { 
    15521604    if (dimensionOrder == null) return; 
    1553     PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, true); 
    1554     pixels.setDimensionOrder(dimensionOrder); 
     1605    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
     1606    pixelsNode.setDimensionOrder(dimensionOrder); 
    15551607  } 
    15561608 
     
    15581610  public void setPixelsID(String id, int imageIndex, int pixelsIndex) { 
    15591611    if (id == null) return; 
    1560     PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, true); 
    1561     pixels.setNodeID(id); 
     1612    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
     1613    pixelsNode.setNodeID(id); 
    15621614  } 
    15631615 
     
    15651617  public void setPixelsPixelType(String pixelType, int imageIndex, int pixelsIndex) { 
    15661618    if (pixelType == null) return; 
    1567     PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, true); 
    1568     pixels.setPixelType(pixelType); 
     1619    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
     1620    pixelsNode.setPixelType(pixelType); 
    15691621  } 
    15701622 
     
    15721624  public void setPixelsSizeC(Integer sizeC, int imageIndex, int pixelsIndex) { 
    15731625    if (sizeC == null) return; 
    1574     PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, true); 
    1575     pixels.setSizeC(sizeC); 
     1626    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
     1627    pixelsNode.setSizeC(sizeC); 
    15761628  } 
    15771629 
     
    15791631  public void setPixelsSizeT(Integer sizeT, int imageIndex, int pixelsIndex) { 
    15801632    if (sizeT == null) return; 
    1581     PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, true); 
    1582     pixels.setSizeT(sizeT); 
     1633    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
     1634    pixelsNode.setSizeT(sizeT); 
    15831635  } 
    15841636 
     
    15861638  public void setPixelsSizeX(Integer sizeX, int imageIndex, int pixelsIndex) { 
    15871639    if (sizeX == null) return; 
    1588     PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, true); 
    1589     pixels.setSizeX(sizeX); 
     1640    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
     1641    pixelsNode.setSizeX(sizeX); 
    15901642  } 
    15911643 
     
    15931645  public void setPixelsSizeY(Integer sizeY, int imageIndex, int pixelsIndex) { 
    15941646    if (sizeY == null) return; 
    1595     PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, true); 
    1596     pixels.setSizeY(sizeY); 
     1647    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
     1648    pixelsNode.setSizeY(sizeY); 
    15971649  } 
    15981650 
     
    16001652  public void setPixelsSizeZ(Integer sizeZ, int imageIndex, int pixelsIndex) { 
    16011653    if (sizeZ == null) return; 
    1602     PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, true); 
    1603     pixels.setSizeZ(sizeZ); 
     1654    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
     1655    pixelsNode.setSizeZ(sizeZ); 
    16041656  } 
    16051657 
     
    16091661  public void setPlaneTheC(Integer theC, int imageIndex, int pixelsIndex, int planeIndex) { 
    16101662    if (theC == null) return; 
    1611     PlaneNode plane = getPlaneNode(imageIndex, pixelsIndex, planeIndex, true); 
    1612     plane.setTheC(theC); 
     1663    PlaneNode planeNode = getPlaneNode(imageIndex, pixelsIndex, planeIndex, true); 
     1664    planeNode.setTheC(theC); 
    16131665  } 
    16141666 
     
    16161668  public void setPlaneTheT(Integer theT, int imageIndex, int pixelsIndex, int planeIndex) { 
    16171669    if (theT == null) return; 
    1618     PlaneNode plane = getPlaneNode(imageIndex, pixelsIndex, planeIndex, true); 
    1619     plane.setTheT(theT); 
     1670    PlaneNode planeNode = getPlaneNode(imageIndex, pixelsIndex, planeIndex, true); 
     1671    planeNode.setTheT(theT); 
    16201672  } 
    16211673 
     
    16231675  public void setPlaneTheZ(Integer theZ, int imageIndex, int pixelsIndex, int planeIndex) { 
    16241676    if (theZ == null) return; 
    1625     PlaneNode plane = getPlaneNode(imageIndex, pixelsIndex, planeIndex, true); 
    1626     plane.setTheZ(theZ); 
     1677    PlaneNode planeNode = getPlaneNode(imageIndex, pixelsIndex, planeIndex, true); 
     1678    planeNode.setTheZ(theZ); 
    16271679  } 
    16281680 
     
    16321684  public void setPlaneTimingDeltaT(Float deltaT, int imageIndex, int pixelsIndex, int planeIndex) { 
    16331685    if (deltaT == null) return; 
    1634     PlaneTimingNode planeTiming = getPlaneTimingNode(imageIndex, pixelsIndex, planeIndex, true); 
    1635     planeTiming.setDeltaT(deltaT); 
     1686    PlaneTimingNode planeTimingNode = getPlaneTimingNode(imageIndex, pixelsIndex, planeIndex, true); 
     1687    planeTimingNode.setDeltaT(deltaT); 
    16361688  } 
    16371689 
     
    16391691  public void setPlaneTimingExposureTime(Float exposureTime, int imageIndex, int pixelsIndex, int planeIndex) { 
    16401692    if (exposureTime == null) return; 
    1641     PlaneTimingNode planeTiming = getPlaneTimingNode(imageIndex, pixelsIndex, planeIndex, true); 
    1642     planeTiming.setExposureTime(exposureTime); 
     1693    PlaneTimingNode planeTimingNode = getPlaneTimingNode(imageIndex, pixelsIndex, planeIndex, true); 
     1694    planeTimingNode.setExposureTime(exposureTime); 
    16431695  } 
    16441696 
     
    16481700  public void setROIID(String id, int imageIndex, int roiIndex) { 
    16491701    if (id == null) return; 
    1650     ROINode roi = getROINode(imageIndex, roiIndex, true); 
    1651     roi.setNodeID(id); 
     1702    ROINode roiNode = getROINode(imageIndex, roiIndex, true); 
     1703    roiNode.setNodeID(id); 
    16521704  } 
    16531705 
     
    16551707  public void setROIT0(Integer t0, int imageIndex, int roiIndex) { 
    16561708    if (t0 == null) return; 
    1657     ROINode roi = getROINode(imageIndex, roiIndex, true); 
    1658     roi.setT0(t0); 
     1709    ROINode roiNode = getROINode(imageIndex, roiIndex, true); 
     1710    roiNode.setT0(t0); 
    16591711  } 
    16601712 
     
    16621714  public void setROIT1(Integer t1, int imageIndex, int roiIndex) { 
    16631715    if (t1 == null) return; 
    1664     ROINode roi = getROINode(imageIndex, roiIndex, true); 
    1665     roi.setT1(t1); 
     1716    ROINode roiNode = getROINode(imageIndex, roiIndex, true); 
     1717    roiNode.setT1(t1); 
    16661718  } 
    16671719 
     
    16691721  public void setROIX0(Integer x0, int imageIndex, int roiIndex) { 
    16701722    if (x0 == null) return; 
    1671     ROINode roi = getROINode(imageIndex, roiIndex, true); 
    1672     roi.setX0(x0); 
     1723    ROINode roiNode = getROINode(imageIndex, roiIndex, true); 
     1724    roiNode.setX0(x0); 
    16731725  } 
    16741726 
     
    16761728  public void setROIX1(Integer x1, int imageIndex, int roiIndex) { 
    16771729    if (x1 == null) return; 
    1678     ROINode roi = getROINode(imageIndex, roiIndex, true); 
    1679     roi.setX1(x1); 
     1730    ROINode roiNode = getROINode(imageIndex, roiIndex, true); 
     1731    roiNode.setX1(x1); 
    16801732  } 
    16811733 
     
    16831735  public void setROIY0(Integer y0, int imageIndex, int roiIndex) { 
    16841736    if (y0 == null) return; 
    1685     ROINode roi = getROINode(imageIndex, roiIndex, true); 
    1686     roi.setY0(y0); 
     1737    ROINode roiNode = getROINode(imageIndex, roiIndex, true); 
     1738    roiNode.setY0(y0); 
    16871739  } 
    16881740 
     
    16901742  public void setROIY1(Integer y1, int imageIndex, int roiIndex) { 
    16911743    if (y1 == null) return; 
    1692     ROINode roi = getROINode(imageIndex, roiIndex, true); 
    1693     roi.setY1(y1); 
     1744    ROINode roiNode = getROINode(imageIndex, roiIndex, true); 
     1745    roiNode.setY1(y1); 
    16941746  } 
    16951747 
     
    16971749  public void setROIZ0(Integer z0, int imageIndex, int roiIndex) { 
    16981750    if (z0 == null) return; 
    1699     ROINode roi = getROINode(imageIndex, roiIndex, true); 
    1700     roi.setZ0(z0); 
     1751    ROINode roiNode = getROINode(imageIndex, roiIndex, true); 
     1752    roiNode.setZ0(z0); 
    17011753  } 
    17021754 
     
    17041756  public void setROIZ1(Integer z1, int imageIndex, int roiIndex) { 
    17051757    if (z1 == null) return; 
    1706     ROINode roi = getROINode(imageIndex, roiIndex, true); 
    1707     roi.setZ1(z1); 
     1758    ROINode roiNode = getROINode(imageIndex, roiIndex, true); 
     1759    roiNode.setZ1(z1); 
    17081760  } 
    17091761 
     
    17131765  public void setStageLabelName(String name, int imageIndex) { 
    17141766    if (name == null) return; 
    1715     StageLabelNode stageLabel = getStageLabelNode(imageIndex, true); 
    1716     stageLabel.setName(name); 
     1767    StageLabelNode stageLabelNode = getStageLabelNode(imageIndex, true); 
     1768    stageLabelNode.setName(name); 
    17171769  } 
    17181770 
     
    17201772  public void setStageLabelX(Float x, int imageIndex) { 
    17211773    if (x == null) return; 
    1722     StageLabelNode stageLabel = getStageLabelNode(imageIndex, true); 
    1723     stageLabel.setX(x); 
     1774    StageLabelNode stageLabelNode = getStageLabelNode(imageIndex, true); 
     1775    stageLabelNode.setX(x); 
    17241776  } 
    17251777 
     
    17271779  public void setStageLabelY(Float y, int imageIndex) { 
    17281780    if (y == null) return; 
    1729     StageLabelNode stageLabel = getStageLabelNode(imageIndex, true); 
    1730     stageLabel.setY(y); 
     1781    StageLabelNode stageLabelNode = getStageLabelNode(imageIndex, true); 
     1782    stageLabelNode.setY(y); 
    17311783  } 
    17321784 
     
    17341786  public void setStageLabelZ(Float z, int imageIndex) { 
    17351787    if (z == null) return; 
    1736     StageLabelNode stageLabel = getStageLabelNode(imageIndex, true); 
    1737     stageLabel.setZ(z); 
     1788    StageLabelNode stageLabelNode = getStageLabelNode(imageIndex, true); 
     1789    stageLabelNode.setZ(z); 
    17381790  } 
    17391791 
     
    17431795  public void setStagePositionPositionX(Float positionX, int imageIndex, int pixelsIndex, int planeIndex) { 
    17441796    if (positionX == null) return; 
    1745     StagePositionNode stagePosition = getStagePositionNode(imageIndex, pixelsIndex, planeIndex, true); 
    1746     stagePosition.setPositionX(positionX); 
     1797    StagePositionNode stagePositionNode = getStagePositionNode(imageIndex, pixelsIndex, planeIndex, true); 
     1798    stagePositionNode.setPositionX(positionX); 
    17471799  } 
    17481800 
     
    17501802  public void setStagePositionPositionY(Float positionY, int imageIndex, int pixelsIndex, int planeIndex) { 
    17511803    if (positionY == null) return; 
    1752     StagePositionNode stagePosition = getStagePositionNode(imageIndex, pixelsIndex, planeIndex, true); 
    1753     stagePosition.setPositionY(positionY); 
     1804    StagePositionNode stagePositionNode = getStagePositionNode(imageIndex, pixelsIndex, planeIndex, true); 
     1805    stagePositionNode.setPositionY(positionY); 
    17541806  } 
    17551807 
     
    17571809  public void setStagePositionPositionZ(Float positionZ, int imageIndex, int pixelsIndex, int planeIndex) { 
    17581810    if (positionZ == null) return; 
    1759     StagePositionNode stagePosition = getStagePositionNode(imageIndex, pixelsIndex, planeIndex, true); 
    1760     stagePosition.setPositionZ(positionZ); 
     1811    StagePositionNode stagePositionNode = getStagePositionNode(imageIndex, pixelsIndex, planeIndex, true); 
     1812    stagePositionNode.setPositionZ(positionZ); 
     1813  } 
     1814 
     1815  // - TiffData property storage - 
     1816 
     1817  /* @see loci.formats.meta.MetadataStore#setTiffDataFileName(String, int, int, int) */ 
     1818  public void setTiffDataFileName(String fileName, int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     1819    // NB: FileName unsupported for schema version 2007-06 
     1820  } 
     1821 
     1822  /* @see loci.formats.meta.MetadataStore#setTiffDataFirstC(Integer, int, int, int) */ 
     1823  public void setTiffDataFirstC(Integer firstC, int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     1824    if (firstC == null) return; 
     1825    TiffDataNode tiffDataNode = getTiffDataNode(imageIndex, pixelsIndex, tiffDataIndex, true); 
     1826    tiffDataNode.setFirstC(firstC); 
     1827  } 
     1828 
     1829  /* @see loci.formats.meta.MetadataStore#setTiffDataFirstT(Integer, int, int, int) */ 
     1830  public void setTiffDataFirstT(Integer firstT, int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     1831    if (firstT == null) return; 
     1832    TiffDataNode tiffDataNode = getTiffDataNode(imageIndex, pixelsIndex, tiffDataIndex, true); 
     1833    tiffDataNode.setFirstT(firstT); 
     1834  } 
     1835 
     1836  /* @see loci.formats.meta.MetadataStore#setTiffDataFirstZ(Integer, int, int, int) */ 
     1837  public void setTiffDataFirstZ(Integer firstZ, int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     1838    if (firstZ == null) return; 
     1839    TiffDataNode tiffDataNode = getTiffDataNode(imageIndex, pixelsIndex, tiffDataIndex, true); 
     1840    tiffDataNode.setFirstZ(firstZ); 
     1841  } 
     1842 
     1843  /* @see loci.formats.meta.MetadataStore#setTiffDataIFD(Integer, int, int, int) */ 
     1844  public void setTiffDataIFD(Integer ifd, int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     1845    if (ifd == null) return; 
     1846    TiffDataNode tiffDataNode = getTiffDataNode(imageIndex, pixelsIndex, tiffDataIndex, true); 
     1847    tiffDataNode.setIFD(ifd); 
     1848  } 
     1849 
     1850  /* @see loci.formats.meta.MetadataStore#setTiffDataNumPlanes(Integer, int, int, int) */ 
     1851  public void setTiffDataNumPlanes(Integer numPlanes, int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     1852    if (numPlanes == null) return; 
     1853    TiffDataNode tiffDataNode = getTiffDataNode(imageIndex, pixelsIndex, tiffDataIndex, true); 
     1854    tiffDataNode.setNumPlanes(numPlanes); 
     1855  } 
     1856 
     1857  /* @see loci.formats.meta.MetadataStore#setTiffDataUUID(String, int, int, int) */ 
     1858  public void setTiffDataUUID(String uuid, int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     1859    // NB: UUID unsupported for schema version 2007-06 
    17611860  } 
    17621861 
     
    19622061  } 
    19632062 
     2063  // Image+/Pixels+/TiffData+ 
     2064  private TiffDataNode getTiffDataNode(int imageIndex, int pixelsIndex, int tiffDataIndex, boolean create) { 
     2065    // get Image+/Pixels+ node 
     2066    PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, create); 
     2067    if (pixels == null) return null; 
     2068    // get TiffData+ node 
     2069    int count = pixels.getTiffDataCount(); 
     2070    if (!create && count <= tiffDataIndex) return null; 
     2071    for (int i=count; i<=tiffDataIndex; i++) new TiffDataNode(pixels); 
     2072    List list = pixels.getTiffDataList(); 
     2073    return (TiffDataNode) list.get(tiffDataIndex); 
     2074  } 
     2075 
    19642076  // Image+/StageLabel 
    19652077  private StageLabelNode getStageLabelNode(int imageIndex, boolean create) { 
  • trunk/loci/formats/ome/OMEXML200802Metadata.java

    r3982 r3988  
    2626 * 
    2727 * THIS IS AUTOMATICALLY GENERATED CODE.  DO NOT MODIFY. 
    28  * Created by curtis via MetadataAutogen on Apr 24, 2008 4:44:24 PM CDT 
     28 * Created by curtis via MetadataAutogen on Apr 28, 2008 4:19:17 PM CDT 
    2929 * 
    3030 *----------------------------------------------------------------------------- 
     
    167167  } 
    168168 
     169  /* @see loci.formats.meta.MetadataRetrieve#getTiffDataCount(int, int) */ 
     170  public int getTiffDataCount(int imageIndex, int pixelsIndex) { 
     171    for (int i=0; i<Integer.MAX_VALUE; i++) { 
     172      if (getTiffDataNode(imageIndex, pixelsIndex, i, false) == null) return i; 
     173    } 
     174    return -1; 
     175  } 
     176 
    169177  // - Entity retrieval - 
    170178 
     
    895903    StagePositionNode stagePosition = getStagePositionNode(imageIndex, pixelsIndex, planeIndex, false); 
    896904    return stagePosition == null ? null : stagePosition.getPositionZ(); 
     905  } 
     906 
     907  // - TiffData property retrieval - 
     908 
     909  /* @see loci.formats.meta.MetadataRetrieve#getTiffDataFileName(int, int, int) */ 
     910  public String getTiffDataFileName(int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     911    UUIDNode uuid = getUUIDNode(imageIndex, pixelsIndex, tiffDataIndex, false); 
     912    return uuid == null ? null : uuid.getFileName(); 
     913  } 
     914 
     915  /* @see loci.formats.meta.MetadataRetrieve#getTiffDataFirstC(int, int, int) */ 
     916  public Integer getTiffDataFirstC(int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     917    TiffDataNode tiffData = getTiffDataNode(imageIndex, pixelsIndex, tiffDataIndex, false); 
     918    return tiffData == null ? null : tiffData.getFirstC(); 
     919  } 
     920 
     921  /* @see loci.formats.meta.MetadataRetrieve#getTiffDataFirstT(int, int, int) */ 
     922  public Integer getTiffDataFirstT(int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     923    TiffDataNode tiffData = getTiffDataNode(imageIndex, pixelsIndex, tiffDataIndex, false); 
     924    return tiffData == null ? null : tiffData.getFirstT(); 
     925  } 
     926 
     927  /* @see loci.formats.meta.MetadataRetrieve#getTiffDataFirstZ(int, int, int) */ 
     928  public Integer getTiffDataFirstZ(int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     929    TiffDataNode tiffData = getTiffDataNode(imageIndex, pixelsIndex, tiffDataIndex, false); 
     930    return tiffData == null ? null : tiffData.getFirstZ(); 
     931  } 
     932 
     933  /* @see loci.formats.meta.MetadataRetrieve#getTiffDataIFD(int, int, int) */ 
     934  public Integer getTiffDataIFD(int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     935    TiffDataNode tiffData = getTiffDataNode(imageIndex, pixelsIndex, tiffDataIndex, false); 
     936    return tiffData == null ? null : tiffData.getIFD(); 
     937  } 
     938 
     939  /* @see loci.formats.meta.MetadataRetrieve#getTiffDataNumPlanes(int, int, int) */ 
     940  public Integer getTiffDataNumPlanes(int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     941    TiffDataNode tiffData = getTiffDataNode(imageIndex, pixelsIndex, tiffDataIndex, false); 
     942    return tiffData == null ? null : tiffData.getNumPlanes(); 
     943  } 
     944 
     945  /* @see loci.formats.meta.MetadataRetrieve#getTiffDataUUID(int, int, int) */ 
     946  public String getTiffDataUUID(int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     947    UUIDNode uuid = getUUIDNode(imageIndex, pixelsIndex, tiffDataIndex, false); 
     948    return uuid == null ? null : uuid.getCData(); 
    897949  } 
    898950 
     
    927979  public void setArcType(String type, int instrumentIndex, int lightSourceIndex) { 
    928980    if (type == null) return; 
    929     ArcNode arc = getArcNode(instrumentIndex, lightSourceIndex, true); 
    930     arc.setType(type); 
     981    ArcNode arcNode = getArcNode(instrumentIndex, lightSourceIndex, true); 
     982    arcNode.setType(type); 
    931983  } 
    932984 
     
    936988  public void setChannelComponentColorDomain(String colorDomain, int imageIndex, int logicalChannelIndex, int channelComponentIndex) { 
    937989    if (colorDomain == null) return; 
    938     ChannelComponentNode channelComponent = getChannelComponentNode(imageIndex, logicalChannelIndex, channelComponentIndex, true); 
    939     channelComponent.setColorDomain(colorDomain); 
     990    ChannelComponentNode channelComponentNode = getChannelComponentNode(imageIndex, logicalChannelIndex, channelComponentIndex, true); 
     991    channelComponentNode.setColorDomain(colorDomain); 
    940992  } 
    941993 
     
    943995  public void setChannelComponentIndex(Integer index, int imageIndex, int logicalChannelIndex, int channelComponentIndex) { 
    944996    if (index == null) return; 
    945     ChannelComponentNode channelComponent = getChannelComponentNode(imageIndex, logicalChannelIndex, channelComponentIndex, true); 
    946     channelComponent.setIndex(index); 
     997    ChannelComponentNode channelComponentNode = getChannelComponentNode(imageIndex, logicalChannelIndex, channelComponentIndex, true); 
     998    channelComponentNode.setIndex(index); 
    947999  } 
    9481000 
     
    9521004  public void setDetectorGain(Float gain, int instrumentIndex, int detectorIndex) { 
    9531005    if (gain == null) return; 
    954     DetectorNode detector = getDetectorNode(instrumentIndex, detectorIndex, true); 
    955     detector.setGain(gain); 
     1006    DetectorNode detectorNode = getDetectorNode(instrumentIndex, detectorIndex, true); 
     1007    detectorNode.setGain(gain); 
    9561008  } 
    9571009 
     
    9591011  public void setDetectorID(String id, int instrumentIndex, int detectorIndex) { 
    9601012    if (id == null) return; 
    961     DetectorNode detector = getDetectorNode(instrumentIndex, detectorIndex, true); 
    962     detector.setNodeID(id); 
     1013    DetectorNode detectorNode = getDetectorNode(instrumentIndex, detectorIndex, true); 
     1014    detectorNode.setNodeID(id); 
    9631015  } 
    9641016 
     
    9661018  public void setDetectorManufacturer(String manufacturer, int instrumentIndex, int detectorIndex) { 
    9671019    if (manufacturer == null) return; 
    968     DetectorNode detector = getDetectorNode(instrumentIndex, detectorIndex, true); 
    969     detector.setManufacturer(manufacturer); 
     1020    DetectorNode detectorNode = getDetectorNode(instrumentIndex, detectorIndex, true); 
     1021    detectorNode.setManufacturer(manufacturer); 
    9701022  } 
    9711023 
     
    9731025  public void setDetectorModel(String model, int instrumentIndex, int detectorIndex) { 
    9741026    if (model == null) return; 
    975     DetectorNode detector = getDetectorNode(instrumentIndex, detectorIndex, true); 
    976     detector.setModel(model); 
     1027    DetectorNode detectorNode = getDetectorNode(instrumentIndex, detectorIndex, true); 
     1028    detectorNode.setModel(model); 
    9771029  } 
    9781030 
     
    9801032  public void setDetectorOffset(Float offset, int instrumentIndex, int detectorIndex) { 
    9811033    if (offset == null) return; 
    982     DetectorNode detector = getDetectorNode(instrumentIndex, detectorIndex, true); 
    983     detector.setOffset(offset); 
     1034    DetectorNode detectorNode = getDetectorNode(instrumentIndex, detectorIndex, true); 
     1035    detectorNode.setOffset(offset); 
    9841036  } 
    9851037 
     
    9871039  public void setDetectorSerialNumber(String serialNumber, int instrumentIndex, int detectorIndex) { 
    9881040    if (serialNumber == null) return; 
    989     DetectorNode detector = getDetectorNode(instrumentIndex, detectorIndex, true); 
    990     detector.setSerialNumber(serialNumber); 
     1041    DetectorNode detectorNode = getDetectorNode(instrumentIndex, detectorIndex, true); 
     1042    detectorNode.setSerialNumber(serialNumber); 
    9911043  } 
    9921044 
     
    9941046  public void setDetectorType(String type, int instrumentIndex, int detectorIndex) { 
    9951047    if (type == null) return; 
    996     DetectorNode detector = getDetectorNode(instrumentIndex, detectorIndex, true); 
    997     detector.setType(type); 
     1048    DetectorNode detectorNode = getDetectorNode(instrumentIndex, detectorIndex, true); 
     1049    detectorNode.setType(type); 
    9981050  } 
    9991051 
     
    10011053  public void setDetectorVoltage(Float voltage, int instrumentIndex, int detectorIndex) { 
    10021054    if (voltage == null) return; 
    1003     DetectorNode detector = getDetectorNode(instrumentIndex, detectorIndex, true); 
    1004     detector.setVoltage(voltage); 
     1055    DetectorNode detectorNode = getDetectorNode(instrumentIndex, detectorIndex, true); 
     1056    detectorNode.setVoltage(voltage); 
    10051057  } 
    10061058 
     
    10101062  public void setDetectorSettingsDetector(String detector, int imageIndex, int logicalChannelIndex) { 
    10111063    if (detector == null) return; 
    1012     DetectorRefNode detectorRef = getDetectorRefNode(imageIndex, logicalChannelIndex, true); 
    1013     detectorRef.setNodeID(detector); 
     1064    DetectorRefNode detectorRefNode = getDetectorRefNode(imageIndex, logicalChannelIndex, true); 
     1065    detectorRefNode.setNodeID(detector); 
    10141066  } 
    10151067 
     
    10171069  public void setDetectorSettingsGain(Float gain, int imageIndex, int logicalChannelIndex) { 
    10181070    if (gain == null) return; 
    1019     DetectorRefNode detectorRef = getDetectorRefNode(imageIndex, logicalChannelIndex, true); 
    1020     detectorRef.setGain(gain); 
     1071    DetectorRefNode detectorRefNode = getDetectorRefNode(imageIndex, logicalChannelIndex, true); 
     1072    detectorRefNode.setGain(gain); 
    10211073  } 
    10221074 
     
    10241076  public void setDetectorSettingsOffset(Float offset, int imageIndex, int logicalChannelIndex) { 
    10251077    if (offset == null) return; 
    1026     DetectorRefNode detectorRef = getDetectorRefNode(imageIndex, logicalChannelIndex, true); 
    1027     detectorRef.setOffset(offset); 
     1078    DetectorRefNode detectorRefNode = getDetectorRefNode(imageIndex, logicalChannelIndex, true); 
     1079    detectorRefNode.setOffset(offset); 
    10281080  } 
    10291081 
     
    10331085  public void setDimensionsPhysicalSizeX(Float physicalSizeX, int imageIndex, int pixelsIndex) { 
    10341086    if (physicalSizeX == null) return; 
    1035     PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, true); 
    1036     pixels.setPhysicalSizeX(physicalSizeX); 
     1087    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
     1088    pixelsNode.setPhysicalSizeX(physicalSizeX); 
    10371089  } 
    10381090 
     
    10401092  public void setDimensionsPhysicalSizeY(Float physicalSizeY, int imageIndex, int pixelsIndex) { 
    10411093    if (physicalSizeY == null) return; 
    1042     PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, true); 
    1043     pixels.setPhysicalSizeY(physicalSizeY); 
     1094    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
     1095    pixelsNode.setPhysicalSizeY(physicalSizeY); 
    10441096  } 
    10451097 
     
    10471099  public void setDimensionsPhysicalSizeZ(Float physicalSizeZ, int imageIndex, int pixelsIndex) { 
    10481100    if (physicalSizeZ == null) return; 
    1049     PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, true); 
    1050     pixels.setPhysicalSizeZ(physicalSizeZ); 
     1101    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
     1102    pixelsNode.setPhysicalSizeZ(physicalSizeZ); 
    10511103  } 
    10521104 
     
    10541106  public void setDimensionsTimeIncrement(Float timeIncrement, int imageIndex, int pixelsIndex) { 
    10551107    if (timeIncrement == null) return; 
    1056     PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, true); 
    1057     pixels.setTimeIncrement(timeIncrement); 
     1108    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
     1109    pixelsNode.setTimeIncrement(timeIncrement); 
    10581110  } 
    10591111 
     
    10611113  public void setDimensionsWaveIncrement(Integer waveIncrement, int imageIndex, int pixelsIndex) { 
    10621114    if (waveIncrement == null) return; 
    1063     PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, true); 
    1064     pixels.setWaveIncrement(waveIncrement); 
     1115    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
     1116    pixelsNode.setWaveIncrement(waveIncrement); 
    10651117  } 
    10661118 
     
    10681120  public void setDimensionsWaveStart(Integer waveStart, int imageIndex, int pixelsIndex) { 
    10691121    if (waveStart == null) return; 
    1070     PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, true); 
    1071     pixels.setWaveStart(waveStart); 
     1122    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
     1123    pixelsNode.setWaveStart(waveStart); 
    10721124  } 
    10731125 
     
    10771129  public void setDisplayOptionsID(String id, int imageIndex) { 
    10781130    if (id == null) return; 
    1079     DisplayOptionsNode displayOptions = getDisplayOptionsNode(imageIndex, true); 
    1080     displayOptions.setNodeID(id); 
     1131    DisplayOptionsNode displayOptionsNode = getDisplayOptionsNode(imageIndex, true); 
     1132    displayOptionsNode.setNodeID(id); 
    10811133  } 
    10821134 
     
    10841136  public void setDisplayOptionsZoom(Float zoom, int imageIndex) { 
    10851137    if (zoom == null) return; 
    1086     DisplayOptionsNode displayOptions = getDisplayOptionsNode(imageIndex, true); 
    1087     displayOptions.setZoom(zoom); 
     1138    DisplayOptionsNode displayOptionsNode = getDisplayOptionsNode(imageIndex, true); 
     1139    displayOptionsNode.setZoom(zoom); 
    10881140  } 
    10891141 
     
    10931145  public void setDisplayOptionsProjectionZStart(Integer zStart, int imageIndex) { 
    10941146    if (zStart == null) return; 
    1095     ProjectionNode projection = getProjectionNode(imageIndex, true); 
    1096     projection.setZStart(zStart); 
     1147    ProjectionNode projectionNode = getProjectionNode(imageIndex, true); 
     1148    projectionNode.setZStart(zStart); 
    10971149  } 
    10981150 
     
    11001152  public void setDisplayOptionsProjectionZStop(Integer zStop, int imageIndex) { 
    11011153    if (zStop == null) return; 
    1102     ProjectionNode projection = getProjectionNode(imageIndex, true); 
    1103     projection.setZStop(zStop); 
     1154    ProjectionNode projectionNode = getProjectionNode(imageIndex, true); 
     1155    projectionNode.setZStop(zStop); 
    11041156  } 
    11051157 
     
    11091161  public void setDisplayOptionsTimeTStart(Integer tStart, int imageIndex) { 
    11101162    if (tStart == null) return; 
    1111     TimeNode time = getTimeNode(imageIndex, true); 
    1112     time.setTStart(tStart); 
     1163    TimeNode timeNode = getTimeNode(imageIndex, true); 
     1164    timeNode.setTStart(tStart); 
    11131165  } 
    11141166 
     
    11161168  public void setDisplayOptionsTimeTStop(Integer tStop, int imageIndex) { 
    11171169    if (tStop == null) return; 
    1118     TimeNode time = getTimeNode(imageIndex, true); 
    1119     time.setTStop(tStop); 
     1170    TimeNode timeNode = getTimeNode(imageIndex, true); 
     1171    timeNode.setTStop(tStop); 
    11201172  } 
    11211173 
     
    11251177  public void setExperimenterEmail(String email, int experimenterIndex) { 
    11261178    if (email == null) return; 
    1127     ExperimenterNode experimenter = getExperimenterNode(experimenterIndex, true); 
    1128     experimenter.setEmail(email); 
     1179    ExperimenterNode experimenterNode = getExperimenterNode(experimenterIndex, true); 
     1180    experimenterNode.setEmail(email); 
    11291181  } 
    11301182 
     
    11321184  public void setExperimenterFirstName(String firstName, int experimenterIndex) { 
    11331185    if (firstName == null) return; 
    1134     ExperimenterNode experimenter = getExperimenterNode(experimenterIndex, true); 
    1135     experimenter.setFirstName(firstName); 
     1186    ExperimenterNode experimenterNode = getExperimenterNode(experimenterIndex, true); 
     1187    experimenterNode.setFirstName(firstName); 
    11361188  } 
    11371189 
     
    11391191  public void setExperimenterID(String id, int experimenterIndex) { 
    11401192    if (id == null) return; 
    1141     ExperimenterNode experimenter = getExperimenterNode(experimenterIndex, true); 
    1142     experimenter.setNodeID(id); 
     1193    ExperimenterNode experimenterNode = getExperimenterNode(experimenterIndex, true); 
     1194    experimenterNode.setNodeID(id); 
    11431195  } 
    11441196 
     
    11461198  public void setExperimenterInstitution(String institution, int experimenterIndex) { 
    11471199    if (institution == null) return; 
    1148     ExperimenterNode experimenter = getExperimenterNode(experimenterIndex, true); 
    1149     experimenter.setInstitution(institution); 
     1200    ExperimenterNode experimenterNode = getExperimenterNode(experimenterIndex, true); 
     1201    experimenterNode.setInstitution(institution); 
    11501202  } 
    11511203 
     
    11531205  public void setExperimenterLastName(String lastName, int experimenterIndex) { 
    11541206    if (lastName == null) return; 
    1155     ExperimenterNode experimenter = getExperimenterNode(experimenterIndex, true); 
    1156     experimenter.setLastName(lastName); 
     1207    ExperimenterNode experimenterNode = getExperimenterNode(experimenterIndex, true); 
     1208    experimenterNode.setLastName(lastName); 
    11571209  } 
    11581210 
     
    11621214  public void setFilamentType(String type, int instrumentIndex, int lightSourceIndex) { 
    11631215    if (type == null) return; 
    1164     FilamentNode filament = getFilamentNode(instrumentIndex, lightSourceIndex, true); 
    1165     filament.setType(type); 
     1216    FilamentNode filamentNode = getFilamentNode(instrumentIndex, lightSourceIndex, true); 
     1217    filamentNode.setType(type); 
    11661218  } 
    11671219 
     
    11711223  public void setImageCreationDate(String creationDate, int imageIndex) { 
    11721224    if (creationDate == null) return; 
    1173     ImageNode image = getImageNode(imageIndex, true); 
    1174     image.setCreationDate(creationDate); 
     1225    ImageNode imageNode = getImageNode(imageIndex, true); 
     1226    imageNode.setCreationDate(creationDate); 
    11751227  } 
    11761228 
     
    11781230  public void setImageDescription(String description, int imageIndex) { 
    11791231    if (description == null) return; 
    1180     ImageNode image = getImageNode(imageIndex, true); 
    1181     image.setDescription(description); 
     1232    ImageNode imageNode = getImageNode(imageIndex, true); 
     1233    imageNode.setDescription(description); 
    11821234  } 
    11831235 
     
    11851237  public void setImageID(String id, int imageIndex) { 
    11861238    if (id == null) return; 
    1187     ImageNode image = getImageNode(imageIndex, true); 
    1188     image.setNodeID(id); 
     1239    ImageNode imageNode = getImageNode(imageIndex, true); 
     1240    imageNode.setNodeID(id); 
    11891241  } 
    11901242 
     
    11921244  public void setImageName(String name, int imageIndex) { 
    11931245    if (name == null) return; 
    1194     ImageNode image = getImageNode(imageIndex, true); 
    1195     image.setName(name); 
     1246    ImageNode imageNode = getImageNode(imageIndex, true); 
     1247    imageNode.setName(name); 
    11961248  } 
    11971249 
     
    12011253  public void setImagingEnvironmentAirPressure(Float airPressure, int imageIndex) { 
    12021254    if (airPressure == null) return; 
    1203     ImagingEnvironmentNode imagingEnvironment = getImagingEnvironmentNode(imageIndex, true); 
    1204     imagingEnvironment.setAirPressure(airPressure); 
     1255    ImagingEnvironmentNode imagingEnvironmentNode = getImagingEnvironmentNode(imageIndex, true); 
     1256    imagingEnvironmentNode.setAirPressure(airPressure); 
    12051257  } 
    12061258 
     
    12081260  public void setImagingEnvironmentCO2Percent(Float cO2Percent, int imageIndex) { 
    12091261    if (cO2Percent == null) return; 
    1210     ImagingEnvironmentNode imagingEnvironment = getImagingEnvironmentNode(imageIndex, true); 
    1211     imagingEnvironment.setCO2Percent(cO2Percent); 
     1262    ImagingEnvironmentNode imagingEnvironmentNode = getImagingEnvironmentNode(imageIndex, true); 
     1263    imagingEnvironmentNode.setCO2Percent(cO2Percent); 
    12121264  } 
    12131265 
     
    12151267  public void setImagingEnvironmentHumidity(Float humidity, int imageIndex) { 
    12161268    if (humidity == null) return; 
    1217     ImagingEnvironmentNode imagingEnvironment = getImagingEnvironmentNode(imageIndex, true); 
    1218     imagingEnvironment.setHumidity(humidity); 
     1269    ImagingEnvironmentNode imagingEnvironmentNode = getImagingEnvironmentNode(imageIndex, true); 
     1270    imagingEnvironmentNode.setHumidity(humidity); 
    12191271  } 
    12201272 
     
    12221274  public void setImagingEnvironmentTemperature(Float temperature, int imageIndex) { 
    12231275    if (temperature == null) return; 
    1224     ImagingEnvironmentNode imagingEnvironment = getImagingEnvironmentNode(imageIndex, true); 
    1225     imagingEnvironment.setTemperature(temperature); 
     1276    ImagingEnvironmentNode imagingEnvironmentNode = getImagingEnvironmentNode(imageIndex, true); 
     1277    imagingEnvironmentNode.setTemperature(temperature); 
    12261278  } 
    12271279 
     
    12311283  public void setInstrumentID(String id, int instrumentIndex) { 
    12321284    if (id == null) return; 
    1233     InstrumentNode instrument = getInstrumentNode(instrumentIndex, true); 
    1234     instrument.setNodeID(id); 
     1285    InstrumentNode instrumentNode = getInstrumentNode(instrumentIndex, true); 
     1286    instrumentNode.setNodeID(id); 
    12351287  } 
    12361288 
     
    12401292  public void setLaserFrequencyMultiplication(Integer frequencyMultiplication, int instrumentIndex, int lightSourceIndex) { 
    12411293    if (frequencyMultiplication == null) return; 
    1242     LaserNode laser = getLaserNode(instrumentIndex, lightSourceIndex, true); 
    1243     laser.setFrequencyMultiplication(frequencyMultiplication); 
     1294    LaserNode laserNode = getLaserNode(instrumentIndex, lightSourceIndex, true); 
     1295    laserNode.setFrequencyMultiplication(frequencyMultiplication); 
    12441296  } 
    12451297 
     
    12471299  public void setLaserLaserMedium(String laserMedium, int instrumentIndex, int lightSourceIndex) { 
    12481300    if (laserMedium == null) return; 
    1249     LaserNode laser = getLaserNode(instrumentIndex, lightSourceIndex, true); 
    1250     laser.setLaserMedium(laserMedium); 
     1301    LaserNode laserNode = getLaserNode(instrumentIndex, lightSourceIndex, true); 
     1302    laserNode.setLaserMedium(laserMedium); 
    12511303  } 
    12521304 
     
    12541306  public void setLaserPulse(String pulse, int instrumentIndex, int lightSourceIndex) { 
    12551307    if (pulse == null) return; 
    1256     LaserNode laser = getLaserNode(instrumentIndex, lightSourceIndex, true); 
    1257     laser.setPulse(pulse); 
     1308    LaserNode laserNode = getLaserNode(instrumentIndex, lightSourceIndex, true); 
     1309    laserNode.setPulse(pulse); 
    12581310  } 
    12591311 
     
    12611313  public void setLaserTuneable(Boolean tuneable, int instrumentIndex, int lightSourceIndex) { 
    12621314    if (tuneable == null) return; 
    1263     LaserNode laser = getLaserNode(instrumentIndex, lightSourceIndex, true); 
    1264     laser.setTuneable(tuneable); 
     1315    LaserNode laserNode = getLaserNode(instrumentIndex, lightSourceIndex, true); 
     1316    laserNode.setTuneable(tuneable); 
    12651317  } 
    12661318 
     
    12681320  public void setLaserType(String type, int instrumentIndex, int lightSourceIndex) { 
    12691321    if (type == null) return; 
    1270     LaserNode laser = getLaserNode(instrumentIndex, lightSourceIndex, true); 
    1271     laser.setType(type); 
     1322    LaserNode laserNode = getLaserNode(instrumentIndex, lightSourceIndex, true); 
     1323    laserNode.setType(type); 
    12721324  } 
    12731325 
     
    12751327  public void setLaserWavelength(Integer wavelength, int instrumentIndex, int lightSourceIndex) { 
    12761328    if (wavelength == null) return; 
    1277     LaserNode laser = getLaserNode(instrumentIndex, lightSourceIndex, true); 
    1278     laser.setWavelength(wavelength); 
     1329    LaserNode laserNode = getLaserNode(instrumentIndex, lightSourceIndex, true); 
     1330    laserNode.setWavelength(wavelength); 
    12791331  } 
    12801332 
     
    12841336  public void setLightSourceID(String id, int instrumentIndex, int lightSourceIndex) { 
    12851337    if (id == null) return; 
    1286     LightSourceNode lightSource = getLightSourceNode(instrumentIndex, lightSourceIndex, true); 
    1287     lightSource.setNodeID(id); 
     1338    LightSourceNode lightSourceNode = getLightSourceNode(instrumentIndex, lightSourceIndex, true); 
     1339    lightSourceNode.setNodeID(id); 
    12881340  } 
    12891341 
     
    12911343  public void setLightSourceManufacturer(String manufacturer, int instrumentIndex, int lightSourceIndex) { 
    12921344    if (manufacturer == null) return; 
    1293     LightSourceNode lightSource = getLightSourceNode(instrumentIndex, lightSourceIndex, true); 
    1294     lightSource.setManufacturer(manufacturer); 
     1345    LightSourceNode lightSourceNode = getLightSourceNode(instrumentIndex, lightSourceIndex, true); 
     1346    lightSourceNode.setManufacturer(manufacturer); 
    12951347  } 
    12961348 
     
    12981350  public void setLightSourceModel(String model, int instrumentIndex, int lightSourceIndex) { 
    12991351    if (model == null) return; 
    1300     LightSourceNode lightSource = getLightSourceNode(instrumentIndex, lightSourceIndex, true); 
    1301     lightSource.setModel(model); 
     1352    LightSourceNode lightSourceNode = getLightSourceNode(instrumentIndex, lightSourceIndex, true); 
     1353    lightSourceNode.setModel(model); 
    13021354  } 
    13031355 
     
    13051357  public void setLightSourcePower(Float power, int instrumentIndex, int lightSourceIndex) { 
    13061358    if (power == null) return; 
    1307     LightSourceNode lightSource = getLightSourceNode(instrumentIndex, lightSourceIndex, true); 
    1308     lightSource.setPower(power); 
     1359    LightSourceNode lightSourceNode = getLightSourceNode(instrumentIndex, lightSourceIndex, true); 
     1360    lightSourceNode.setPower(power); 
    13091361  } 
    13101362 
     
    13121364  public void setLightSourceSerialNumber(String serialNumber, int instrumentIndex, int lightSourceIndex) { 
    13131365    if (serialNumber == null) return; 
    1314     LightSourceNode lightSource = getLightSourceNode(instrumentIndex, lightSourceIndex, true); 
    1315     lightSource.setSerialNumber(serialNumber); 
     1366    LightSourceNode lightSourceNode = getLightSourceNode(instrumentIndex, lightSourceIndex, true); 
     1367    lightSourceNode.setSerialNumber(serialNumber); 
    13161368  } 
    13171369 
     
    13211373  public void setLightSourceSettingsAttenuation(Float attenuation, int imageIndex, int logicalChannelIndex) { 
    13221374    if (attenuation == null) return; 
    1323     LightSourceRefNode lightSourceRef = getLightSourceRefNode(imageIndex, logicalChannelIndex, true); 
    1324     lightSourceRef.setAttenuation(attenuation); 
     1375    LightSourceRefNode lightSourceRefNode = getLightSourceRefNode(imageIndex, logicalChannelIndex, true); 
     1376    lightSourceRefNode.setAttenuation(attenuation); 
    13251377  } 
    13261378 
     
    13281380  public void setLightSourceSettingsLightSource(String lightSource, int imageIndex, int logicalChannelIndex) { 
    13291381    if (lightSource == null) return; 
    1330     LightSourceRefNode lightSourceRef = getLightSourceRefNode(imageIndex, logicalChannelIndex, true); 
    1331     lightSourceRef.setNodeID(lightSource); 
     1382    LightSourceRefNode lightSourceRefNode = getLightSourceRefNode(imageIndex, logicalChannelIndex, true); 
     1383    lightSourceRefNode.setNodeID(lightSource); 
    13321384  } 
    13331385 
     
    13351387  public void setLightSourceSettingsWavelength(Integer wavelength, int imageIndex, int logicalChannelIndex) { 
    13361388    if (wavelength == null) return; 
    1337     LightSourceRefNode lightSourceRef = getLightSourceRefNode(imageIndex, logicalChannelIndex, true); 
    1338     lightSourceRef.setWavelength(wavelength); 
     1389    LightSourceRefNode lightSourceRefNode = getLightSourceRefNode(imageIndex, logicalChannelIndex, true); 
     1390    lightSourceRefNode.setWavelength(wavelength); 
    13391391  } 
    13401392 
     
    13441396  public void setLogicalChannelContrastMethod(String contrastMethod, int imageIndex, int logicalChannelIndex) { 
    13451397    if (contrastMethod == null) return; 
    1346     LogicalChannelNode logicalChannel = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
    1347     logicalChannel.setContrastMethod(contrastMethod); 
     1398    LogicalChannelNode logicalChannelNode = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
     1399    logicalChannelNode.setContrastMethod(contrastMethod); 
    13481400  } 
    13491401 
     
    13511403  public void setLogicalChannelEmWave(Integer emWave, int imageIndex, int logicalChannelIndex) { 
    13521404    if (emWave == null) return; 
    1353     LogicalChannelNode logicalChannel = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
    1354     logicalChannel.setEmWave(emWave); 
     1405    LogicalChannelNode logicalChannelNode = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
     1406    logicalChannelNode.setEmWave(emWave); 
    13551407  } 
    13561408 
     
    13581410  public void setLogicalChannelExWave(Integer exWave, int imageIndex, int logicalChannelIndex) { 
    13591411    if (exWave == null) return; 
    1360     LogicalChannelNode logicalChannel = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
    1361     logicalChannel.setExWave(exWave); 
     1412    LogicalChannelNode logicalChannelNode = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
     1413    logicalChannelNode.setExWave(exWave); 
    13621414  } 
    13631415 
     
    13651417  public void setLogicalChannelFluor(String fluor, int imageIndex, int logicalChannelIndex) { 
    13661418    if (fluor == null) return; 
    1367     LogicalChannelNode logicalChannel = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
    1368     logicalChannel.setFluor(fluor); 
     1419    LogicalChannelNode logicalChannelNode = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
     1420    logicalChannelNode.setFluor(fluor); 
    13691421  } 
    13701422 
     
    13721424  public void setLogicalChannelID(String id, int imageIndex, int logicalChannelIndex) { 
    13731425    if (id == null) return; 
    1374     LogicalChannelNode logicalChannel = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
    1375     logicalChannel.setNodeID(id); 
     1426    LogicalChannelNode logicalChannelNode = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
     1427    logicalChannelNode.setNodeID(id); 
    13761428  } 
    13771429 
     
    13791431  public void setLogicalChannelIlluminationType(String illuminationType, int imageIndex, int logicalChannelIndex) { 
    13801432    if (illuminationType == null) return; 
    1381     LogicalChannelNode logicalChannel = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
    1382     logicalChannel.setIlluminationType(illuminationType); 
     1433    LogicalChannelNode logicalChannelNode = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
     1434    logicalChannelNode.setIlluminationType(illuminationType); 
    13831435  } 
    13841436 
     
    13861438  public void setLogicalChannelMode(String mode, int imageIndex, int logicalChannelIndex) { 
    13871439    if (mode == null) return; 
    1388     LogicalChannelNode logicalChannel = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
    1389     logicalChannel.setMode(mode); 
     1440    LogicalChannelNode logicalChannelNode = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
     1441    logicalChannelNode.setMode(mode); 
    13901442  } 
    13911443 
     
    13931445  public void setLogicalChannelName(String name, int imageIndex, int logicalChannelIndex) { 
    13941446    if (name == null) return; 
    1395     LogicalChannelNode logicalChannel = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
    1396     logicalChannel.setName(name); 
     1447    LogicalChannelNode logicalChannelNode = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
     1448    logicalChannelNode.setName(name); 
    13971449  } 
    13981450 
     
    14001452  public void setLogicalChannelNdFilter(Float ndFilter, int imageIndex, int logicalChannelIndex) { 
    14011453    if (ndFilter == null) return; 
    1402     LogicalChannelNode logicalChannel = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
    1403     logicalChannel.setNdFilter(ndFilter); 
     1454    LogicalChannelNode logicalChannelNode = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
     1455    logicalChannelNode.setNdFilter(ndFilter); 
    14041456  } 
    14051457 
     
    14071459  public void setLogicalChannelPhotometricInterpretation(String photometricInterpretation, int imageIndex, int logicalChannelIndex) { 
    14081460    if (photometricInterpretation == null) return; 
    1409     LogicalChannelNode logicalChannel = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
    1410     logicalChannel.setPhotometricInterpretation(photometricInterpretation); 
     1461    LogicalChannelNode logicalChannelNode = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
     1462    logicalChannelNode.setPhotometricInterpretation(photometricInterpretation); 
    14111463  } 
    14121464 
     
    14141466  public void setLogicalChannelPinholeSize(Integer pinholeSize, int imageIndex, int logicalChannelIndex) { 
    14151467    if (pinholeSize == null) return; 
    1416     LogicalChannelNode logicalChannel = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
    1417     logicalChannel.setPinholeSize(pinholeSize); 
     1468    LogicalChannelNode logicalChannelNode = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
     1469    logicalChannelNode.setPinholeSize(pinholeSize); 
    14181470  } 
    14191471 
     
    14211473  public void setLogicalChannelPockelCellSetting(Integer pockelCellSetting, int imageIndex, int logicalChannelIndex) { 
    14221474    if (pockelCellSetting == null) return; 
    1423     LogicalChannelNode logicalChannel = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
    1424     logicalChannel.setPockelCellSetting(pockelCellSetting); 
     1475    LogicalChannelNode logicalChannelNode = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
     1476    logicalChannelNode.setPockelCellSetting(pockelCellSetting); 
    14251477  } 
    14261478 
     
    14281480  public void setLogicalChannelSamplesPerPixel(Integer samplesPerPixel, int imageIndex, int logicalChannelIndex) { 
    14291481    if (samplesPerPixel == null) return; 
    1430     LogicalChannelNode logicalChannel = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
    1431     logicalChannel.setSamplesPerPixel(samplesPerPixel); 
     1482    LogicalChannelNode logicalChannelNode = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
     1483    logicalChannelNode.setSamplesPerPixel(samplesPerPixel); 
    14321484  } 
    14331485 
     
    14371489  public void setOTFID(String id, int instrumentIndex, int otfIndex) { 
    14381490    if (id == null) return; 
    1439     OTFNode otf = getOTFNode(instrumentIndex, otfIndex, true); 
    1440     otf.setNodeID(id); 
     1491    OTFNode otfNode = getOTFNode(instrumentIndex, otfIndex, true); 
     1492    otfNode.setNodeID(id); 
    14411493  } 
    14421494 
     
    14441496  public void setOTFOpticalAxisAveraged(Boolean opticalAxisAveraged, int instrumentIndex, int otfIndex) { 
    14451497    if (opticalAxisAveraged == null) return; 
    1446     OTFNode otf = getOTFNode(instrumentIndex, otfIndex, true); 
    1447     otf.setOpticalAxisAveraged(opticalAxisAveraged); 
     1498    OTFNode otfNode = getOTFNode(instrumentIndex, otfIndex, true); 
     1499    otfNode.setOpticalAxisAveraged(opticalAxisAveraged); 
    14481500  } 
    14491501 
     
    14511503  public void setOTFPixelType(String pixelType, int instrumentIndex, int otfIndex) { 
    14521504    if (pixelType == null) return; 
    1453     OTFNode otf = getOTFNode(instrumentIndex, otfIndex, true); 
    1454     otf.setPixelType(pixelType); 
     1505    OTFNode otfNode = getOTFNode(instrumentIndex, otfIndex, true); 
     1506    otfNode.setPixelType(pixelType); 
    14551507  } 
    14561508 
     
    14581510  public void setOTFSizeX(Integer sizeX, int instrumentIndex, int otfIndex) { 
    14591511    if (sizeX == null) return; 
    1460     OTFNode otf = getOTFNode(instrumentIndex, otfIndex, true); 
    1461     otf.setSizeX(sizeX); 
     1512    OTFNode otfNode = getOTFNode(instrumentIndex, otfIndex, true); 
     1513    otfNode.setSizeX(sizeX); 
    14621514  } 
    14631515 
     
    14651517  public void setOTFSizeY(Integer sizeY, int instrumentIndex, int otfIndex) { 
    14661518    if (sizeY == null) return; 
    1467     OTFNode otf = getOTFNode(instrumentIndex, otfIndex, true); 
    1468     otf.setSizeY(sizeY); 
     1519    OTFNode otfNode = getOTFNode(instrumentIndex, otfIndex, true); 
     1520    otfNode.setSizeY(sizeY); 
    14691521  } 
    14701522 
     
    14741526  public void setObjectiveCalibratedMagnification(Float calibratedMagnification, int instrumentIndex, int objectiveIndex) { 
    14751527    if (calibratedMagnification == null) return; 
    1476     ObjectiveNode objective = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
    1477     objective.setCalibratedMagnification(calibratedMagnification); 
     1528    ObjectiveNode objectiveNode = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
     1529    objectiveNode.setCalibratedMagnification(calibratedMagnification); 
    14781530  } 
    14791531 
     
    14861538  public void setObjectiveID(String id, int instrumentIndex, int objectiveIndex) { 
    14871539    if (id == null) return; 
    1488     ObjectiveNode objective = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
    1489     objective.setNodeID(id); 
     1540    ObjectiveNode objectiveNode = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
     1541    objectiveNode.setNodeID(id); 
    14901542  } 
    14911543 
     
    14981550  public void setObjectiveLensNA(Float lensNA, int instrumentIndex, int objectiveIndex) { 
    14991551    if (lensNA == null) return; 
    1500     ObjectiveNode objective = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
    1501     objective.setLensNA(lensNA); 
     1552    ObjectiveNode objectiveNode = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
     1553    objectiveNode.setLensNA(lensNA); 
    15021554  } 
    15031555 
     
    15051557  public void setObjectiveManufacturer(String manufacturer, int instrumentIndex, int objectiveIndex) { 
    15061558    if (manufacturer == null) return; 
    1507     ObjectiveNode objective = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
    1508     objective.setManufacturer(manufacturer); 
     1559    ObjectiveNode objectiveNode = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
     1560    objectiveNode.setManufacturer(manufacturer); 
    15091561  } 
    15101562 
     
    15121564  public void setObjectiveModel(String model, int instrumentIndex, int objectiveIndex) { 
    15131565    if (model == null) return; 
    1514     ObjectiveNode objective = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
    1515     objective.setModel(model); 
     1566    ObjectiveNode objectiveNode = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
     1567    objectiveNode.setModel(model); 
    15161568  } 
    15171569 
     
    15191571  public void setObjectiveNominalMagnification(Integer nominalMagnification, int instrumentIndex, int objectiveIndex) { 
    15201572    if (nominalMagnification == null) return; 
    1521     ObjectiveNode objective = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
    1522     objective.setNominalMagnification(nominalMagnification); 
     1573    ObjectiveNode objectiveNode = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
     1574    objectiveNode.setNominalMagnification(nominalMagnification); 
    15231575  } 
    15241576 
     
    15261578  public void setObjectiveSerialNumber(String serialNumber, int instrumentIndex, int objectiveIndex) { 
    15271579    if (serialNumber == null) return; 
    1528     ObjectiveNode objective = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
    1529     objective.setSerialNumber(serialNumber); 
     1580    ObjectiveNode objectiveNode = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
     1581    objectiveNode.setSerialNumber(serialNumber); 
    15301582  } 
    15311583 
     
    15331585  public void setObjectiveWorkingDistance(Float workingDistance, int instrumentIndex, int objectiveIndex) { 
    15341586    if (workingDistance == null) return; 
    1535     ObjectiveNode objective = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
    1536     objective.setWorkingDistance(workingDistance); 
     1587    ObjectiveNode objectiveNode = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
     1588    objectiveNode.setWorkingDistance(workingDistance); 
    15371589  } 
    15381590 
     
    15421594  public void setPixelsBigEndian(Boolean bigEndian, int imageIndex, int pixelsIndex) { 
    15431595    if (bigEndian == null) return; 
    1544     PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, true); 
    1545     pixels.setBigEndian(bigEndian); 
     1596    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
     1597    pixelsNode.setBigEndian(bigEndian); 
    15461598  } 
    15471599 
     
    15491601  public void setPixelsDimensionOrder(String dimensionOrder, int imageIndex, int pixelsIndex) { 
    15501602    if (dimensionOrder == null) return; 
    1551     PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, true); 
    1552     pixels.setDimensionOrder(dimensionOrder); 
     1603    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
     1604    pixelsNode.setDimensionOrder(dimensionOrder); 
    15531605  } 
    15541606 
     
    15561608  public void setPixelsID(String id, int imageIndex, int pixelsIndex) { 
    15571609    if (id == null) return; 
    1558     PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, true); 
    1559     pixels.setNodeID(id); 
     1610    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
     1611    pixelsNode.setNodeID(id); 
    15601612  } 
    15611613 
     
    15631615  public void setPixelsPixelType(String pixelType, int imageIndex, int pixelsIndex) { 
    15641616    if (pixelType == null) return; 
    1565     PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, true); 
    1566     pixels.setPixelType(pixelType); 
     1617    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
     1618    pixelsNode.setPixelType(pixelType); 
    15671619  } 
    15681620 
     
    15701622  public void setPixelsSizeC(Integer sizeC, int imageIndex, int pixelsIndex) { 
    15711623    if (sizeC == null) return; 
    1572     PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, true); 
    1573     pixels.setSizeC(sizeC); 
     1624    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
     1625    pixelsNode.setSizeC(sizeC); 
    15741626  } 
    15751627 
     
    15771629  public void setPixelsSizeT(Integer sizeT, int imageIndex, int pixelsIndex) { 
    15781630    if (sizeT == null) return; 
    1579     PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, true); 
    1580     pixels.setSizeT(sizeT); 
     1631    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
     1632    pixelsNode.setSizeT(sizeT); 
    15811633  } 
    15821634 
     
    15841636  public void setPixelsSizeX(Integer sizeX, int imageIndex, int pixelsIndex) { 
    15851637    if (sizeX == null) return; 
    1586     PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, true); 
    1587     pixels.setSizeX(sizeX); 
     1638    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
     1639    pixelsNode.setSizeX(sizeX); 
    15881640  } 
    15891641 
     
    15911643  public void setPixelsSizeY(Integer sizeY, int imageIndex, int pixelsIndex) { 
    15921644    if (sizeY == null) return; 
    1593     PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, true); 
    1594     pixels.setSizeY(sizeY); 
     1645    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
     1646    pixelsNode.setSizeY(sizeY); 
    15951647  } 
    15961648 
     
    15981650  public void setPixelsSizeZ(Integer sizeZ, int imageIndex, int pixelsIndex) { 
    15991651    if (sizeZ == null) return; 
    1600     PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, true); 
    1601     pixels.setSizeZ(sizeZ); 
     1652    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
     1653    pixelsNode.setSizeZ(sizeZ); 
    16021654  } 
    16031655 
     
    16071659  public void setPlaneTheC(Integer theC, int imageIndex, int pixelsIndex, int planeIndex) { 
    16081660    if (theC == null) return; 
    1609     PlaneNode plane = getPlaneNode(imageIndex, pixelsIndex, planeIndex, true); 
    1610     plane.setTheC(theC); 
     1661    PlaneNode planeNode = getPlaneNode(imageIndex, pixelsIndex, planeIndex, true); 
     1662    planeNode.setTheC(theC); 
    16111663  } 
    16121664 
     
    16141666  public void setPlaneTheT(Integer theT, int imageIndex, int pixelsIndex, int planeIndex) { 
    16151667    if (theT == null) return; 
    1616     PlaneNode plane = getPlaneNode(imageIndex, pixelsIndex, planeIndex, true); 
    1617     plane.setTheT(theT); 
     1668    PlaneNode planeNode = getPlaneNode(imageIndex, pixelsIndex, planeIndex, true); 
     1669    planeNode.setTheT(theT); 
    16181670  } 
    16191671 
     
    16211673  public void setPlaneTheZ(Integer theZ, int imageIndex, int pixelsIndex, int planeIndex) { 
    16221674    if (theZ == null) return; 
    1623     PlaneNode plane = getPlaneNode(imageIndex, pixelsIndex, planeIndex, true); 
    1624     plane.setTheZ(theZ); 
     1675    PlaneNode planeNode = getPlaneNode(imageIndex, pixelsIndex, planeIndex, true); 
     1676    planeNode.setTheZ(theZ); 
    16251677  } 
    16261678 
     
    16301682  public void setPlaneTimingDeltaT(Float deltaT, int imageIndex, int pixelsIndex, int planeIndex) { 
    16311683    if (deltaT == null) return; 
    1632     PlaneTimingNode planeTiming = getPlaneTimingNode(imageIndex, pixelsIndex, planeIndex, true); 
    1633     planeTiming.setDeltaT(deltaT); 
     1684    PlaneTimingNode planeTimingNode = getPlaneTimingNode(imageIndex, pixelsIndex, planeIndex, true); 
     1685    planeTimingNode.setDeltaT(deltaT); 
    16341686  } 
    16351687 
     
    16371689  public void setPlaneTimingExposureTime(Float exposureTime, int imageIndex, int pixelsIndex, int planeIndex) { 
    16381690    if (exposureTime == null) return; 
    1639     PlaneTimingNode planeTiming = getPlaneTimingNode(imageIndex, pixelsIndex, planeIndex, true); 
    1640     planeTiming.setExposureTime(exposureTime); 
     1691    PlaneTimingNode planeTimingNode = getPlaneTimingNode(imageIndex, pixelsIndex, planeIndex, true); 
     1692    planeTimingNode.setExposureTime(exposureTime); 
    16411693  } 
    16421694 
     
    16461698  public void setROIID(String id, int imageIndex, int roiIndex) { 
    16471699    if (id == null) return; 
    1648     ROINode roi = getROINode(imageIndex, roiIndex, true); 
    1649     roi.setNodeID(id); 
     1700    ROINode roiNode = getROINode(imageIndex, roiIndex, true); 
     1701    roiNode.setNodeID(id); 
    16501702  } 
    16511703 
     
    16531705  public void setROIT0(Integer t0, int imageIndex, int roiIndex) { 
    16541706    if (t0 == null) return; 
    1655     ROINode roi = getROINode(imageIndex, roiIndex, true); 
    1656     roi.setT0(t0); 
     1707    ROINode roiNode = getROINode(imageIndex, roiIndex, true); 
     1708    roiNode.setT0(t0); 
    16571709  } 
    16581710 
     
    16601712  public void setROIT1(Integer t1, int imageIndex, int roiIndex) { 
    16611713    if (t1 == null) return; 
    1662     ROINode roi = getROINode(imageIndex, roiIndex, true); 
    1663     roi.setT1(t1); 
     1714    ROINode roiNode = getROINode(imageIndex, roiIndex, true); 
     1715    roiNode.setT1(t1); 
    16641716  } 
    16651717 
     
    16671719  public void setROIX0(Integer x0, int imageIndex, int roiIndex) { 
    16681720    if (x0 == null) return; 
    1669     ROINode roi = getROINode(imageIndex, roiIndex, true); 
    1670     roi.setX0(x0); 
     1721    ROINode roiNode = getROINode(imageIndex, roiIndex, true); 
     1722    roiNode.setX0(x0); 
    16711723  } 
    16721724 
     
    16741726  public void setROIX1(Integer x1, int imageIndex, int roiIndex) { 
    16751727    if (x1 == null) return; 
    1676     ROINode roi = getROINode(imageIndex, roiIndex, true); 
    1677     roi.setX1(x1); 
     1728    ROINode roiNode = getROINode(imageIndex, roiIndex, true); 
     1729    roiNode.setX1(x1); 
    16781730  } 
    16791731 
     
    16811733  public void setROIY0(Integer y0, int imageIndex, int roiIndex) { 
    16821734    if (y0 == null) return; 
    1683     ROINode roi = getROINode(imageIndex, roiIndex, true); 
    1684     roi.setY0(y0); 
     1735    ROINode roiNode = getROINode(imageIndex, roiIndex, true); 
     1736    roiNode.setY0(y0); 
    16851737  } 
    16861738 
     
    16881740  public void setROIY1(Integer y1, int imageIndex, int roiIndex) { 
    16891741    if (y1 == null) return; 
    1690     ROINode roi = getROINode(imageIndex, roiIndex, true); 
    1691     roi.setY1(y1); 
     1742    ROINode roiNode = getROINode(imageIndex, roiIndex, true); 
     1743    roiNode.setY1(y1); 
    16921744  } 
    16931745 
     
    16951747  public void setROIZ0(Integer z0, int imageIndex, int roiIndex) { 
    16961748    if (z0 == null) return; 
    1697     ROINode roi = getROINode(imageIndex, roiIndex, true); 
    1698     roi.setZ0(z0); 
     1749    ROINode roiNode = getROINode(imageIndex, roiIndex, true); 
     1750    roiNode.setZ0(z0); 
    16991751  } 
    17001752 
     
    17021754  public void setROIZ1(Integer z1, int imageIndex, int roiIndex) { 
    17031755    if (z1 == null) return; 
    1704     ROINode roi = getROINode(imageIndex, roiIndex, true); 
    1705     roi.setZ1(z1); 
     1756    ROINode roiNode = getROINode(imageIndex, roiIndex, true); 
     1757    roiNode.setZ1(z1); 
    17061758  } 
    17071759 
     
    17111763  public void setStageLabelName(String name, int imageIndex) { 
    17121764    if (name == null) return; 
    1713     StageLabelNode stageLabel = getStageLabelNode(imageIndex, true); 
    1714     stageLabel.setName(name); 
     1765    StageLabelNode stageLabelNode = getStageLabelNode(imageIndex, true); 
     1766    stageLabelNode.setName(name); 
    17151767  } 
    17161768 
     
    17181770  public void setStageLabelX(Float x, int imageIndex) { 
    17191771    if (x == null) return; 
    1720     StageLabelNode stageLabel = getStageLabelNode(imageIndex, true); 
    1721     stageLabel.setX(x); 
     1772    StageLabelNode stageLabelNode = getStageLabelNode(imageIndex, true); 
     1773    stageLabelNode.setX(x); 
    17221774  } 
    17231775 
     
    17251777  public void setStageLabelY(Float y, int imageIndex) { 
    17261778    if (y == null) return; 
    1727     StageLabelNode stageLabel = getStageLabelNode(imageIndex, true); 
    1728     stageLabel.setY(y); 
     1779    StageLabelNode stageLabelNode = getStageLabelNode(imageIndex, true); 
     1780    stageLabelNode.setY(y); 
    17291781  } 
    17301782 
     
    17321784  public void setStageLabelZ(Float z, int imageIndex) { 
    17331785    if (z == null) return; 
    1734     StageLabelNode stageLabel = getStageLabelNode(imageIndex, true); 
    1735     stageLabel.setZ(z); 
     1786    StageLabelNode stageLabelNode = getStageLabelNode(imageIndex, true); 
     1787    stageLabelNode.setZ(z); 
    17361788  } 
    17371789 
     
    17411793  public void setStagePositionPositionX(Float positionX, int imageIndex, int pixelsIndex, int planeIndex) { 
    17421794    if (positionX == null) return; 
    1743     StagePositionNode stagePosition = getStagePositionNode(imageIndex, pixelsIndex, planeIndex, true); 
    1744     stagePosition.setPositionX(positionX); 
     1795    StagePositionNode stagePositionNode = getStagePositionNode(imageIndex, pixelsIndex, planeIndex, true); 
     1796    stagePositionNode.setPositionX(positionX); 
    17451797  } 
    17461798 
     
    17481800  public void setStagePositionPositionY(Float positionY, int imageIndex, int pixelsIndex, int planeIndex) { 
    17491801    if (positionY == null) return; 
    1750     StagePositionNode stagePosition = getStagePositionNode(imageIndex, pixelsIndex, planeIndex, true); 
    1751     stagePosition.setPositionY(positionY); 
     1802    StagePositionNode stagePositionNode = getStagePositionNode(imageIndex, pixelsIndex, planeIndex, true); 
     1803    stagePositionNode.setPositionY(positionY); 
    17521804  } 
    17531805 
     
    17551807  public void setStagePositionPositionZ(Float positionZ, int imageIndex, int pixelsIndex, int planeIndex) { 
    17561808    if (positionZ == null) return; 
    1757     StagePositionNode stagePosition = getStagePositionNode(imageIndex, pixelsIndex, planeIndex, true); 
    1758     stagePosition.setPositionZ(positionZ); 
     1809    StagePositionNode stagePositionNode = getStagePositionNode(imageIndex, pixelsIndex, planeIndex, true); 
     1810    stagePositionNode.setPositionZ(positionZ); 
     1811  } 
     1812 
     1813  // - TiffData property storage - 
     1814 
     1815  /* @see loci.formats.meta.MetadataStore#setTiffDataFileName(String, int, int, int) */ 
     1816  public void setTiffDataFileName(String fileName, int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     1817    if (fileName == null) return; 
     1818    UUIDNode uuidNode = getUUIDNode(imageIndex, pixelsIndex, tiffDataIndex, true); 
     1819    uuidNode.setFileName(fileName); 
     1820  } 
     1821 
     1822  /* @see loci.formats.meta.MetadataStore#setTiffDataFirstC(Integer, int, int, int) */ 
     1823  public void setTiffDataFirstC(Integer firstC, int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     1824    if (firstC == null) return; 
     1825    TiffDataNode tiffDataNode = getTiffDataNode(imageIndex, pixelsIndex, tiffDataIndex, true); 
     1826    tiffDataNode.setFirstC(firstC); 
     1827  } 
     1828 
     1829  /* @see loci.formats.meta.MetadataStore#setTiffDataFirstT(Integer, int, int, int) */ 
     1830  public void setTiffDataFirstT(Integer firstT, int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     1831    if (firstT == null) return; 
     1832    TiffDataNode tiffDataNode = getTiffDataNode(imageIndex, pixelsIndex, tiffDataIndex, true); 
     1833    tiffDataNode.setFirstT(firstT); 
     1834  } 
     1835 
     1836  /* @see loci.formats.meta.MetadataStore#setTiffDataFirstZ(Integer, int, int, int) */ 
     1837  public void setTiffDataFirstZ(Integer firstZ, int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     1838    if (firstZ == null) return; 
     1839    TiffDataNode tiffDataNode = getTiffDataNode(imageIndex, pixelsIndex, tiffDataIndex, true); 
     1840    tiffDataNode.setFirstZ(firstZ); 
     1841  } 
     1842 
     1843  /* @see loci.formats.meta.MetadataStore#setTiffDataIFD(Integer, int, int, int) */ 
     1844  public void setTiffDataIFD(Integer ifd, int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     1845    if (ifd == null) return; 
     1846    TiffDataNode tiffDataNode = getTiffDataNode(imageIndex, pixelsIndex, tiffDataIndex, true); 
     1847    tiffDataNode.setIFD(ifd); 
     1848  } 
     1849 
     1850  /* @see loci.formats.meta.MetadataStore#setTiffDataNumPlanes(Integer, int, int, int) */ 
     1851  public void setTiffDataNumPlanes(Integer numPlanes, int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     1852    if (numPlanes == null) return; 
     1853    TiffDataNode tiffDataNode = getTiffDataNode(imageIndex, pixelsIndex, tiffDataIndex, true); 
     1854    tiffDataNode.setNumPlanes(numPlanes); 
     1855  } 
     1856 
     1857  /* @see loci.formats.meta.MetadataStore#setTiffDataUUID(String, int, int, int) */ 
     1858  public void setTiffDataUUID(String uuid, int imageIndex, int pixelsIndex, int tiffDataIndex) { 
     1859    if (uuid == null) return; 
     1860    UUIDNode uuidNode = getUUIDNode(imageIndex, pixelsIndex, tiffDataIndex, true); 
     1861    uuidNode.setCData(uuid); 
    17591862  } 
    17601863 
     
    19602063  } 
    19612064 
     2065  // Image+/Pixels+/TiffData+ 
     2066  private TiffDataNode getTiffDataNode(int imageIndex, int pixelsIndex, int tiffDataIndex, boolean create) { 
     2067    // get Image+/Pixels+ node 
     2068    PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, create); 
     2069    if (pixels == null) return null; 
     2070    // get TiffData+ node 
     2071    int count = pixels.getTiffDataCount(); 
     2072    if (!create && count <= tiffDataIndex) return null; 
     2073    for (int i=count; i<=tiffDataIndex; i++) new TiffDataNode(pixels); 
     2074    List list = pixels.getTiffDataList(); 
     2075    return (TiffDataNode) list.get(tiffDataIndex); 
     2076  } 
     2077 
     2078  // Image+/Pixels+/TiffData+/UUID 
     2079  private UUIDNode getUUIDNode(int imageIndex, int pixelsIndex, int tiffDataIndex, boolean create) { 
     2080    // get Image+/Pixels+/TiffData+ node 
     2081    TiffDataNode tiffData = getTiffDataNode(imageIndex, pixelsIndex, tiffDataIndex, create); 
     2082    if (tiffData == null) return null; 
     2083    // get UUID node 
     2084    UUIDNode uuid = tiffData.getUUID(); 
     2085    if (uuid == null) { 
     2086      if (create) uuid = new UUIDNode(tiffData); 
     2087      else return null; 
     2088    } 
     2089    return uuid; 
     2090  } 
     2091 
    19622092  // Image+/StageLabel 
    19632093  private StageLabelNode getStageLabelNode(int imageIndex, boolean create) { 
  • trunk/loci/formats/ome/OMEXMLMetadata.java

    r3982 r3988  
    2525package loci.formats.ome; 
    2626 
    27 import loci.formats.*; 
    2827import loci.formats.meta.MetadataRetrieve; 
    2928import loci.formats.meta.MetadataStore; 
     
    7170   */ 
    7271  public abstract String dumpXML(); 
     72 
     73  /** Sets the UUID for this OME-XML block. */ 
     74  public void setUUID(String uuid) { 
     75    Element ome = root.getDOMElement(); 
     76    DOMUtil.setAttribute("UUID", uuid, ome); 
     77  } 
     78 
     79  /** Gets the UUID for this OME-XML block. */ 
     80  public String getUUID() { 
     81    Element ome = root.getDOMElement(); 
     82    return DOMUtil.getAttribute("UUID", ome); 
     83  } 
    7384 
    7485  /** Adds the key/value pair as a new OriginalMetadata node. */ 
Note: See TracChangeset for help on using the changeset viewer.