Changeset 4112


Ignore:
Timestamp:
06/12/08 22:47:14 (12 years ago)
Author:
melissa
Message:

Added getter/setter for Image's InstrumentRef. Might be some bugs in the OMEXMLMetadata implementation (hasn't been 100% tested), but should work for OMERO's purposes.

Location:
trunk/loci/formats
Files:
11 edited

Legend:

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

    r4065 r4112  
    109109#else 
    110110    ${last}Node $lastVar = get${last}Node($q.varsList(), false); 
     111  #if ($prop.endsWith("Ref")) 
     112    #set ($refName = $prop.replaceAll('Ref', '')) 
     113    ${refName}Node node = ${lastVar}.get${refName}(); 
     114    OMENode ome = (OMENode) root; 
     115    List list = ome.get${refName}List(); 
     116    for (int i=0; i<list.size(); i++) { 
     117      Object o = list.get(i); 
     118      if (o.equals(node)) return new Integer(i); 
     119    } 
     120    return null; 
     121  #else   
    111122    return $lastVar == null ? null : $q.getter($lastVar); 
     123  #end 
    112124#end##if "-" 
    113125  } 
     
    156168    if ($varName == null) return; 
    157169    ${last}Node ${lastVar}Node = get${last}Node($q.varsList(), true); 
     170  #if ($prop.endsWith("Ref")) 
     171    #set ($refName = $prop.replaceAll('Ref', '')) 
     172    ${refName}Node node = get${refName}Node(${varName}.intValue(), true); 
     173    ${prop}Node ref = new ${prop}Node(${lastVar}Node); 
     174    ref.set${refName}Node(node); 
     175  #else    
    158176    $q.setter("${lastVar}Node", $varName); 
     177  #end  
    159178#end##if "-" 
    160179  } 
  • trunk/loci/formats/auto/entities.txt

    r4085 r4112  
    5252type = String 
    5353description = the full description of the image 
     54 
     55[Image InstrumentRef] 
     56type = Integer 
     57description = TODO 
    5458 
    5559## Pixels ## 
  • trunk/loci/formats/meta/AggregateMetadata.java

    r4065 r4112  
    2525 * 
    2626 * THIS IS AUTOMATICALLY GENERATED CODE.  DO NOT MODIFY. 
    27  * Created by curtis via MetadataAutogen on May 23, 2008 4:44:30 PM CDT 
     27 * Created by melissa via MetadataAutogen on Jun 12, 2008 10:39:37 PM CDT 
    2828 * 
    2929 *----------------------------------------------------------------------------- 
     
    846846  } 
    847847 
     848  /* @see MetadataRetrieve#getImageInstrumentRef(int) */ 
     849  public Integer getImageInstrumentRef(int imageIndex) { 
     850    for (Iterator iter = delegates.iterator(); iter.hasNext();) { 
     851      Object o = iter.next(); 
     852      if (o instanceof MetadataRetrieve) { 
     853        MetadataRetrieve retrieve = (MetadataRetrieve) o; 
     854        Integer result = retrieve.getImageInstrumentRef(imageIndex); 
     855        if (result != null) return result; 
     856      } 
     857    } 
     858    return null; 
     859  } 
     860 
    848861  /* @see MetadataRetrieve#getImageName(int) */ 
    849862  public String getImageName(int imageIndex) { 
     
    28322845  } 
    28332846 
     2847  /* @see MetadataStore#setImageInstrumentRef(Integer, int) */ 
     2848  public void setImageInstrumentRef(Integer instrumentRef, int imageIndex) { 
     2849    for (Iterator iter = delegates.iterator(); iter.hasNext();) { 
     2850      Object o = iter.next(); 
     2851      if (o instanceof MetadataStore) { 
     2852        MetadataStore store = (MetadataStore) o; 
     2853        store.setImageInstrumentRef(instrumentRef, imageIndex); 
     2854      } 
     2855    } 
     2856  } 
     2857 
    28342858  /* @see MetadataStore#setImageName(String, int) */ 
    28352859  public void setImageName(String name, int imageIndex) { 
  • trunk/loci/formats/meta/DummyMetadata.java

    r4065 r4112  
    2525 * 
    2626 * THIS IS AUTOMATICALLY GENERATED CODE.  DO NOT MODIFY. 
    27  * Created by curtis via MetadataAutogen on May 23, 2008 4:44:30 PM CDT 
     27 * Created by melissa via MetadataAutogen on Jun 12, 2008 10:39:37 PM CDT 
    2828 * 
    2929 *----------------------------------------------------------------------------- 
     
    329329    return null; 
    330330  } 
     331  /* @see MetadataRetrieve#getImageInstrumentRef(int) */ 
     332  public Integer getImageInstrumentRef(int imageIndex) { 
     333    return null; 
     334  } 
    331335  /* @see MetadataRetrieve#getImageName(int) */ 
    332336  public String getImageName(int imageIndex) { 
     
    10371041  } 
    10381042 
     1043  /* @see MetadataStore#setImageInstrumentRef(Integer, int) */ 
     1044  public void setImageInstrumentRef(Integer instrumentRef, int imageIndex) { 
     1045  } 
     1046 
    10391047  /* @see MetadataStore#setImageName(String, int) */ 
    10401048  public void setImageName(String name, int imageIndex) { 
  • trunk/loci/formats/meta/FilterMetadata.java

    r4065 r4112  
    2525 * 
    2626 * THIS IS AUTOMATICALLY GENERATED CODE.  DO NOT MODIFY. 
    27  * Created by curtis via MetadataAutogen on May 23, 2008 4:44:30 PM CDT 
     27 * Created by melissa via MetadataAutogen on Jun 12, 2008 10:39:37 PM CDT 
    2828 * 
    2929 *----------------------------------------------------------------------------- 
     
    297297  } 
    298298 
     299  /* @see MetadataStore#setImageInstrumentRef(Integer, int) */ 
     300  public void setImageInstrumentRef(Integer instrumentRef, int imageIndex) { 
     301    store.setImageInstrumentRef(instrumentRef, imageIndex); 
     302  } 
     303 
    299304  /* @see MetadataStore#setImageName(String, int) */ 
    300305  public void setImageName(String name, int imageIndex) { 
  • trunk/loci/formats/meta/MetadataConverter.java

    r4079 r4112  
    2525 * 
    2626 * THIS IS AUTOMATICALLY GENERATED CODE.  DO NOT MODIFY. 
    27  * Created by curtis via MetadataAutogen on May 30, 2008 10:37:42 AM CDT 
     27 * Created by melissa via MetadataAutogen on Jun 12, 2008 10:39:37 PM CDT 
    2828 * 
    2929 *----------------------------------------------------------------------------- 
     
    8080      String imageIDValue = src.getImageID(imageIndex); 
    8181      if (imageIDValue != null) dest.setImageID(imageIDValue, imageIndex); 
     82      Integer imageInstrumentRefValue = src.getImageInstrumentRef(imageIndex); 
     83      if (imageInstrumentRefValue != null) dest.setImageInstrumentRef(imageInstrumentRefValue, imageIndex); 
    8284      String imageNameValue = src.getImageName(imageIndex); 
    8385      if (imageNameValue != null) dest.setImageName(imageNameValue, imageIndex); 
  • trunk/loci/formats/meta/MetadataRetrieve.java

    r4065 r4112  
    2525 * 
    2626 * THIS IS AUTOMATICALLY GENERATED CODE.  DO NOT MODIFY. 
    27  * Created by curtis via MetadataAutogen on May 23, 2008 4:44:30 PM CDT 
     27 * Created by melissa via MetadataAutogen on Jun 12, 2008 10:39:37 PM CDT 
    2828 * 
    2929 *----------------------------------------------------------------------------- 
     
    347347 
    348348  /** 
     349   * For a particular Image, gets TODO. 
     350   * @param imageIndex index of the Image 
     351   */ 
     352  Integer getImageInstrumentRef(int imageIndex); 
     353 
     354  /** 
    349355   * For a particular Image, gets the full name of the image. 
    350356   * @param imageIndex index of the Image 
  • trunk/loci/formats/meta/MetadataStore.java

    r4065 r4112  
    2525 * 
    2626 * THIS IS AUTOMATICALLY GENERATED CODE.  DO NOT MODIFY. 
    27  * Created by curtis via MetadataAutogen on May 23, 2008 4:44:30 PM CDT 
     27 * Created by melissa via MetadataAutogen on Jun 12, 2008 10:39:37 PM CDT 
    2828 * 
    2929 *----------------------------------------------------------------------------- 
     
    363363 
    364364  /** 
     365   * For a particular Image, sets TODO. 
     366   * @param instrumentRef TODO 
     367   * @param imageIndex index of the Image 
     368   */ 
     369  void setImageInstrumentRef(Integer instrumentRef, int imageIndex); 
     370 
     371  /** 
    365372   * For a particular Image, sets the full name of the image. 
    366373   * @param name the full name of the image 
  • trunk/loci/formats/ome/OMEXML2003FCMetadata.java

    r4065 r4112  
    2525 * 
    2626 * THIS IS AUTOMATICALLY GENERATED CODE.  DO NOT MODIFY. 
    27  * Created by curtis via MetadataAutogen on May 23, 2008 4:44:30 PM CDT 
     27 * Created by melissa via MetadataAutogen on Jun 12, 2008 10:39:37 PM CDT 
    2828 * 
    2929 *----------------------------------------------------------------------------- 
     
    221221  public String getArcType(int instrumentIndex, int lightSourceIndex) { 
    222222    ArcNode arc = getArcNode(instrumentIndex, lightSourceIndex, false); 
    223     return arc == null ? null : arc.getType(); 
    224   } 
     223      return arc == null ? null : arc.getType(); 
     224    } 
    225225 
    226226  // - ChannelComponent property retrieval - 
     
    229229  public String getChannelComponentColorDomain(int imageIndex, int logicalChannelIndex, int channelComponentIndex) { 
    230230    ChannelComponentNode channelComponent = getChannelComponentNode(imageIndex, logicalChannelIndex, channelComponentIndex, false); 
    231     return channelComponent == null ? null : channelComponent.getColorDomain(); 
    232   } 
     231      return channelComponent == null ? null : channelComponent.getColorDomain(); 
     232    } 
    233233 
    234234  /* @see loci.formats.meta.MetadataRetrieve#getChannelComponentIndex(int, int, int) */ 
    235235  public Integer getChannelComponentIndex(int imageIndex, int logicalChannelIndex, int channelComponentIndex) { 
    236236    ChannelComponentNode channelComponent = getChannelComponentNode(imageIndex, logicalChannelIndex, channelComponentIndex, false); 
    237     return channelComponent == null ? null : channelComponent.getIndex(); 
    238   } 
     237      return channelComponent == null ? null : channelComponent.getIndex(); 
     238    } 
    239239 
    240240  // - Detector property retrieval - 
     
    243243  public Float getDetectorGain(int instrumentIndex, int detectorIndex) { 
    244244    DetectorNode detector = getDetectorNode(instrumentIndex, detectorIndex, false); 
    245     return detector == null ? null : detector.getGain(); 
    246   } 
     245      return detector == null ? null : detector.getGain(); 
     246    } 
    247247 
    248248  /* @see loci.formats.meta.MetadataRetrieve#getDetectorID(int, int) */ 
    249249  public String getDetectorID(int instrumentIndex, int detectorIndex) { 
    250250    DetectorNode detector = getDetectorNode(instrumentIndex, detectorIndex, false); 
    251     return detector == null ? null : detector.getNodeID(); 
    252   } 
     251      return detector == null ? null : detector.getNodeID(); 
     252    } 
    253253 
    254254  /* @see loci.formats.meta.MetadataRetrieve#getDetectorManufacturer(int, int) */ 
    255255  public String getDetectorManufacturer(int instrumentIndex, int detectorIndex) { 
    256256    DetectorNode detector = getDetectorNode(instrumentIndex, detectorIndex, false); 
    257     return detector == null ? null : detector.getManufacturer(); 
    258   } 
     257      return detector == null ? null : detector.getManufacturer(); 
     258    } 
    259259 
    260260  /* @see loci.formats.meta.MetadataRetrieve#getDetectorModel(int, int) */ 
    261261  public String getDetectorModel(int instrumentIndex, int detectorIndex) { 
    262262    DetectorNode detector = getDetectorNode(instrumentIndex, detectorIndex, false); 
    263     return detector == null ? null : detector.getModel(); 
    264   } 
     263      return detector == null ? null : detector.getModel(); 
     264    } 
    265265 
    266266  /* @see loci.formats.meta.MetadataRetrieve#getDetectorOffset(int, int) */ 
    267267  public Float getDetectorOffset(int instrumentIndex, int detectorIndex) { 
    268268    DetectorNode detector = getDetectorNode(instrumentIndex, detectorIndex, false); 
    269     return detector == null ? null : detector.getOffset(); 
    270   } 
     269      return detector == null ? null : detector.getOffset(); 
     270    } 
    271271 
    272272  /* @see loci.formats.meta.MetadataRetrieve#getDetectorSerialNumber(int, int) */ 
    273273  public String getDetectorSerialNumber(int instrumentIndex, int detectorIndex) { 
    274274    DetectorNode detector = getDetectorNode(instrumentIndex, detectorIndex, false); 
    275     return detector == null ? null : detector.getSerialNumber(); 
    276   } 
     275      return detector == null ? null : detector.getSerialNumber(); 
     276    } 
    277277 
    278278  /* @see loci.formats.meta.MetadataRetrieve#getDetectorType(int, int) */ 
    279279  public String getDetectorType(int instrumentIndex, int detectorIndex) { 
    280280    DetectorNode detector = getDetectorNode(instrumentIndex, detectorIndex, false); 
    281     return detector == null ? null : detector.getType(); 
    282   } 
     281      return detector == null ? null : detector.getType(); 
     282    } 
    283283 
    284284  /* @see loci.formats.meta.MetadataRetrieve#getDetectorVoltage(int, int) */ 
    285285  public Float getDetectorVoltage(int instrumentIndex, int detectorIndex) { 
    286286    DetectorNode detector = getDetectorNode(instrumentIndex, detectorIndex, false); 
    287     return detector == null ? null : detector.getVoltage(); 
    288   } 
     287      return detector == null ? null : detector.getVoltage(); 
     288    } 
    289289 
    290290  // - DetectorSettings property retrieval - 
     
    293293  public String getDetectorSettingsDetector(int imageIndex, int logicalChannelIndex) { 
    294294    DetectorRefNode detectorRef = getDetectorRefNode(imageIndex, logicalChannelIndex, false); 
    295     return detectorRef == null ? null : detectorRef.getNodeID(); 
    296   } 
     295      return detectorRef == null ? null : detectorRef.getNodeID(); 
     296    } 
    297297 
    298298  /* @see loci.formats.meta.MetadataRetrieve#getDetectorSettingsGain(int, int) */ 
    299299  public Float getDetectorSettingsGain(int imageIndex, int logicalChannelIndex) { 
    300300    DetectorRefNode detectorRef = getDetectorRefNode(imageIndex, logicalChannelIndex, false); 
    301     return detectorRef == null ? null : detectorRef.getGain(); 
    302   } 
     301      return detectorRef == null ? null : detectorRef.getGain(); 
     302    } 
    303303 
    304304  /* @see loci.formats.meta.MetadataRetrieve#getDetectorSettingsOffset(int, int) */ 
    305305  public Float getDetectorSettingsOffset(int imageIndex, int logicalChannelIndex) { 
    306306    DetectorRefNode detectorRef = getDetectorRefNode(imageIndex, logicalChannelIndex, false); 
    307     return detectorRef == null ? null : detectorRef.getOffset(); 
    308   } 
     307      return detectorRef == null ? null : detectorRef.getOffset(); 
     308    } 
    309309 
    310310  // - Dimensions property retrieval - 
     
    313313  public Float getDimensionsPhysicalSizeX(int imageIndex, int pixelsIndex) { 
    314314    ImageNode image = getImageNode(imageIndex, false); 
    315     return image == null ? null : image.getPixelSizeX(); 
    316   } 
     315      return image == null ? null : image.getPixelSizeX(); 
     316    } 
    317317 
    318318  /* @see loci.formats.meta.MetadataRetrieve#getDimensionsPhysicalSizeY(int, int) */ 
    319319  public Float getDimensionsPhysicalSizeY(int imageIndex, int pixelsIndex) { 
    320320    ImageNode image = getImageNode(imageIndex, false); 
    321     return image == null ? null : image.getPixelSizeY(); 
    322   } 
     321      return image == null ? null : image.getPixelSizeY(); 
     322    } 
    323323 
    324324  /* @see loci.formats.meta.MetadataRetrieve#getDimensionsPhysicalSizeZ(int, int) */ 
    325325  public Float getDimensionsPhysicalSizeZ(int imageIndex, int pixelsIndex) { 
    326326    ImageNode image = getImageNode(imageIndex, false); 
    327     return image == null ? null : image.getPixelSizeZ(); 
    328   } 
     327      return image == null ? null : image.getPixelSizeZ(); 
     328    } 
    329329 
    330330  /* @see loci.formats.meta.MetadataRetrieve#getDimensionsTimeIncrement(int, int) */ 
    331331  public Float getDimensionsTimeIncrement(int imageIndex, int pixelsIndex) { 
    332332    ImageNode image = getImageNode(imageIndex, false); 
    333     return image == null ? null : image.getTimeIncrement(); 
    334   } 
     333      return image == null ? null : image.getTimeIncrement(); 
     334    } 
    335335 
    336336  /* @see loci.formats.meta.MetadataRetrieve#getDimensionsWaveIncrement(int, int) */ 
    337337  public Integer getDimensionsWaveIncrement(int imageIndex, int pixelsIndex) { 
    338338    ImageNode image = getImageNode(imageIndex, false); 
    339     return image == null ? null : image.getWaveIncrement(); 
    340   } 
     339      return image == null ? null : image.getWaveIncrement(); 
     340    } 
    341341 
    342342  /* @see loci.formats.meta.MetadataRetrieve#getDimensionsWaveStart(int, int) */ 
    343343  public Integer getDimensionsWaveStart(int imageIndex, int pixelsIndex) { 
    344344    ImageNode image = getImageNode(imageIndex, false); 
    345     return image == null ? null : image.getWaveStart(); 
    346   } 
     345      return image == null ? null : image.getWaveStart(); 
     346    } 
    347347 
    348348  // - DisplayOptions property retrieval - 
     
    351351  public String getDisplayOptionsID(int imageIndex) { 
    352352    DisplayOptionsNode displayOptions = getDisplayOptionsNode(imageIndex, false); 
    353     return displayOptions == null ? null : displayOptions.getNodeID(); 
    354   } 
     353      return displayOptions == null ? null : displayOptions.getNodeID(); 
     354    } 
    355355 
    356356  /* @see loci.formats.meta.MetadataRetrieve#getDisplayOptionsZoom(int) */ 
    357357  public Float getDisplayOptionsZoom(int imageIndex) { 
    358358    DisplayOptionsNode displayOptions = getDisplayOptionsNode(imageIndex, false); 
    359     return displayOptions == null ? null : displayOptions.getZoom(); 
    360   } 
     359      return displayOptions == null ? null : displayOptions.getZoom(); 
     360    } 
    361361 
    362362  // - DisplayOptionsProjection property retrieval - 
     
    365365  public Integer getDisplayOptionsProjectionZStart(int imageIndex) { 
    366366    ProjectionNode projection = getProjectionNode(imageIndex, false); 
    367     return projection == null ? null : projection.getZstart(); 
    368   } 
     367      return projection == null ? null : projection.getZstart(); 
     368    } 
    369369 
    370370  /* @see loci.formats.meta.MetadataRetrieve#getDisplayOptionsProjectionZStop(int) */ 
    371371  public Integer getDisplayOptionsProjectionZStop(int imageIndex) { 
    372372    ProjectionNode projection = getProjectionNode(imageIndex, false); 
    373     return projection == null ? null : projection.getZstop(); 
    374   } 
     373      return projection == null ? null : projection.getZstop(); 
     374    } 
    375375 
    376376  // - DisplayOptionsTime property retrieval - 
     
    379379  public Integer getDisplayOptionsTimeTStart(int imageIndex) { 
    380380    TimeNode time = getTimeNode(imageIndex, false); 
    381     return time == null ? null : time.getTstart(); 
    382   } 
     381      return time == null ? null : time.getTstart(); 
     382    } 
    383383 
    384384  /* @see loci.formats.meta.MetadataRetrieve#getDisplayOptionsTimeTStop(int) */ 
    385385  public Integer getDisplayOptionsTimeTStop(int imageIndex) { 
    386386    TimeNode time = getTimeNode(imageIndex, false); 
    387     return time == null ? null : time.getTstop(); 
    388   } 
     387      return time == null ? null : time.getTstop(); 
     388    } 
    389389 
    390390  // - Experimenter property retrieval - 
     
    393393  public String getExperimenterEmail(int experimenterIndex) { 
    394394    ExperimenterNode experimenter = getExperimenterNode(experimenterIndex, false); 
    395     return experimenter == null ? null : experimenter.getEmail(); 
    396   } 
     395      return experimenter == null ? null : experimenter.getEmail(); 
     396    } 
    397397 
    398398  /* @see loci.formats.meta.MetadataRetrieve#getExperimenterFirstName(int) */ 
    399399  public String getExperimenterFirstName(int experimenterIndex) { 
    400400    ExperimenterNode experimenter = getExperimenterNode(experimenterIndex, false); 
    401     return experimenter == null ? null : experimenter.getFirstName(); 
    402   } 
     401      return experimenter == null ? null : experimenter.getFirstName(); 
     402    } 
    403403 
    404404  /* @see loci.formats.meta.MetadataRetrieve#getExperimenterID(int) */ 
    405405  public String getExperimenterID(int experimenterIndex) { 
    406406    ExperimenterNode experimenter = getExperimenterNode(experimenterIndex, false); 
    407     return experimenter == null ? null : experimenter.getNodeID(); 
    408   } 
     407      return experimenter == null ? null : experimenter.getNodeID(); 
     408    } 
    409409 
    410410  /* @see loci.formats.meta.MetadataRetrieve#getExperimenterInstitution(int) */ 
    411411  public String getExperimenterInstitution(int experimenterIndex) { 
    412412    ExperimenterNode experimenter = getExperimenterNode(experimenterIndex, false); 
    413     return experimenter == null ? null : experimenter.getInstitution(); 
    414   } 
     413      return experimenter == null ? null : experimenter.getInstitution(); 
     414    } 
    415415 
    416416  /* @see loci.formats.meta.MetadataRetrieve#getExperimenterLastName(int) */ 
    417417  public String getExperimenterLastName(int experimenterIndex) { 
    418418    ExperimenterNode experimenter = getExperimenterNode(experimenterIndex, false); 
    419     return experimenter == null ? null : experimenter.getLastName(); 
    420   } 
     419      return experimenter == null ? null : experimenter.getLastName(); 
     420    } 
    421421 
    422422  // - Filament property retrieval - 
     
    425425  public String getFilamentType(int instrumentIndex, int lightSourceIndex) { 
    426426    FilamentNode filament = getFilamentNode(instrumentIndex, lightSourceIndex, false); 
    427     return filament == null ? null : filament.getType(); 
    428   } 
     427      return filament == null ? null : filament.getType(); 
     428    } 
    429429 
    430430  // - Image property retrieval - 
     
    433433  public String getImageCreationDate(int imageIndex) { 
    434434    ImageNode image = getImageNode(imageIndex, false); 
    435     return image == null ? null : image.getCreationDate(); 
    436   } 
     435      return image == null ? null : image.getCreationDate(); 
     436    } 
    437437 
    438438  /* @see loci.formats.meta.MetadataRetrieve#getImageDescription(int) */ 
    439439  public String getImageDescription(int imageIndex) { 
    440440    ImageNode image = getImageNode(imageIndex, false); 
    441     return image == null ? null : image.getDescription(); 
    442   } 
     441      return image == null ? null : image.getDescription(); 
     442    } 
    443443 
    444444  /* @see loci.formats.meta.MetadataRetrieve#getImageID(int) */ 
    445445  public String getImageID(int imageIndex) { 
    446446    ImageNode image = getImageNode(imageIndex, false); 
    447     return image == null ? null : image.getNodeID(); 
    448   } 
     447      return image == null ? null : image.getNodeID(); 
     448    } 
     449 
     450  /* @see loci.formats.meta.MetadataRetrieve#getImageInstrumentRef(int) */ 
     451  public Integer getImageInstrumentRef(int imageIndex) { 
     452    ImageNode image = getImageNode(imageIndex, false); 
     453      InstrumentNode node = image.getInstrument(); 
     454    OMENode ome = (OMENode) root; 
     455    List list = ome.getInstrumentList(); 
     456    for (int i=0; i<list.size(); i++) { 
     457      Object o = list.get(i); 
     458      if (o.equals(node)) return new Integer(i); 
     459    } 
     460    return null; 
     461    } 
    449462 
    450463  /* @see loci.formats.meta.MetadataRetrieve#getImageName(int) */ 
    451464  public String getImageName(int imageIndex) { 
    452465    ImageNode image = getImageNode(imageIndex, false); 
    453     return image == null ? null : image.getName(); 
    454   } 
     466      return image == null ? null : image.getName(); 
     467    } 
    455468 
    456469  // - ImagingEnvironment property retrieval - 
     
    459472  public Float getImagingEnvironmentAirPressure(int imageIndex) { 
    460473    ImagingEnvironmentNode imagingEnvironment = getImagingEnvironmentNode(imageIndex, false); 
    461     return imagingEnvironment == null ? null : imagingEnvironment.getAirPressure(); 
    462   } 
     474      return imagingEnvironment == null ? null : imagingEnvironment.getAirPressure(); 
     475    } 
    463476 
    464477  /* @see loci.formats.meta.MetadataRetrieve#getImagingEnvironmentCO2Percent(int) */ 
    465478  public Float getImagingEnvironmentCO2Percent(int imageIndex) { 
    466479    ImagingEnvironmentNode imagingEnvironment = getImagingEnvironmentNode(imageIndex, false); 
    467     return imagingEnvironment == null ? null : imagingEnvironment.getCO2Percent(); 
    468   } 
     480      return imagingEnvironment == null ? null : imagingEnvironment.getCO2Percent(); 
     481    } 
    469482 
    470483  /* @see loci.formats.meta.MetadataRetrieve#getImagingEnvironmentHumidity(int) */ 
    471484  public Float getImagingEnvironmentHumidity(int imageIndex) { 
    472485    ImagingEnvironmentNode imagingEnvironment = getImagingEnvironmentNode(imageIndex, false); 
    473     return imagingEnvironment == null ? null : imagingEnvironment.getHumidity(); 
    474   } 
     486      return imagingEnvironment == null ? null : imagingEnvironment.getHumidity(); 
     487    } 
    475488 
    476489  /* @see loci.formats.meta.MetadataRetrieve#getImagingEnvironmentTemperature(int) */ 
    477490  public Float getImagingEnvironmentTemperature(int imageIndex) { 
    478491    ImagingEnvironmentNode imagingEnvironment = getImagingEnvironmentNode(imageIndex, false); 
    479     return imagingEnvironment == null ? null : imagingEnvironment.getTemperature(); 
    480   } 
     492      return imagingEnvironment == null ? null : imagingEnvironment.getTemperature(); 
     493    } 
    481494 
    482495  // - Instrument property retrieval - 
     
    485498  public String getInstrumentID(int instrumentIndex) { 
    486499    InstrumentNode instrument = getInstrumentNode(instrumentIndex, false); 
    487     return instrument == null ? null : instrument.getNodeID(); 
    488   } 
     500      return instrument == null ? null : instrument.getNodeID(); 
     501    } 
    489502 
    490503  // - Laser property retrieval - 
     
    493506  public Integer getLaserFrequencyMultiplication(int instrumentIndex, int lightSourceIndex) { 
    494507    LaserNode laser = getLaserNode(instrumentIndex, lightSourceIndex, false); 
    495     return laser == null ? null : booleanToInteger(laser.getFrequencyDoubled()); 
    496   } 
     508      return laser == null ? null : booleanToInteger(laser.getFrequencyDoubled()); 
     509    } 
    497510 
    498511  /* @see loci.formats.meta.MetadataRetrieve#getLaserLaserMedium(int, int) */ 
    499512  public String getLaserLaserMedium(int instrumentIndex, int lightSourceIndex) { 
    500513    LaserNode laser = getLaserNode(instrumentIndex, lightSourceIndex, false); 
    501     return laser == null ? null : laser.getMedium(); 
    502   } 
     514      return laser == null ? null : laser.getMedium(); 
     515    } 
    503516 
    504517  /* @see loci.formats.meta.MetadataRetrieve#getLaserPulse(int, int) */ 
    505518  public String getLaserPulse(int instrumentIndex, int lightSourceIndex) { 
    506519    LaserNode laser = getLaserNode(instrumentIndex, lightSourceIndex, false); 
    507     return laser == null ? null : laser.getPulse(); 
    508   } 
     520      return laser == null ? null : laser.getPulse(); 
     521    } 
    509522 
    510523  /* @see loci.formats.meta.MetadataRetrieve#getLaserTuneable(int, int) */ 
    511524  public Boolean getLaserTuneable(int instrumentIndex, int lightSourceIndex) { 
    512525    LaserNode laser = getLaserNode(instrumentIndex, lightSourceIndex, false); 
    513     return laser == null ? null : laser.getTunable(); 
    514   } 
     526      return laser == null ? null : laser.getTunable(); 
     527    } 
    515528 
    516529  /* @see loci.formats.meta.MetadataRetrieve#getLaserType(int, int) */ 
    517530  public String getLaserType(int instrumentIndex, int lightSourceIndex) { 
    518531    LaserNode laser = getLaserNode(instrumentIndex, lightSourceIndex, false); 
    519     return laser == null ? null : laser.getType(); 
    520   } 
     532      return laser == null ? null : laser.getType(); 
     533    } 
    521534 
    522535  /* @see loci.formats.meta.MetadataRetrieve#getLaserWavelength(int, int) */ 
    523536  public Integer getLaserWavelength(int instrumentIndex, int lightSourceIndex) { 
    524537    LaserNode laser = getLaserNode(instrumentIndex, lightSourceIndex, false); 
    525     return laser == null ? null : laser.getWavelength(); 
    526   } 
     538      return laser == null ? null : laser.getWavelength(); 
     539    } 
    527540 
    528541  // - LightSource property retrieval - 
     
    531544  public String getLightSourceID(int instrumentIndex, int lightSourceIndex) { 
    532545    LightSourceNode lightSource = getLightSourceNode(instrumentIndex, lightSourceIndex, false); 
    533     return lightSource == null ? null : lightSource.getNodeID(); 
    534   } 
     546      return lightSource == null ? null : lightSource.getNodeID(); 
     547    } 
    535548 
    536549  /* @see loci.formats.meta.MetadataRetrieve#getLightSourceManufacturer(int, int) */ 
    537550  public String getLightSourceManufacturer(int instrumentIndex, int lightSourceIndex) { 
    538551    LightSourceNode lightSource = getLightSourceNode(instrumentIndex, lightSourceIndex, false); 
    539     return lightSource == null ? null : lightSource.getManufacturer(); 
    540   } 
     552      return lightSource == null ? null : lightSource.getManufacturer(); 
     553    } 
    541554 
    542555  /* @see loci.formats.meta.MetadataRetrieve#getLightSourceModel(int, int) */ 
    543556  public String getLightSourceModel(int instrumentIndex, int lightSourceIndex) { 
    544557    LightSourceNode lightSource = getLightSourceNode(instrumentIndex, lightSourceIndex, false); 
    545     return lightSource == null ? null : lightSource.getModel(); 
    546   } 
     558      return lightSource == null ? null : lightSource.getModel(); 
     559    } 
    547560 
    548561  /* @see loci.formats.meta.MetadataRetrieve#getLightSourcePower(int, int) */ 
     
    555568  public String getLightSourceSerialNumber(int instrumentIndex, int lightSourceIndex) { 
    556569    LightSourceNode lightSource = getLightSourceNode(instrumentIndex, lightSourceIndex, false); 
    557     return lightSource == null ? null : lightSource.getSerialNumber(); 
    558   } 
     570      return lightSource == null ? null : lightSource.getSerialNumber(); 
     571    } 
    559572 
    560573  // - LightSourceSettings property retrieval - 
     
    563576  public Float getLightSourceSettingsAttenuation(int imageIndex, int logicalChannelIndex) { 
    564577    LightSourceRefNode lightSourceRef = getLightSourceRefNode(imageIndex, logicalChannelIndex, false); 
    565     return lightSourceRef == null ? null : lightSourceRef.getAttenuation(); 
    566   } 
     578      return lightSourceRef == null ? null : lightSourceRef.getAttenuation(); 
     579    } 
    567580 
    568581  /* @see loci.formats.meta.MetadataRetrieve#getLightSourceSettingsLightSource(int, int) */ 
    569582  public String getLightSourceSettingsLightSource(int imageIndex, int logicalChannelIndex) { 
    570583    LightSourceRefNode lightSourceRef = getLightSourceRefNode(imageIndex, logicalChannelIndex, false); 
    571     return lightSourceRef == null ? null : lightSourceRef.getNodeID(); 
    572   } 
     584      return lightSourceRef == null ? null : lightSourceRef.getNodeID(); 
     585    } 
    573586 
    574587  /* @see loci.formats.meta.MetadataRetrieve#getLightSourceSettingsWavelength(int, int) */ 
    575588  public Integer getLightSourceSettingsWavelength(int imageIndex, int logicalChannelIndex) { 
    576589    LightSourceRefNode lightSourceRef = getLightSourceRefNode(imageIndex, logicalChannelIndex, false); 
    577     return lightSourceRef == null ? null : lightSourceRef.getWavelength(); 
    578   } 
     590      return lightSourceRef == null ? null : lightSourceRef.getWavelength(); 
     591    } 
    579592 
    580593  // - LogicalChannel property retrieval - 
     
    583596  public String getLogicalChannelContrastMethod(int imageIndex, int logicalChannelIndex) { 
    584597    ChannelInfoNode channelInfo = getChannelInfoNode(imageIndex, logicalChannelIndex, false); 
    585     return channelInfo == null ? null : channelInfo.getContrastMethod(); 
    586   } 
     598      return channelInfo == null ? null : channelInfo.getContrastMethod(); 
     599    } 
    587600 
    588601  /* @see loci.formats.meta.MetadataRetrieve#getLogicalChannelEmWave(int, int) */ 
    589602  public Integer getLogicalChannelEmWave(int imageIndex, int logicalChannelIndex) { 
    590603    ChannelInfoNode channelInfo = getChannelInfoNode(imageIndex, logicalChannelIndex, false); 
    591     return channelInfo == null ? null : channelInfo.getEmWave(); 
    592   } 
     604      return channelInfo == null ? null : channelInfo.getEmWave(); 
     605    } 
    593606 
    594607  /* @see loci.formats.meta.MetadataRetrieve#getLogicalChannelExWave(int, int) */ 
    595608  public Integer getLogicalChannelExWave(int imageIndex, int logicalChannelIndex) { 
    596609    ChannelInfoNode channelInfo = getChannelInfoNode(imageIndex, logicalChannelIndex, false); 
    597     return channelInfo == null ? null : channelInfo.getExWave(); 
    598   } 
     610      return channelInfo == null ? null : channelInfo.getExWave(); 
     611    } 
    599612 
    600613  /* @see loci.formats.meta.MetadataRetrieve#getLogicalChannelFluor(int, int) */ 
    601614  public String getLogicalChannelFluor(int imageIndex, int logicalChannelIndex) { 
    602615    ChannelInfoNode channelInfo = getChannelInfoNode(imageIndex, logicalChannelIndex, false); 
    603     return channelInfo == null ? null : channelInfo.getFluor(); 
    604   } 
     616      return channelInfo == null ? null : channelInfo.getFluor(); 
     617    } 
    605618 
    606619  /* @see loci.formats.meta.MetadataRetrieve#getLogicalChannelID(int, int) */ 
    607620  public String getLogicalChannelID(int imageIndex, int logicalChannelIndex) { 
    608621    ChannelInfoNode channelInfo = getChannelInfoNode(imageIndex, logicalChannelIndex, false); 
    609     return channelInfo == null ? null : channelInfo.getNodeID(); 
    610   } 
     622      return channelInfo == null ? null : channelInfo.getNodeID(); 
     623    } 
    611624 
    612625  /* @see loci.formats.meta.MetadataRetrieve#getLogicalChannelIlluminationType(int, int) */ 
    613626  public String getLogicalChannelIlluminationType(int imageIndex, int logicalChannelIndex) { 
    614627    ChannelInfoNode channelInfo = getChannelInfoNode(imageIndex, logicalChannelIndex, false); 
    615     return channelInfo == null ? null : channelInfo.getIlluminationType(); 
    616   } 
     628      return channelInfo == null ? null : channelInfo.getIlluminationType(); 
     629    } 
    617630 
    618631  /* @see loci.formats.meta.MetadataRetrieve#getLogicalChannelMode(int, int) */ 
    619632  public String getLogicalChannelMode(int imageIndex, int logicalChannelIndex) { 
    620633    ChannelInfoNode channelInfo = getChannelInfoNode(imageIndex, logicalChannelIndex, false); 
    621     return channelInfo == null ? null : channelInfo.getMode(); 
    622   } 
     634      return channelInfo == null ? null : channelInfo.getMode(); 
     635    } 
    623636 
    624637  /* @see loci.formats.meta.MetadataRetrieve#getLogicalChannelName(int, int) */ 
    625638  public String getLogicalChannelName(int imageIndex, int logicalChannelIndex) { 
    626639    ChannelInfoNode channelInfo = getChannelInfoNode(imageIndex, logicalChannelIndex, false); 
    627     return channelInfo == null ? null : channelInfo.getName(); 
    628   } 
     640      return channelInfo == null ? null : channelInfo.getName(); 
     641    } 
    629642 
    630643  /* @see loci.formats.meta.MetadataRetrieve#getLogicalChannelNdFilter(int, int) */ 
    631644  public Float getLogicalChannelNdFilter(int imageIndex, int logicalChannelIndex) { 
    632645    ChannelInfoNode channelInfo = getChannelInfoNode(imageIndex, logicalChannelIndex, false); 
    633     return channelInfo == null ? null : channelInfo.getNDfilter(); 
    634   } 
     646      return channelInfo == null ? null : channelInfo.getNDfilter(); 
     647    } 
    635648 
    636649  /* @see loci.formats.meta.MetadataRetrieve#getLogicalChannelPhotometricInterpretation(int, int) */ 
    637650  public String getLogicalChannelPhotometricInterpretation(int imageIndex, int logicalChannelIndex) { 
    638651    ChannelInfoNode channelInfo = getChannelInfoNode(imageIndex, logicalChannelIndex, false); 
    639     return channelInfo == null ? null : channelInfo.getPhotometricInterpretation(); 
    640   } 
     652      return channelInfo == null ? null : channelInfo.getPhotometricInterpretation(); 
     653    } 
    641654 
    642655  /* @see loci.formats.meta.MetadataRetrieve#getLogicalChannelPinholeSize(int, int) */ 
    643656  public Integer getLogicalChannelPinholeSize(int imageIndex, int logicalChannelIndex) { 
    644657    ChannelInfoNode channelInfo = getChannelInfoNode(imageIndex, logicalChannelIndex, false); 
    645     return channelInfo == null ? null : channelInfo.getPinholeSize(); 
    646   } 
     658      return channelInfo == null ? null : channelInfo.getPinholeSize(); 
     659    } 
    647660 
    648661  /* @see loci.formats.meta.MetadataRetrieve#getLogicalChannelPockelCellSetting(int, int) */ 
     
    655668  public Integer getLogicalChannelSamplesPerPixel(int imageIndex, int logicalChannelIndex) { 
    656669    ChannelInfoNode channelInfo = getChannelInfoNode(imageIndex, logicalChannelIndex, false); 
    657     return channelInfo == null ? null : channelInfo.getSamplesPerPixel(); 
    658   } 
     670      return channelInfo == null ? null : channelInfo.getSamplesPerPixel(); 
     671    } 
    659672 
    660673  // - OTF property retrieval - 
     
    663676  public String getOTFID(int instrumentIndex, int otfIndex) { 
    664677    OTFNode otf = getOTFNode(instrumentIndex, otfIndex, false); 
    665     return otf == null ? null : otf.getNodeID(); 
    666   } 
     678      return otf == null ? null : otf.getNodeID(); 
     679    } 
    667680 
    668681  /* @see loci.formats.meta.MetadataRetrieve#getOTFOpticalAxisAveraged(int, int) */ 
    669682  public Boolean getOTFOpticalAxisAveraged(int instrumentIndex, int otfIndex) { 
    670683    OTFNode otf = getOTFNode(instrumentIndex, otfIndex, false); 
    671     return otf == null ? null : otf.getOpticalAxisAvrg(); 
    672   } 
     684      return otf == null ? null : otf.getOpticalAxisAvrg(); 
     685    } 
    673686 
    674687  /* @see loci.formats.meta.MetadataRetrieve#getOTFPixelType(int, int) */ 
    675688  public String getOTFPixelType(int instrumentIndex, int otfIndex) { 
    676689    OTFNode otf = getOTFNode(instrumentIndex, otfIndex, false); 
    677     return otf == null ? null : otf.getPixelType(); 
    678   } 
     690      return otf == null ? null : otf.getPixelType(); 
     691    } 
    679692 
    680693  /* @see loci.formats.meta.MetadataRetrieve#getOTFSizeX(int, int) */ 
    681694  public Integer getOTFSizeX(int instrumentIndex, int otfIndex) { 
    682695    OTFNode otf = getOTFNode(instrumentIndex, otfIndex, false); 
    683     return otf == null ? null : otf.getSizeX(); 
    684   } 
     696      return otf == null ? null : otf.getSizeX(); 
     697    } 
    685698 
    686699  /* @see loci.formats.meta.MetadataRetrieve#getOTFSizeY(int, int) */ 
    687700  public Integer getOTFSizeY(int instrumentIndex, int otfIndex) { 
    688701    OTFNode otf = getOTFNode(instrumentIndex, otfIndex, false); 
    689     return otf == null ? null : otf.getSizeY(); 
    690   } 
     702      return otf == null ? null : otf.getSizeY(); 
     703    } 
    691704 
    692705  // - Objective property retrieval - 
     
    695708  public Float getObjectiveCalibratedMagnification(int instrumentIndex, int objectiveIndex) { 
    696709    ObjectiveNode objective = getObjectiveNode(instrumentIndex, objectiveIndex, false); 
    697     return objective == null ? null : objective.getMagnification(); 
    698   } 
     710      return objective == null ? null : objective.getMagnification(); 
     711    } 
    699712 
    700713  /* @see loci.formats.meta.MetadataRetrieve#getObjectiveCorrection(int, int) */ 
     
    707720  public String getObjectiveID(int instrumentIndex, int objectiveIndex) { 
    708721    ObjectiveNode objective = getObjectiveNode(instrumentIndex, objectiveIndex, false); 
    709     return objective == null ? null : objective.getNodeID(); 
    710   } 
     722      return objective == null ? null : objective.getNodeID(); 
     723    } 
    711724 
    712725  /* @see loci.formats.meta.MetadataRetrieve#getObjectiveImmersion(int, int) */ 
     
    719732  public Float getObjectiveLensNA(int instrumentIndex, int objectiveIndex) { 
    720733    ObjectiveNode objective = getObjectiveNode(instrumentIndex, objectiveIndex, false); 
    721     return objective == null ? null : objective.getLensNA(); 
    722   } 
     734      return objective == null ? null : objective.getLensNA(); 
     735    } 
    723736 
    724737  /* @see loci.formats.meta.MetadataRetrieve#getObjectiveManufacturer(int, int) */ 
    725738  public String getObjectiveManufacturer(int instrumentIndex, int objectiveIndex) { 
    726739    ObjectiveNode objective = getObjectiveNode(instrumentIndex, objectiveIndex, false); 
    727     return objective == null ? null : objective.getManufacturer(); 
    728   } 
     740      return objective == null ? null : objective.getManufacturer(); 
     741    } 
    729742 
    730743  /* @see loci.formats.meta.MetadataRetrieve#getObjectiveModel(int, int) */ 
    731744  public String getObjectiveModel(int instrumentIndex, int objectiveIndex) { 
    732745    ObjectiveNode objective = getObjectiveNode(instrumentIndex, objectiveIndex, false); 
    733     return objective == null ? null : objective.getModel(); 
    734   } 
     746      return objective == null ? null : objective.getModel(); 
     747    } 
    735748 
    736749  /* @see loci.formats.meta.MetadataRetrieve#getObjectiveNominalMagnification(int, int) */ 
     
    743756  public String getObjectiveSerialNumber(int instrumentIndex, int objectiveIndex) { 
    744757    ObjectiveNode objective = getObjectiveNode(instrumentIndex, objectiveIndex, false); 
    745     return objective == null ? null : objective.getSerialNumber(); 
    746   } 
     758      return objective == null ? null : objective.getSerialNumber(); 
     759    } 
    747760 
    748761  /* @see loci.formats.meta.MetadataRetrieve#getObjectiveWorkingDistance(int, int) */ 
     
    757770  public Boolean getPixelsBigEndian(int imageIndex, int pixelsIndex) { 
    758771    PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, false); 
    759     return pixels == null ? null : pixels.getBigEndian(); 
    760   } 
     772      return pixels == null ? null : pixels.getBigEndian(); 
     773    } 
    761774 
    762775  /* @see loci.formats.meta.MetadataRetrieve#getPixelsDimensionOrder(int, int) */ 
    763776  public String getPixelsDimensionOrder(int imageIndex, int pixelsIndex) { 
    764777    PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, false); 
    765     return pixels == null ? null : pixels.getDimensionOrder(); 
    766   } 
     778      return pixels == null ? null : pixels.getDimensionOrder(); 
     779    } 
    767780 
    768781  /* @see loci.formats.meta.MetadataRetrieve#getPixelsID(int, int) */ 
    769782  public String getPixelsID(int imageIndex, int pixelsIndex) { 
    770783    PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, false); 
    771     return pixels == null ? null : pixels.getNodeID(); 
    772   } 
     784      return pixels == null ? null : pixels.getNodeID(); 
     785    } 
    773786 
    774787  /* @see loci.formats.meta.MetadataRetrieve#getPixelsPixelType(int, int) */ 
    775788  public String getPixelsPixelType(int imageIndex, int pixelsIndex) { 
    776789    PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, false); 
    777     return pixels == null ? null : pixels.getPixelType(); 
    778   } 
     790      return pixels == null ? null : pixels.getPixelType(); 
     791    } 
    779792 
    780793  /* @see loci.formats.meta.MetadataRetrieve#getPixelsSizeC(int, int) */ 
    781794  public Integer getPixelsSizeC(int imageIndex, int pixelsIndex) { 
    782795    PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, false); 
    783     return pixels == null ? null : pixels.getSizeC(); 
    784   } 
     796      return pixels == null ? null : pixels.getSizeC(); 
     797    } 
    785798 
    786799  /* @see loci.formats.meta.MetadataRetrieve#getPixelsSizeT(int, int) */ 
    787800  public Integer getPixelsSizeT(int imageIndex, int pixelsIndex) { 
    788801    PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, false); 
    789     return pixels == null ? null : pixels.getSizeT(); 
    790   } 
     802      return pixels == null ? null : pixels.getSizeT(); 
     803    } 
    791804 
    792805  /* @see loci.formats.meta.MetadataRetrieve#getPixelsSizeX(int, int) */ 
    793806  public Integer getPixelsSizeX(int imageIndex, int pixelsIndex) { 
    794807    PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, false); 
    795     return pixels == null ? null : pixels.getSizeX(); 
    796   } 
     808      return pixels == null ? null : pixels.getSizeX(); 
     809    } 
    797810 
    798811  /* @see loci.formats.meta.MetadataRetrieve#getPixelsSizeY(int, int) */ 
    799812  public Integer getPixelsSizeY(int imageIndex, int pixelsIndex) { 
    800813    PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, false); 
    801     return pixels == null ? null : pixels.getSizeY(); 
    802   } 
     814      return pixels == null ? null : pixels.getSizeY(); 
     815    } 
    803816 
    804817  /* @see loci.formats.meta.MetadataRetrieve#getPixelsSizeZ(int, int) */ 
    805818  public Integer getPixelsSizeZ(int imageIndex, int pixelsIndex) { 
    806819    PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, false); 
    807     return pixels == null ? null : pixels.getSizeZ(); 
    808   } 
     820      return pixels == null ? null : pixels.getSizeZ(); 
     821    } 
    809822 
    810823  // - Plane property retrieval - 
     
    887900  public String getROIID(int imageIndex, int roiIndex) { 
    888901    ROINode roi = getROINode(imageIndex, roiIndex, false); 
    889     return roi == null ? null : roi.getNodeID(); 
    890   } 
     902      return roi == null ? null : roi.getNodeID(); 
     903    } 
    891904 
    892905  /* @see loci.formats.meta.MetadataRetrieve#getROIT0(int, int) */ 
    893906  public Integer getROIT0(int imageIndex, int roiIndex) { 
    894907    ROINode roi = getROINode(imageIndex, roiIndex, false); 
    895     return roi == null ? null : roi.getT0(); 
    896   } 
     908      return roi == null ? null : roi.getT0(); 
     909    } 
    897910 
    898911  /* @see loci.formats.meta.MetadataRetrieve#getROIT1(int, int) */ 
    899912  public Integer getROIT1(int imageIndex, int roiIndex) { 
    900913    ROINode roi = getROINode(imageIndex, roiIndex, false); 
    901     return roi == null ? null : roi.getT1(); 
    902   } 
     914      return roi == null ? null : roi.getT1(); 
     915    } 
    903916 
    904917  /* @see loci.formats.meta.MetadataRetrieve#getROIX0(int, int) */ 
    905918  public Integer getROIX0(int imageIndex, int roiIndex) { 
    906919    ROINode roi = getROINode(imageIndex, roiIndex, false); 
    907     return roi == null ? null : roi.getX0(); 
    908   } 
     920      return roi == null ? null : roi.getX0(); 
     921    } 
    909922 
    910923  /* @see loci.formats.meta.MetadataRetrieve#getROIX1(int, int) */ 
    911924  public Integer getROIX1(int imageIndex, int roiIndex) { 
    912925    ROINode roi = getROINode(imageIndex, roiIndex, false); 
    913     return roi == null ? null : roi.getX1(); 
    914   } 
     926      return roi == null ? null : roi.getX1(); 
     927    } 
    915928 
    916929  /* @see loci.formats.meta.MetadataRetrieve#getROIY0(int, int) */ 
    917930  public Integer getROIY0(int imageIndex, int roiIndex) { 
    918931    ROINode roi = getROINode(imageIndex, roiIndex, false); 
    919     return roi == null ? null : roi.getY0(); 
    920   } 
     932      return roi == null ? null : roi.getY0(); 
     933    } 
    921934 
    922935  /* @see loci.formats.meta.MetadataRetrieve#getROIY1(int, int) */ 
    923936  public Integer getROIY1(int imageIndex, int roiIndex) { 
    924937    ROINode roi = getROINode(imageIndex, roiIndex, false); 
    925     return roi == null ? null : roi.getY1(); 
    926   } 
     938      return roi == null ? null : roi.getY1(); 
     939    } 
    927940 
    928941  /* @see loci.formats.meta.MetadataRetrieve#getROIZ0(int, int) */ 
    929942  public Integer getROIZ0(int imageIndex, int roiIndex) { 
    930943    ROINode roi = getROINode(imageIndex, roiIndex, false); 
    931     return roi == null ? null : roi.getZ0(); 
    932   } 
     944      return roi == null ? null : roi.getZ0(); 
     945    } 
    933946 
    934947  /* @see loci.formats.meta.MetadataRetrieve#getROIZ1(int, int) */ 
    935948  public Integer getROIZ1(int imageIndex, int roiIndex) { 
    936949    ROINode roi = getROINode(imageIndex, roiIndex, false); 
    937     return roi == null ? null : roi.getZ1(); 
    938   } 
     950      return roi == null ? null : roi.getZ1(); 
     951    } 
    939952 
    940953  // - Reagent property retrieval - 
     
    10271040  public String getStageLabelName(int imageIndex) { 
    10281041    StageLabelNode stageLabel = getStageLabelNode(imageIndex, false); 
    1029     return stageLabel == null ? null : stageLabel.getName(); 
    1030   } 
     1042      return stageLabel == null ? null : stageLabel.getName(); 
     1043    } 
    10311044 
    10321045  /* @see loci.formats.meta.MetadataRetrieve#getStageLabelX(int) */ 
    10331046  public Float getStageLabelX(int imageIndex) { 
    10341047    StageLabelNode stageLabel = getStageLabelNode(imageIndex, false); 
    1035     return stageLabel == null ? null : stageLabel.getX(); 
    1036   } 
     1048      return stageLabel == null ? null : stageLabel.getX(); 
     1049    } 
    10371050 
    10381051  /* @see loci.formats.meta.MetadataRetrieve#getStageLabelY(int) */ 
    10391052  public Float getStageLabelY(int imageIndex) { 
    10401053    StageLabelNode stageLabel = getStageLabelNode(imageIndex, false); 
    1041     return stageLabel == null ? null : stageLabel.getY(); 
    1042   } 
     1054      return stageLabel == null ? null : stageLabel.getY(); 
     1055    } 
    10431056 
    10441057  /* @see loci.formats.meta.MetadataRetrieve#getStageLabelZ(int) */ 
    10451058  public Float getStageLabelZ(int imageIndex) { 
    10461059    StageLabelNode stageLabel = getStageLabelNode(imageIndex, false); 
    1047     return stageLabel == null ? null : stageLabel.getZ(); 
    1048   } 
     1060      return stageLabel == null ? null : stageLabel.getZ(); 
     1061    } 
    10491062 
    10501063  // - StagePosition property retrieval - 
     
    10791092  public Integer getTiffDataFirstC(int imageIndex, int pixelsIndex, int tiffDataIndex) { 
    10801093    TiffDataNode tiffData = getTiffDataNode(imageIndex, pixelsIndex, tiffDataIndex, false); 
    1081     return tiffData == null ? null : tiffData.getFirstC(); 
    1082   } 
     1094      return tiffData == null ? null : tiffData.getFirstC(); 
     1095    } 
    10831096 
    10841097  /* @see loci.formats.meta.MetadataRetrieve#getTiffDataFirstT(int, int, int) */ 
    10851098  public Integer getTiffDataFirstT(int imageIndex, int pixelsIndex, int tiffDataIndex) { 
    10861099    TiffDataNode tiffData = getTiffDataNode(imageIndex, pixelsIndex, tiffDataIndex, false); 
    1087     return tiffData == null ? null : tiffData.getFirstT(); 
    1088   } 
     1100      return tiffData == null ? null : tiffData.getFirstT(); 
     1101    } 
    10891102 
    10901103  /* @see loci.formats.meta.MetadataRetrieve#getTiffDataFirstZ(int, int, int) */ 
    10911104  public Integer getTiffDataFirstZ(int imageIndex, int pixelsIndex, int tiffDataIndex) { 
    10921105    TiffDataNode tiffData = getTiffDataNode(imageIndex, pixelsIndex, tiffDataIndex, false); 
    1093     return tiffData == null ? null : tiffData.getFirstZ(); 
    1094   } 
     1106      return tiffData == null ? null : tiffData.getFirstZ(); 
     1107    } 
    10951108 
    10961109  /* @see loci.formats.meta.MetadataRetrieve#getTiffDataIFD(int, int, int) */ 
    10971110  public Integer getTiffDataIFD(int imageIndex, int pixelsIndex, int tiffDataIndex) { 
    10981111    TiffDataNode tiffData = getTiffDataNode(imageIndex, pixelsIndex, tiffDataIndex, false); 
    1099     return tiffData == null ? null : tiffData.getIFD(); 
    1100   } 
     1112      return tiffData == null ? null : tiffData.getIFD(); 
     1113    } 
    11011114 
    11021115  /* @see loci.formats.meta.MetadataRetrieve#getTiffDataNumPlanes(int, int, int) */ 
    11031116  public Integer getTiffDataNumPlanes(int imageIndex, int pixelsIndex, int tiffDataIndex) { 
    11041117    TiffDataNode tiffData = getTiffDataNode(imageIndex, pixelsIndex, tiffDataIndex, false); 
    1105     return tiffData == null ? null : tiffData.getNumPlanes(); 
    1106   } 
     1118      return tiffData == null ? null : tiffData.getNumPlanes(); 
     1119    } 
    11071120 
    11081121  /* @see loci.formats.meta.MetadataRetrieve#getTiffDataUUID(int, int, int) */ 
     
    12131226    if (type == null) return; 
    12141227    ArcNode arcNode = getArcNode(instrumentIndex, lightSourceIndex, true); 
    1215     arcNode.setType(type); 
    1216   } 
     1228      arcNode.setType(type); 
     1229    } 
    12171230 
    12181231  // - ChannelComponent property storage - 
     
    12221235    if (colorDomain == null) return; 
    12231236    ChannelComponentNode channelComponentNode = getChannelComponentNode(imageIndex, logicalChannelIndex, channelComponentIndex, true); 
    1224     channelComponentNode.setColorDomain(colorDomain); 
    1225   } 
     1237      channelComponentNode.setColorDomain(colorDomain); 
     1238    } 
    12261239 
    12271240  /* @see loci.formats.meta.MetadataStore#setChannelComponentIndex(Integer, int, int, int) */ 
     
    12291242    if (index == null) return; 
    12301243    ChannelComponentNode channelComponentNode = getChannelComponentNode(imageIndex, logicalChannelIndex, channelComponentIndex, true); 
    1231     channelComponentNode.setIndex(index); 
    1232   } 
     1244      channelComponentNode.setIndex(index); 
     1245    } 
    12331246 
    12341247  // - Detector property storage - 
     
    12381251    if (gain == null) return; 
    12391252    DetectorNode detectorNode = getDetectorNode(instrumentIndex, detectorIndex, true); 
    1240     detectorNode.setGain(gain); 
    1241   } 
     1253      detectorNode.setGain(gain); 
     1254    } 
    12421255 
    12431256  /* @see loci.formats.meta.MetadataStore#setDetectorID(String, int, int) */ 
     
    12451258    if (id == null) return; 
    12461259    DetectorNode detectorNode = getDetectorNode(instrumentIndex, detectorIndex, true); 
    1247     detectorNode.setNodeID(id); 
    1248   } 
     1260      detectorNode.setNodeID(id); 
     1261    } 
    12491262 
    12501263  /* @see loci.formats.meta.MetadataStore#setDetectorManufacturer(String, int, int) */ 
     
    12521265    if (manufacturer == null) return; 
    12531266    DetectorNode detectorNode = getDetectorNode(instrumentIndex, detectorIndex, true); 
    1254     detectorNode.setManufacturer(manufacturer); 
    1255   } 
     1267      detectorNode.setManufacturer(manufacturer); 
     1268    } 
    12561269 
    12571270  /* @see loci.formats.meta.MetadataStore#setDetectorModel(String, int, int) */ 
     
    12591272    if (model == null) return; 
    12601273    DetectorNode detectorNode = getDetectorNode(instrumentIndex, detectorIndex, true); 
    1261     detectorNode.setModel(model); 
    1262   } 
     1274      detectorNode.setModel(model); 
     1275    } 
    12631276 
    12641277  /* @see loci.formats.meta.MetadataStore#setDetectorOffset(Float, int, int) */ 
     
    12661279    if (offset == null) return; 
    12671280    DetectorNode detectorNode = getDetectorNode(instrumentIndex, detectorIndex, true); 
    1268     detectorNode.setOffset(offset); 
    1269   } 
     1281      detectorNode.setOffset(offset); 
     1282    } 
    12701283 
    12711284  /* @see loci.formats.meta.MetadataStore#setDetectorSerialNumber(String, int, int) */ 
     
    12731286    if (serialNumber == null) return; 
    12741287    DetectorNode detectorNode = getDetectorNode(instrumentIndex, detectorIndex, true); 
    1275     detectorNode.setSerialNumber(serialNumber); 
    1276   } 
     1288      detectorNode.setSerialNumber(serialNumber); 
     1289    } 
    12771290 
    12781291  /* @see loci.formats.meta.MetadataStore#setDetectorType(String, int, int) */ 
     
    12801293    if (type == null) return; 
    12811294    DetectorNode detectorNode = getDetectorNode(instrumentIndex, detectorIndex, true); 
    1282     detectorNode.setType(type); 
    1283   } 
     1295      detectorNode.setType(type); 
     1296    } 
    12841297 
    12851298  /* @see loci.formats.meta.MetadataStore#setDetectorVoltage(Float, int, int) */ 
     
    12871300    if (voltage == null) return; 
    12881301    DetectorNode detectorNode = getDetectorNode(instrumentIndex, detectorIndex, true); 
    1289     detectorNode.setVoltage(voltage); 
    1290   } 
     1302      detectorNode.setVoltage(voltage); 
     1303    } 
    12911304 
    12921305  // - DetectorSettings property storage - 
     
    12961309    if (detector == null) return; 
    12971310    DetectorRefNode detectorRefNode = getDetectorRefNode(imageIndex, logicalChannelIndex, true); 
    1298     detectorRefNode.setNodeID(detector); 
    1299   } 
     1311      detectorRefNode.setNodeID(detector); 
     1312    } 
    13001313 
    13011314  /* @see loci.formats.meta.MetadataStore#setDetectorSettingsGain(Float, int, int) */ 
     
    13031316    if (gain == null) return; 
    13041317    DetectorRefNode detectorRefNode = getDetectorRefNode(imageIndex, logicalChannelIndex, true); 
    1305     detectorRefNode.setGain(gain); 
    1306   } 
     1318      detectorRefNode.setGain(gain); 
     1319    } 
    13071320 
    13081321  /* @see loci.formats.meta.MetadataStore#setDetectorSettingsOffset(Float, int, int) */ 
     
    13101323    if (offset == null) return; 
    13111324    DetectorRefNode detectorRefNode = getDetectorRefNode(imageIndex, logicalChannelIndex, true); 
    1312     detectorRefNode.setOffset(offset); 
    1313   } 
     1325      detectorRefNode.setOffset(offset); 
     1326    } 
    13141327 
    13151328  // - Dimensions property storage - 
     
    13191332    if (physicalSizeX == null) return; 
    13201333    ImageNode imageNode = getImageNode(imageIndex, true); 
    1321     imageNode.setPixelSizeX(physicalSizeX); 
    1322   } 
     1334      imageNode.setPixelSizeX(physicalSizeX); 
     1335    } 
    13231336 
    13241337  /* @see loci.formats.meta.MetadataStore#setDimensionsPhysicalSizeY(Float, int, int) */ 
     
    13261339    if (physicalSizeY == null) return; 
    13271340    ImageNode imageNode = getImageNode(imageIndex, true); 
    1328     imageNode.setPixelSizeY(physicalSizeY); 
    1329   } 
     1341      imageNode.setPixelSizeY(physicalSizeY); 
     1342    } 
    13301343 
    13311344  /* @see loci.formats.meta.MetadataStore#setDimensionsPhysicalSizeZ(Float, int, int) */ 
     
    13331346    if (physicalSizeZ == null) return; 
    13341347    ImageNode imageNode = getImageNode(imageIndex, true); 
    1335     imageNode.setPixelSizeZ(physicalSizeZ); 
    1336   } 
     1348      imageNode.setPixelSizeZ(physicalSizeZ); 
     1349    } 
    13371350 
    13381351  /* @see loci.formats.meta.MetadataStore#setDimensionsTimeIncrement(Float, int, int) */ 
     
    13401353    if (timeIncrement == null) return; 
    13411354    ImageNode imageNode = getImageNode(imageIndex, true); 
    1342     imageNode.setTimeIncrement(timeIncrement); 
    1343   } 
     1355      imageNode.setTimeIncrement(timeIncrement); 
     1356    } 
    13441357 
    13451358  /* @see loci.formats.meta.MetadataStore#setDimensionsWaveIncrement(Integer, int, int) */ 
     
    13471360    if (waveIncrement == null) return; 
    13481361    ImageNode imageNode = getImageNode(imageIndex, true); 
    1349     imageNode.setWaveIncrement(waveIncrement); 
    1350   } 
     1362      imageNode.setWaveIncrement(waveIncrement); 
     1363    } 
    13511364 
    13521365  /* @see loci.formats.meta.MetadataStore#setDimensionsWaveStart(Integer, int, int) */ 
     
    13541367    if (waveStart == null) return; 
    13551368    ImageNode imageNode = getImageNode(imageIndex, true); 
    1356     imageNode.setWaveStart(waveStart); 
    1357   } 
     1369      imageNode.setWaveStart(waveStart); 
     1370    } 
    13581371 
    13591372  // - DisplayOptions property storage - 
     
    13631376    if (id == null) return; 
    13641377    DisplayOptionsNode displayOptionsNode = getDisplayOptionsNode(imageIndex, true); 
    1365     displayOptionsNode.setNodeID(id); 
    1366   } 
     1378      displayOptionsNode.setNodeID(id); 
     1379    } 
    13671380 
    13681381  /* @see loci.formats.meta.MetadataStore#setDisplayOptionsZoom(Float, int) */ 
     
    13701383    if (zoom == null) return; 
    13711384    DisplayOptionsNode displayOptionsNode = getDisplayOptionsNode(imageIndex, true); 
    1372     displayOptionsNode.setZoom(zoom); 
    1373   } 
     1385      displayOptionsNode.setZoom(zoom); 
     1386    } 
    13741387 
    13751388  // - DisplayOptionsProjection property storage - 
     
    13791392    if (zStart == null) return; 
    13801393    ProjectionNode projectionNode = getProjectionNode(imageIndex, true); 
    1381     projectionNode.setZstart(zStart); 
    1382   } 
     1394      projectionNode.setZstart(zStart); 
     1395    } 
    13831396 
    13841397  /* @see loci.formats.meta.MetadataStore#setDisplayOptionsProjectionZStop(Integer, int) */ 
     
    13861399    if (zStop == null) return; 
    13871400    ProjectionNode projectionNode = getProjectionNode(imageIndex, true); 
    1388     projectionNode.setZstop(zStop); 
    1389   } 
     1401      projectionNode.setZstop(zStop); 
     1402    } 
    13901403 
    13911404  // - DisplayOptionsTime property storage - 
     
    13951408    if (tStart == null) return; 
    13961409    TimeNode timeNode = getTimeNode(imageIndex, true); 
    1397     timeNode.setTstart(tStart); 
    1398   } 
     1410      timeNode.setTstart(tStart); 
     1411    } 
    13991412 
    14001413  /* @see loci.formats.meta.MetadataStore#setDisplayOptionsTimeTStop(Integer, int) */ 
     
    14021415    if (tStop == null) return; 
    14031416    TimeNode timeNode = getTimeNode(imageIndex, true); 
    1404     timeNode.setTstop(tStop); 
    1405   } 
     1417      timeNode.setTstop(tStop); 
     1418    } 
    14061419 
    14071420  // - Experimenter property storage - 
     
    14111424    if (email == null) return; 
    14121425    ExperimenterNode experimenterNode = getExperimenterNode(experimenterIndex, true); 
    1413     experimenterNode.setEmail(email); 
    1414   } 
     1426      experimenterNode.setEmail(email); 
     1427    } 
    14151428 
    14161429  /* @see loci.formats.meta.MetadataStore#setExperimenterFirstName(String, int) */ 
     
    14181431    if (firstName == null) return; 
    14191432    ExperimenterNode experimenterNode = getExperimenterNode(experimenterIndex, true); 
    1420     experimenterNode.setFirstName(firstName); 
    1421   } 
     1433      experimenterNode.setFirstName(firstName); 
     1434    } 
    14221435 
    14231436  /* @see loci.formats.meta.MetadataStore#setExperimenterID(String, int) */ 
     
    14251438    if (id == null) return; 
    14261439    ExperimenterNode experimenterNode = getExperimenterNode(experimenterIndex, true); 
    1427     experimenterNode.setNodeID(id); 
    1428   } 
     1440      experimenterNode.setNodeID(id); 
     1441    } 
    14291442 
    14301443  /* @see loci.formats.meta.MetadataStore#setExperimenterInstitution(String, int) */ 
     
    14321445    if (institution == null) return; 
    14331446    ExperimenterNode experimenterNode = getExperimenterNode(experimenterIndex, true); 
    1434     experimenterNode.setInstitution(institution); 
    1435   } 
     1447      experimenterNode.setInstitution(institution); 
     1448    } 
    14361449 
    14371450  /* @see loci.formats.meta.MetadataStore#setExperimenterLastName(String, int) */ 
     
    14391452    if (lastName == null) return; 
    14401453    ExperimenterNode experimenterNode = getExperimenterNode(experimenterIndex, true); 
    1441     experimenterNode.setLastName(lastName); 
    1442   } 
     1454      experimenterNode.setLastName(lastName); 
     1455    } 
    14431456 
    14441457  // - Filament property storage - 
     
    14481461    if (type == null) return; 
    14491462    FilamentNode filamentNode = getFilamentNode(instrumentIndex, lightSourceIndex, true); 
    1450     filamentNode.setType(type); 
    1451   } 
     1463      filamentNode.setType(type); 
     1464    } 
    14521465 
    14531466  // - Image property storage - 
     
    14571470    if (creationDate == null) return; 
    14581471    ImageNode imageNode = getImageNode(imageIndex, true); 
    1459     imageNode.setCreationDate(creationDate); 
    1460   } 
     1472      imageNode.setCreationDate(creationDate); 
     1473    } 
    14611474 
    14621475  /* @see loci.formats.meta.MetadataStore#setImageDescription(String, int) */ 
     
    14641477    if (description == null) return; 
    14651478    ImageNode imageNode = getImageNode(imageIndex, true); 
    1466     imageNode.setDescription(description); 
    1467   } 
     1479      imageNode.setDescription(description); 
     1480    } 
    14681481 
    14691482  /* @see loci.formats.meta.MetadataStore#setImageID(String, int) */ 
     
    14711484    if (id == null) return; 
    14721485    ImageNode imageNode = getImageNode(imageIndex, true); 
    1473     imageNode.setNodeID(id); 
    1474   } 
     1486      imageNode.setNodeID(id); 
     1487    } 
     1488 
     1489  /* @see loci.formats.meta.MetadataStore#setImageInstrumentRef(Integer, int) */ 
     1490  public void setImageInstrumentRef(Integer instrumentRef, int imageIndex) { 
     1491    if (instrumentRef == null) return; 
     1492    ImageNode imageNode = getImageNode(imageIndex, true); 
     1493      InstrumentNode node = getInstrumentNode(instrumentRef.intValue(), true); 
     1494    InstrumentRefNode ref = new InstrumentRefNode(imageNode); 
     1495    ref.setInstrumentNode(node); 
     1496    } 
    14751497 
    14761498  /* @see loci.formats.meta.MetadataStore#setImageName(String, int) */ 
     
    14781500    if (name == null) return; 
    14791501    ImageNode imageNode = getImageNode(imageIndex, true); 
    1480     imageNode.setName(name); 
    1481   } 
     1502      imageNode.setName(name); 
     1503    } 
    14821504 
    14831505  // - ImagingEnvironment property storage - 
     
    14871509    if (airPressure == null) return; 
    14881510    ImagingEnvironmentNode imagingEnvironmentNode = getImagingEnvironmentNode(imageIndex, true); 
    1489     imagingEnvironmentNode.setAirPressure(airPressure); 
    1490   } 
     1511      imagingEnvironmentNode.setAirPressure(airPressure); 
     1512    } 
    14911513 
    14921514  /* @see loci.formats.meta.MetadataStore#setImagingEnvironmentCO2Percent(Float, int) */ 
     
    14941516    if (cO2Percent == null) return; 
    14951517    ImagingEnvironmentNode imagingEnvironmentNode = getImagingEnvironmentNode(imageIndex, true); 
    1496     imagingEnvironmentNode.setCO2Percent(cO2Percent); 
    1497   } 
     1518      imagingEnvironmentNode.setCO2Percent(cO2Percent); 
     1519    } 
    14981520 
    14991521  /* @see loci.formats.meta.MetadataStore#setImagingEnvironmentHumidity(Float, int) */ 
     
    15011523    if (humidity == null) return; 
    15021524    ImagingEnvironmentNode imagingEnvironmentNode = getImagingEnvironmentNode(imageIndex, true); 
    1503     imagingEnvironmentNode.setHumidity(humidity); 
    1504   } 
     1525      imagingEnvironmentNode.setHumidity(humidity); 
     1526    } 
    15051527 
    15061528  /* @see loci.formats.meta.MetadataStore#setImagingEnvironmentTemperature(Float, int) */ 
     
    15081530    if (temperature == null) return; 
    15091531    ImagingEnvironmentNode imagingEnvironmentNode = getImagingEnvironmentNode(imageIndex, true); 
    1510     imagingEnvironmentNode.setTemperature(temperature); 
    1511   } 
     1532      imagingEnvironmentNode.setTemperature(temperature); 
     1533    } 
    15121534 
    15131535  // - Instrument property storage - 
     
    15171539    if (id == null) return; 
    15181540    InstrumentNode instrumentNode = getInstrumentNode(instrumentIndex, true); 
    1519     instrumentNode.setNodeID(id); 
    1520   } 
     1541      instrumentNode.setNodeID(id); 
     1542    } 
    15211543 
    15221544  // - Laser property storage - 
     
    15261548    if (frequencyMultiplication == null) return; 
    15271549    LaserNode laserNode = getLaserNode(instrumentIndex, lightSourceIndex, true); 
    1528     laserNode.setFrequencyDoubled(integerToBoolean(frequencyMultiplication)); 
    1529   } 
     1550      laserNode.setFrequencyDoubled(integerToBoolean(frequencyMultiplication)); 
     1551    } 
    15301552 
    15311553  /* @see loci.formats.meta.MetadataStore#setLaserLaserMedium(String, int, int) */ 
     
    15331555    if (laserMedium == null) return; 
    15341556    LaserNode laserNode = getLaserNode(instrumentIndex, lightSourceIndex, true); 
    1535     laserNode.setMedium(laserMedium); 
    1536   } 
     1557      laserNode.setMedium(laserMedium); 
     1558    } 
    15371559 
    15381560  /* @see loci.formats.meta.MetadataStore#setLaserPulse(String, int, int) */ 
     
    15401562    if (pulse == null) return; 
    15411563    LaserNode laserNode = getLaserNode(instrumentIndex, lightSourceIndex, true); 
    1542     laserNode.setPulse(pulse); 
    1543   } 
     1564      laserNode.setPulse(pulse); 
     1565    } 
    15441566 
    15451567  /* @see loci.formats.meta.MetadataStore#setLaserTuneable(Boolean, int, int) */ 
     
    15471569    if (tuneable == null) return; 
    15481570    LaserNode laserNode = getLaserNode(instrumentIndex, lightSourceIndex, true); 
    1549     laserNode.setTunable(tuneable); 
    1550   } 
     1571      laserNode.setTunable(tuneable); 
     1572    } 
    15511573 
    15521574  /* @see loci.formats.meta.MetadataStore#setLaserType(String, int, int) */ 
     
    15541576    if (type == null) return; 
    15551577    LaserNode laserNode = getLaserNode(instrumentIndex, lightSourceIndex, true); 
    1556     laserNode.setType(type); 
    1557   } 
     1578      laserNode.setType(type); 
     1579    } 
    15581580 
    15591581  /* @see loci.formats.meta.MetadataStore#setLaserWavelength(Integer, int, int) */ 
     
    15611583    if (wavelength == null) return; 
    15621584    LaserNode laserNode = getLaserNode(instrumentIndex, lightSourceIndex, true); 
    1563     laserNode.setWavelength(wavelength); 
    1564   } 
     1585      laserNode.setWavelength(wavelength); 
     1586    } 
    15651587 
    15661588  // - LightSource property storage - 
     
    15701592    if (id == null) return; 
    15711593    LightSourceNode lightSourceNode = getLightSourceNode(instrumentIndex, lightSourceIndex, true); 
    1572     lightSourceNode.setNodeID(id); 
    1573   } 
     1594      lightSourceNode.setNodeID(id); 
     1595    } 
    15741596 
    15751597  /* @see loci.formats.meta.MetadataStore#setLightSourceManufacturer(String, int, int) */ 
     
    15771599    if (manufacturer == null) return; 
    15781600    LightSourceNode lightSourceNode = getLightSourceNode(instrumentIndex, lightSourceIndex, true); 
    1579     lightSourceNode.setManufacturer(manufacturer); 
    1580   } 
     1601      lightSourceNode.setManufacturer(manufacturer); 
     1602    } 
    15811603 
    15821604  /* @see loci.formats.meta.MetadataStore#setLightSourceModel(String, int, int) */ 
     
    15841606    if (model == null) return; 
    15851607    LightSourceNode lightSourceNode = getLightSourceNode(instrumentIndex, lightSourceIndex, true); 
    1586     lightSourceNode.setModel(model); 
    1587   } 
     1608      lightSourceNode.setModel(model); 
     1609    } 
    15881610 
    15891611  /* @see loci.formats.meta.MetadataStore#setLightSourcePower(Float, int, int) */ 
     
    15961618    if (serialNumber == null) return; 
    15971619    LightSourceNode lightSourceNode = getLightSourceNode(instrumentIndex, lightSourceIndex, true); 
    1598     lightSourceNode.setSerialNumber(serialNumber); 
    1599   } 
     1620      lightSourceNode.setSerialNumber(serialNumber); 
     1621    } 
    16001622 
    16011623  // - LightSourceSettings property storage - 
     
    16051627    if (attenuation == null) return; 
    16061628    LightSourceRefNode lightSourceRefNode = getLightSourceRefNode(imageIndex, logicalChannelIndex, true); 
    1607     lightSourceRefNode.setAttenuation(attenuation); 
    1608   } 
     1629      lightSourceRefNode.setAttenuation(attenuation); 
     1630    } 
    16091631 
    16101632  /* @see loci.formats.meta.MetadataStore#setLightSourceSettingsLightSource(String, int, int) */ 
     
    16121634    if (lightSource == null) return; 
    16131635    LightSourceRefNode lightSourceRefNode = getLightSourceRefNode(imageIndex, logicalChannelIndex, true); 
    1614     lightSourceRefNode.setNodeID(lightSource); 
    1615   } 
     1636      lightSourceRefNode.setNodeID(lightSource); 
     1637    } 
    16161638 
    16171639  /* @see loci.formats.meta.MetadataStore#setLightSourceSettingsWavelength(Integer, int, int) */ 
     
    16191641    if (wavelength == null) return; 
    16201642    LightSourceRefNode lightSourceRefNode = getLightSourceRefNode(imageIndex, logicalChannelIndex, true); 
    1621     lightSourceRefNode.setWavelength(wavelength); 
    1622   } 
     1643      lightSourceRefNode.setWavelength(wavelength); 
     1644    } 
    16231645 
    16241646  // - LogicalChannel property storage - 
     
    16281650    if (contrastMethod == null) return; 
    16291651    ChannelInfoNode channelInfoNode = getChannelInfoNode(imageIndex, logicalChannelIndex, true); 
    1630     channelInfoNode.setContrastMethod(contrastMethod); 
    1631   } 
     1652      channelInfoNode.setContrastMethod(contrastMethod); 
     1653    } 
    16321654 
    16331655  /* @see loci.formats.meta.MetadataStore#setLogicalChannelEmWave(Integer, int, int) */ 
     
    16351657    if (emWave == null) return; 
    16361658    ChannelInfoNode channelInfoNode = getChannelInfoNode(imageIndex, logicalChannelIndex, true); 
    1637     channelInfoNode.setEmWave(emWave); 
    1638   } 
     1659      channelInfoNode.setEmWave(emWave); 
     1660    } 
    16391661 
    16401662  /* @see loci.formats.meta.MetadataStore#setLogicalChannelExWave(Integer, int, int) */ 
     
    16421664    if (exWave == null) return; 
    16431665    ChannelInfoNode channelInfoNode = getChannelInfoNode(imageIndex, logicalChannelIndex, true); 
    1644     channelInfoNode.setExWave(exWave); 
    1645   } 
     1666      channelInfoNode.setExWave(exWave); 
     1667    } 
    16461668 
    16471669  /* @see loci.formats.meta.MetadataStore#setLogicalChannelFluor(String, int, int) */ 
     
    16491671    if (fluor == null) return; 
    16501672    ChannelInfoNode channelInfoNode = getChannelInfoNode(imageIndex, logicalChannelIndex, true); 
    1651     channelInfoNode.setFluor(fluor); 
    1652   } 
     1673      channelInfoNode.setFluor(fluor); 
     1674    } 
    16531675 
    16541676  /* @see loci.formats.meta.MetadataStore#setLogicalChannelID(String, int, int) */ 
     
    16561678    if (id == null) return; 
    16571679    ChannelInfoNode channelInfoNode = getChannelInfoNode(imageIndex, logicalChannelIndex, true); 
    1658     channelInfoNode.setNodeID(id); 
    1659   } 
     1680      channelInfoNode.setNodeID(id); 
     1681    } 
    16601682 
    16611683  /* @see loci.formats.meta.MetadataStore#setLogicalChannelIlluminationType(String, int, int) */ 
     
    16631685    if (illuminationType == null) return; 
    16641686    ChannelInfoNode channelInfoNode = getChannelInfoNode(imageIndex, logicalChannelIndex, true); 
    1665     channelInfoNode.setIlluminationType(illuminationType); 
    1666   } 
     1687      channelInfoNode.setIlluminationType(illuminationType); 
     1688    } 
    16671689 
    16681690  /* @see loci.formats.meta.MetadataStore#setLogicalChannelMode(String, int, int) */ 
     
    16701692    if (mode == null) return; 
    16711693    ChannelInfoNode channelInfoNode = getChannelInfoNode(imageIndex, logicalChannelIndex, true); 
    1672     channelInfoNode.setMode(mode); 
    1673   } 
     1694      channelInfoNode.setMode(mode); 
     1695    } 
    16741696 
    16751697  /* @see loci.formats.meta.MetadataStore#setLogicalChannelName(String, int, int) */ 
     
    16771699    if (name == null) return; 
    16781700    ChannelInfoNode channelInfoNode = getChannelInfoNode(imageIndex, logicalChannelIndex, true); 
    1679     channelInfoNode.setName(name); 
    1680   } 
     1701      channelInfoNode.setName(name); 
     1702    } 
    16811703 
    16821704  /* @see loci.formats.meta.MetadataStore#setLogicalChannelNdFilter(Float, int, int) */ 
     
    16841706    if (ndFilter == null) return; 
    16851707    ChannelInfoNode channelInfoNode = getChannelInfoNode(imageIndex, logicalChannelIndex, true); 
    1686     channelInfoNode.setNDfilter(ndFilter); 
    1687   } 
     1708      channelInfoNode.setNDfilter(ndFilter); 
     1709    } 
    16881710 
    16891711  /* @see loci.formats.meta.MetadataStore#setLogicalChannelPhotometricInterpretation(String, int, int) */ 
     
    16911713    if (photometricInterpretation == null) return; 
    16921714    ChannelInfoNode channelInfoNode = getChannelInfoNode(imageIndex, logicalChannelIndex, true); 
    1693     channelInfoNode.setPhotometricInterpretation(photometricInterpretation); 
    1694   } 
     1715      channelInfoNode.setPhotometricInterpretation(photometricInterpretation); 
     1716    } 
    16951717 
    16961718  /* @see loci.formats.meta.MetadataStore#setLogicalChannelPinholeSize(Integer, int, int) */ 
     
    16981720    if (pinholeSize == null) return; 
    16991721    ChannelInfoNode channelInfoNode = getChannelInfoNode(imageIndex, logicalChannelIndex, true); 
    1700     channelInfoNode.setPinholeSize(pinholeSize); 
    1701   } 
     1722      channelInfoNode.setPinholeSize(pinholeSize); 
     1723    } 
    17021724 
    17031725  /* @see loci.formats.meta.MetadataStore#setLogicalChannelPockelCellSetting(Integer, int, int) */ 
     
    17101732    if (samplesPerPixel == null) return; 
    17111733    ChannelInfoNode channelInfoNode = getChannelInfoNode(imageIndex, logicalChannelIndex, true); 
    1712     channelInfoNode.setSamplesPerPixel(samplesPerPixel); 
    1713   } 
     1734      channelInfoNode.setSamplesPerPixel(samplesPerPixel); 
     1735    } 
    17141736 
    17151737  // - OTF property storage - 
     
    17191741    if (id == null) return; 
    17201742    OTFNode otfNode = getOTFNode(instrumentIndex, otfIndex, true); 
    1721     otfNode.setNodeID(id); 
    1722   } 
     1743      otfNode.setNodeID(id); 
     1744    } 
    17231745 
    17241746  /* @see loci.formats.meta.MetadataStore#setOTFOpticalAxisAveraged(Boolean, int, int) */ 
     
    17261748    if (opticalAxisAveraged == null) return; 
    17271749    OTFNode otfNode = getOTFNode(instrumentIndex, otfIndex, true); 
    1728     otfNode.setOpticalAxisAvrg(opticalAxisAveraged); 
    1729   } 
     1750      otfNode.setOpticalAxisAvrg(opticalAxisAveraged); 
     1751    } 
    17301752 
    17311753  /* @see loci.formats.meta.MetadataStore#setOTFPixelType(String, int, int) */ 
     
    17331755    if (pixelType == null) return; 
    17341756    OTFNode otfNode = getOTFNode(instrumentIndex, otfIndex, true); 
    1735     otfNode.setPixelType(pixelType); 
    1736   } 
     1757      otfNode.setPixelType(pixelType); 
     1758    } 
    17371759 
    17381760  /* @see loci.formats.meta.MetadataStore#setOTFSizeX(Integer, int, int) */ 
     
    17401762    if (sizeX == null) return; 
    17411763    OTFNode otfNode = getOTFNode(instrumentIndex, otfIndex, true); 
    1742     otfNode.setSizeX(sizeX); 
    1743   } 
     1764      otfNode.setSizeX(sizeX); 
     1765    } 
    17441766 
    17451767  /* @see loci.formats.meta.MetadataStore#setOTFSizeY(Integer, int, int) */ 
     
    17471769    if (sizeY == null) return; 
    17481770    OTFNode otfNode = getOTFNode(instrumentIndex, otfIndex, true); 
    1749     otfNode.setSizeY(sizeY); 
    1750   } 
     1771      otfNode.setSizeY(sizeY); 
     1772    } 
    17511773 
    17521774  // - Objective property storage - 
     
    17561778    if (calibratedMagnification == null) return; 
    17571779    ObjectiveNode objectiveNode = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
    1758     objectiveNode.setMagnification(calibratedMagnification); 
    1759   } 
     1780      objectiveNode.setMagnification(calibratedMagnification); 
     1781    } 
    17601782 
    17611783  /* @see loci.formats.meta.MetadataStore#setObjectiveCorrection(String, int, int) */ 
     
    17681790    if (id == null) return; 
    17691791    ObjectiveNode objectiveNode = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
    1770     objectiveNode.setNodeID(id); 
    1771   } 
     1792      objectiveNode.setNodeID(id); 
     1793    } 
    17721794 
    17731795  /* @see loci.formats.meta.MetadataStore#setObjectiveImmersion(String, int, int) */ 
     
    17801802    if (lensNA == null) return; 
    17811803    ObjectiveNode objectiveNode = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
    1782     objectiveNode.setLensNA(lensNA); 
    1783   } 
     1804      objectiveNode.setLensNA(lensNA); 
     1805    } 
    17841806 
    17851807  /* @see loci.formats.meta.MetadataStore#setObjectiveManufacturer(String, int, int) */ 
     
    17871809    if (manufacturer == null) return; 
    17881810    ObjectiveNode objectiveNode = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
    1789     objectiveNode.setManufacturer(manufacturer); 
    1790   } 
     1811      objectiveNode.setManufacturer(manufacturer); 
     1812    } 
    17911813 
    17921814  /* @see loci.formats.meta.MetadataStore#setObjectiveModel(String, int, int) */ 
     
    17941816    if (model == null) return; 
    17951817    ObjectiveNode objectiveNode = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
    1796     objectiveNode.setModel(model); 
    1797   } 
     1818      objectiveNode.setModel(model); 
     1819    } 
    17981820 
    17991821  /* @see loci.formats.meta.MetadataStore#setObjectiveNominalMagnification(Integer, int, int) */ 
     
    18061828    if (serialNumber == null) return; 
    18071829    ObjectiveNode objectiveNode = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
    1808     objectiveNode.setSerialNumber(serialNumber); 
    1809   } 
     1830      objectiveNode.setSerialNumber(serialNumber); 
     1831    } 
    18101832 
    18111833  /* @see loci.formats.meta.MetadataStore#setObjectiveWorkingDistance(Float, int, int) */ 
     
    18201842    if (bigEndian == null) return; 
    18211843    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
    1822     pixelsNode.setBigEndian(bigEndian); 
    1823   } 
     1844      pixelsNode.setBigEndian(bigEndian); 
     1845    } 
    18241846 
    18251847  /* @see loci.formats.meta.MetadataStore#setPixelsDimensionOrder(String, int, int) */ 
     
    18271849    if (dimensionOrder == null) return; 
    18281850    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
    1829     pixelsNode.setDimensionOrder(dimensionOrder); 
    1830   } 
     1851      pixelsNode.setDimensionOrder(dimensionOrder); 
     1852    } 
    18311853 
    18321854  /* @see loci.formats.meta.MetadataStore#setPixelsID(String, int, int) */ 
     
    18341856    if (id == null) return; 
    18351857    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
    1836     pixelsNode.setNodeID(id); 
    1837   } 
     1858      pixelsNode.setNodeID(id); 
     1859    } 
    18381860 
    18391861  /* @see loci.formats.meta.MetadataStore#setPixelsPixelType(String, int, int) */ 
     
    18411863    if (pixelType == null) return; 
    18421864    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
    1843     pixelsNode.setPixelType(pixelType); 
    1844   } 
     1865      pixelsNode.setPixelType(pixelType); 
     1866    } 
    18451867 
    18461868  /* @see loci.formats.meta.MetadataStore#setPixelsSizeC(Integer, int, int) */ 
     
    18481870    if (sizeC == null) return; 
    18491871    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
    1850     pixelsNode.setSizeC(sizeC); 
    1851   } 
     1872      pixelsNode.setSizeC(sizeC); 
     1873    } 
    18521874 
    18531875  /* @see loci.formats.meta.MetadataStore#setPixelsSizeT(Integer, int, int) */ 
     
    18551877    if (sizeT == null) return; 
    18561878    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
    1857     pixelsNode.setSizeT(sizeT); 
    1858   } 
     1879      pixelsNode.setSizeT(sizeT); 
     1880    } 
    18591881 
    18601882  /* @see loci.formats.meta.MetadataStore#setPixelsSizeX(Integer, int, int) */ 
     
    18621884    if (sizeX == null) return; 
    18631885    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
    1864     pixelsNode.setSizeX(sizeX); 
    1865   } 
     1886      pixelsNode.setSizeX(sizeX); 
     1887    } 
    18661888 
    18671889  /* @see loci.formats.meta.MetadataStore#setPixelsSizeY(Integer, int, int) */ 
     
    18691891    if (sizeY == null) return; 
    18701892    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
    1871     pixelsNode.setSizeY(sizeY); 
    1872   } 
     1893      pixelsNode.setSizeY(sizeY); 
     1894    } 
    18731895 
    18741896  /* @see loci.formats.meta.MetadataStore#setPixelsSizeZ(Integer, int, int) */ 
     
    18761898    if (sizeZ == null) return; 
    18771899    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
    1878     pixelsNode.setSizeZ(sizeZ); 
    1879   } 
     1900      pixelsNode.setSizeZ(sizeZ); 
     1901    } 
    18801902 
    18811903  // - Plane property storage - 
     
    19481970    if (id == null) return; 
    19491971    ROINode roiNode = getROINode(imageIndex, roiIndex, true); 
    1950     roiNode.setNodeID(id); 
    1951   } 
     1972      roiNode.setNodeID(id); 
     1973    } 
    19521974 
    19531975  /* @see loci.formats.meta.MetadataStore#setROIT0(Integer, int, int) */ 
     
    19551977    if (t0 == null) return; 
    19561978    ROINode roiNode = getROINode(imageIndex, roiIndex, true); 
    1957     roiNode.setT0(t0); 
    1958   } 
     1979      roiNode.setT0(t0); 
     1980    } 
    19591981 
    19601982  /* @see loci.formats.meta.MetadataStore#setROIT1(Integer, int, int) */ 
     
    19621984    if (t1 == null) return; 
    19631985    ROINode roiNode = getROINode(imageIndex, roiIndex, true); 
    1964     roiNode.setT1(t1); 
    1965   } 
     1986      roiNode.setT1(t1); 
     1987    } 
    19661988 
    19671989  /* @see loci.formats.meta.MetadataStore#setROIX0(Integer, int, int) */ 
     
    19691991    if (x0 == null) return; 
    19701992    ROINode roiNode = getROINode(imageIndex, roiIndex, true); 
    1971     roiNode.setX0(x0); 
    1972   } 
     1993      roiNode.setX0(x0); 
     1994    } 
    19731995 
    19741996  /* @see loci.formats.meta.MetadataStore#setROIX1(Integer, int, int) */ 
     
    19761998    if (x1 == null) return; 
    19771999    ROINode roiNode = getROINode(imageIndex, roiIndex, true); 
    1978     roiNode.setX1(x1); 
    1979   } 
     2000      roiNode.setX1(x1); 
     2001    } 
    19802002 
    19812003  /* @see loci.formats.meta.MetadataStore#setROIY0(Integer, int, int) */ 
     
    19832005    if (y0 == null) return; 
    19842006    ROINode roiNode = getROINode(imageIndex, roiIndex, true); 
    1985     roiNode.setY0(y0); 
    1986   } 
     2007      roiNode.setY0(y0); 
     2008    } 
    19872009 
    19882010  /* @see loci.formats.meta.MetadataStore#setROIY1(Integer, int, int) */ 
     
    19902012    if (y1 == null) return; 
    19912013    ROINode roiNode = getROINode(imageIndex, roiIndex, true); 
    1992     roiNode.setY1(y1); 
    1993   } 
     2014      roiNode.setY1(y1); 
     2015    } 
    19942016 
    19952017  /* @see loci.formats.meta.MetadataStore#setROIZ0(Integer, int, int) */ 
     
    19972019    if (z0 == null) return; 
    19982020    ROINode roiNode = getROINode(imageIndex, roiIndex, true); 
    1999     roiNode.setZ0(z0); 
    2000   } 
     2021      roiNode.setZ0(z0); 
     2022    } 
    20012023 
    20022024  /* @see loci.formats.meta.MetadataStore#setROIZ1(Integer, int, int) */ 
     
    20042026    if (z1 == null) return; 
    20052027    ROINode roiNode = getROINode(imageIndex, roiIndex, true); 
    2006     roiNode.setZ1(z1); 
    2007   } 
     2028      roiNode.setZ1(z1); 
     2029    } 
    20082030 
    20092031  // - Reagent property storage - 
     
    20842106    if (name == null) return; 
    20852107    StageLabelNode stageLabelNode = getStageLabelNode(imageIndex, true); 
    2086     stageLabelNode.setName(name); 
    2087   } 
     2108      stageLabelNode.setName(name); 
     2109    } 
    20882110 
    20892111  /* @see loci.formats.meta.MetadataStore#setStageLabelX(Float, int) */ 
     
    20912113    if (x == null) return; 
    20922114    StageLabelNode stageLabelNode = getStageLabelNode(imageIndex, true); 
    2093     stageLabelNode.setX(x); 
    2094   } 
     2115      stageLabelNode.setX(x); 
     2116    } 
    20952117 
    20962118  /* @see loci.formats.meta.MetadataStore#setStageLabelY(Float, int) */ 
     
    20982120    if (y == null) return; 
    20992121    StageLabelNode stageLabelNode = getStageLabelNode(imageIndex, true); 
    2100     stageLabelNode.setY(y); 
    2101   } 
     2122      stageLabelNode.setY(y); 
     2123    } 
    21022124 
    21032125  /* @see loci.formats.meta.MetadataStore#setStageLabelZ(Float, int) */ 
     
    21052127    if (z == null) return; 
    21062128    StageLabelNode stageLabelNode = getStageLabelNode(imageIndex, true); 
    2107     stageLabelNode.setZ(z); 
    2108   } 
     2129      stageLabelNode.setZ(z); 
     2130    } 
    21092131 
    21102132  // - StagePosition property storage - 
     
    21362158    if (firstC == null) return; 
    21372159    TiffDataNode tiffDataNode = getTiffDataNode(imageIndex, pixelsIndex, tiffDataIndex, true); 
    2138     tiffDataNode.setFirstC(firstC); 
    2139   } 
     2160      tiffDataNode.setFirstC(firstC); 
     2161    } 
    21402162 
    21412163  /* @see loci.formats.meta.MetadataStore#setTiffDataFirstT(Integer, int, int, int) */ 
     
    21432165    if (firstT == null) return; 
    21442166    TiffDataNode tiffDataNode = getTiffDataNode(imageIndex, pixelsIndex, tiffDataIndex, true); 
    2145     tiffDataNode.setFirstT(firstT); 
    2146   } 
     2167      tiffDataNode.setFirstT(firstT); 
     2168    } 
    21472169 
    21482170  /* @see loci.formats.meta.MetadataStore#setTiffDataFirstZ(Integer, int, int, int) */ 
     
    21502172    if (firstZ == null) return; 
    21512173    TiffDataNode tiffDataNode = getTiffDataNode(imageIndex, pixelsIndex, tiffDataIndex, true); 
    2152     tiffDataNode.setFirstZ(firstZ); 
    2153   } 
     2174      tiffDataNode.setFirstZ(firstZ); 
     2175    } 
    21542176 
    21552177  /* @see loci.formats.meta.MetadataStore#setTiffDataIFD(Integer, int, int, int) */ 
     
    21572179    if (ifd == null) return; 
    21582180    TiffDataNode tiffDataNode = getTiffDataNode(imageIndex, pixelsIndex, tiffDataIndex, true); 
    2159     tiffDataNode.setIFD(ifd); 
    2160   } 
     2181      tiffDataNode.setIFD(ifd); 
     2182    } 
    21612183 
    21622184  /* @see loci.formats.meta.MetadataStore#setTiffDataNumPlanes(Integer, int, int, int) */ 
     
    21642186    if (numPlanes == null) return; 
    21652187    TiffDataNode tiffDataNode = getTiffDataNode(imageIndex, pixelsIndex, tiffDataIndex, true); 
    2166     tiffDataNode.setNumPlanes(numPlanes); 
    2167   } 
     2188      tiffDataNode.setNumPlanes(numPlanes); 
     2189    } 
    21682190 
    21692191  /* @see loci.formats.meta.MetadataStore#setTiffDataUUID(String, int, int, int) */ 
  • trunk/loci/formats/ome/OMEXML200706Metadata.java

    r4065 r4112  
    2525 * 
    2626 * THIS IS AUTOMATICALLY GENERATED CODE.  DO NOT MODIFY. 
    27  * Created by curtis via MetadataAutogen on May 23, 2008 4:44:30 PM CDT 
     27 * Created by melissa via MetadataAutogen on Jun 12, 2008 10:39:37 PM CDT 
    2828 * 
    2929 *----------------------------------------------------------------------------- 
     
    238238  public String getArcType(int instrumentIndex, int lightSourceIndex) { 
    239239    ArcNode arc = getArcNode(instrumentIndex, lightSourceIndex, false); 
    240     return arc == null ? null : arc.getType(); 
    241   } 
     240      return arc == null ? null : arc.getType(); 
     241    } 
    242242 
    243243  // - ChannelComponent property retrieval - 
     
    246246  public String getChannelComponentColorDomain(int imageIndex, int logicalChannelIndex, int channelComponentIndex) { 
    247247    ChannelComponentNode channelComponent = getChannelComponentNode(imageIndex, logicalChannelIndex, channelComponentIndex, false); 
    248     return channelComponent == null ? null : channelComponent.getColorDomain(); 
    249   } 
     248      return channelComponent == null ? null : channelComponent.getColorDomain(); 
     249    } 
    250250 
    251251  /* @see loci.formats.meta.MetadataRetrieve#getChannelComponentIndex(int, int, int) */ 
    252252  public Integer getChannelComponentIndex(int imageIndex, int logicalChannelIndex, int channelComponentIndex) { 
    253253    ChannelComponentNode channelComponent = getChannelComponentNode(imageIndex, logicalChannelIndex, channelComponentIndex, false); 
    254     return channelComponent == null ? null : channelComponent.getIndex(); 
    255   } 
     254      return channelComponent == null ? null : channelComponent.getIndex(); 
     255    } 
    256256 
    257257  // - Detector property retrieval - 
     
    260260  public Float getDetectorGain(int instrumentIndex, int detectorIndex) { 
    261261    DetectorNode detector = getDetectorNode(instrumentIndex, detectorIndex, false); 
    262     return detector == null ? null : detector.getGain(); 
    263   } 
     262      return detector == null ? null : detector.getGain(); 
     263    } 
    264264 
    265265  /* @see loci.formats.meta.MetadataRetrieve#getDetectorID(int, int) */ 
    266266  public String getDetectorID(int instrumentIndex, int detectorIndex) { 
    267267    DetectorNode detector = getDetectorNode(instrumentIndex, detectorIndex, false); 
    268     return detector == null ? null : detector.getNodeID(); 
    269   } 
     268      return detector == null ? null : detector.getNodeID(); 
     269    } 
    270270 
    271271  /* @see loci.formats.meta.MetadataRetrieve#getDetectorManufacturer(int, int) */ 
    272272  public String getDetectorManufacturer(int instrumentIndex, int detectorIndex) { 
    273273    DetectorNode detector = getDetectorNode(instrumentIndex, detectorIndex, false); 
    274     return detector == null ? null : detector.getManufacturer(); 
    275   } 
     274      return detector == null ? null : detector.getManufacturer(); 
     275    } 
    276276 
    277277  /* @see loci.formats.meta.MetadataRetrieve#getDetectorModel(int, int) */ 
    278278  public String getDetectorModel(int instrumentIndex, int detectorIndex) { 
    279279    DetectorNode detector = getDetectorNode(instrumentIndex, detectorIndex, false); 
    280     return detector == null ? null : detector.getModel(); 
    281   } 
     280      return detector == null ? null : detector.getModel(); 
     281    } 
    282282 
    283283  /* @see loci.formats.meta.MetadataRetrieve#getDetectorOffset(int, int) */ 
    284284  public Float getDetectorOffset(int instrumentIndex, int detectorIndex) { 
    285285    DetectorNode detector = getDetectorNode(instrumentIndex, detectorIndex, false); 
    286     return detector == null ? null : detector.getOffset(); 
    287   } 
     286      return detector == null ? null : detector.getOffset(); 
     287    } 
    288288 
    289289  /* @see loci.formats.meta.MetadataRetrieve#getDetectorSerialNumber(int, int) */ 
    290290  public String getDetectorSerialNumber(int instrumentIndex, int detectorIndex) { 
    291291    DetectorNode detector = getDetectorNode(instrumentIndex, detectorIndex, false); 
    292     return detector == null ? null : detector.getSerialNumber(); 
    293   } 
     292      return detector == null ? null : detector.getSerialNumber(); 
     293    } 
    294294 
    295295  /* @see loci.formats.meta.MetadataRetrieve#getDetectorType(int, int) */ 
    296296  public String getDetectorType(int instrumentIndex, int detectorIndex) { 
    297297    DetectorNode detector = getDetectorNode(instrumentIndex, detectorIndex, false); 
    298     return detector == null ? null : detector.getType(); 
    299   } 
     298      return detector == null ? null : detector.getType(); 
     299    } 
    300300 
    301301  /* @see loci.formats.meta.MetadataRetrieve#getDetectorVoltage(int, int) */ 
    302302  public Float getDetectorVoltage(int instrumentIndex, int detectorIndex) { 
    303303    DetectorNode detector = getDetectorNode(instrumentIndex, detectorIndex, false); 
    304     return detector == null ? null : detector.getVoltage(); 
    305   } 
     304      return detector == null ? null : detector.getVoltage(); 
     305    } 
    306306 
    307307  // - DetectorSettings property retrieval - 
     
    310310  public String getDetectorSettingsDetector(int imageIndex, int logicalChannelIndex) { 
    311311    DetectorRefNode detectorRef = getDetectorRefNode(imageIndex, logicalChannelIndex, false); 
    312     return detectorRef == null ? null : detectorRef.getNodeID(); 
    313   } 
     312      return detectorRef == null ? null : detectorRef.getNodeID(); 
     313    } 
    314314 
    315315  /* @see loci.formats.meta.MetadataRetrieve#getDetectorSettingsGain(int, int) */ 
    316316  public Float getDetectorSettingsGain(int imageIndex, int logicalChannelIndex) { 
    317317    DetectorRefNode detectorRef = getDetectorRefNode(imageIndex, logicalChannelIndex, false); 
    318     return detectorRef == null ? null : detectorRef.getGain(); 
    319   } 
     318      return detectorRef == null ? null : detectorRef.getGain(); 
     319    } 
    320320 
    321321  /* @see loci.formats.meta.MetadataRetrieve#getDetectorSettingsOffset(int, int) */ 
    322322  public Float getDetectorSettingsOffset(int imageIndex, int logicalChannelIndex) { 
    323323    DetectorRefNode detectorRef = getDetectorRefNode(imageIndex, logicalChannelIndex, false); 
    324     return detectorRef == null ? null : detectorRef.getOffset(); 
    325   } 
     324      return detectorRef == null ? null : detectorRef.getOffset(); 
     325    } 
    326326 
    327327  // - Dimensions property retrieval - 
     
    330330  public Float getDimensionsPhysicalSizeX(int imageIndex, int pixelsIndex) { 
    331331    PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, false); 
    332     return pixels == null ? null : pixels.getPhysicalSizeX(); 
    333   } 
     332      return pixels == null ? null : pixels.getPhysicalSizeX(); 
     333    } 
    334334 
    335335  /* @see loci.formats.meta.MetadataRetrieve#getDimensionsPhysicalSizeY(int, int) */ 
    336336  public Float getDimensionsPhysicalSizeY(int imageIndex, int pixelsIndex) { 
    337337    PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, false); 
    338     return pixels == null ? null : pixels.getPhysicalSizeY(); 
    339   } 
     338      return pixels == null ? null : pixels.getPhysicalSizeY(); 
     339    } 
    340340 
    341341  /* @see loci.formats.meta.MetadataRetrieve#getDimensionsPhysicalSizeZ(int, int) */ 
    342342  public Float getDimensionsPhysicalSizeZ(int imageIndex, int pixelsIndex) { 
    343343    PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, false); 
    344     return pixels == null ? null : pixels.getPhysicalSizeZ(); 
    345   } 
     344      return pixels == null ? null : pixels.getPhysicalSizeZ(); 
     345    } 
    346346 
    347347  /* @see loci.formats.meta.MetadataRetrieve#getDimensionsTimeIncrement(int, int) */ 
    348348  public Float getDimensionsTimeIncrement(int imageIndex, int pixelsIndex) { 
    349349    PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, false); 
    350     return pixels == null ? null : pixels.getTimeIncrement(); 
    351   } 
     350      return pixels == null ? null : pixels.getTimeIncrement(); 
     351    } 
    352352 
    353353  /* @see loci.formats.meta.MetadataRetrieve#getDimensionsWaveIncrement(int, int) */ 
    354354  public Integer getDimensionsWaveIncrement(int imageIndex, int pixelsIndex) { 
    355355    PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, false); 
    356     return pixels == null ? null : pixels.getWaveIncrement(); 
    357   } 
     356      return pixels == null ? null : pixels.getWaveIncrement(); 
     357    } 
    358358 
    359359  /* @see loci.formats.meta.MetadataRetrieve#getDimensionsWaveStart(int, int) */ 
    360360  public Integer getDimensionsWaveStart(int imageIndex, int pixelsIndex) { 
    361361    PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, false); 
    362     return pixels == null ? null : pixels.getWaveStart(); 
    363   } 
     362      return pixels == null ? null : pixels.getWaveStart(); 
     363    } 
    364364 
    365365  // - DisplayOptions property retrieval - 
     
    368368  public String getDisplayOptionsID(int imageIndex) { 
    369369    DisplayOptionsNode displayOptions = getDisplayOptionsNode(imageIndex, false); 
    370     return displayOptions == null ? null : displayOptions.getNodeID(); 
    371   } 
     370      return displayOptions == null ? null : displayOptions.getNodeID(); 
     371    } 
    372372 
    373373  /* @see loci.formats.meta.MetadataRetrieve#getDisplayOptionsZoom(int) */ 
    374374  public Float getDisplayOptionsZoom(int imageIndex) { 
    375375    DisplayOptionsNode displayOptions = getDisplayOptionsNode(imageIndex, false); 
    376     return displayOptions == null ? null : displayOptions.getZoom(); 
    377   } 
     376      return displayOptions == null ? null : displayOptions.getZoom(); 
     377    } 
    378378 
    379379  // - DisplayOptionsProjection property retrieval - 
     
    382382  public Integer getDisplayOptionsProjectionZStart(int imageIndex) { 
    383383    ProjectionNode projection = getProjectionNode(imageIndex, false); 
    384     return projection == null ? null : projection.getZStart(); 
    385   } 
     384      return projection == null ? null : projection.getZStart(); 
     385    } 
    386386 
    387387  /* @see loci.formats.meta.MetadataRetrieve#getDisplayOptionsProjectionZStop(int) */ 
    388388  public Integer getDisplayOptionsProjectionZStop(int imageIndex) { 
    389389    ProjectionNode projection = getProjectionNode(imageIndex, false); 
    390     return projection == null ? null : projection.getZStop(); 
    391   } 
     390      return projection == null ? null : projection.getZStop(); 
     391    } 
    392392 
    393393  // - DisplayOptionsTime property retrieval - 
     
    396396  public Integer getDisplayOptionsTimeTStart(int imageIndex) { 
    397397    TimeNode time = getTimeNode(imageIndex, false); 
    398     return time == null ? null : time.getTStart(); 
    399   } 
     398      return time == null ? null : time.getTStart(); 
     399    } 
    400400 
    401401  /* @see loci.formats.meta.MetadataRetrieve#getDisplayOptionsTimeTStop(int) */ 
    402402  public Integer getDisplayOptionsTimeTStop(int imageIndex) { 
    403403    TimeNode time = getTimeNode(imageIndex, false); 
    404     return time == null ? null : time.getTStop(); 
    405   } 
     404      return time == null ? null : time.getTStop(); 
     405    } 
    406406 
    407407  // - Experimenter property retrieval - 
     
    410410  public String getExperimenterEmail(int experimenterIndex) { 
    411411    ExperimenterNode experimenter = getExperimenterNode(experimenterIndex, false); 
    412     return experimenter == null ? null : experimenter.getEmail(); 
    413   } 
     412      return experimenter == null ? null : experimenter.getEmail(); 
     413    } 
    414414 
    415415  /* @see loci.formats.meta.MetadataRetrieve#getExperimenterFirstName(int) */ 
    416416  public String getExperimenterFirstName(int experimenterIndex) { 
    417417    ExperimenterNode experimenter = getExperimenterNode(experimenterIndex, false); 
    418     return experimenter == null ? null : experimenter.getFirstName(); 
    419   } 
     418      return experimenter == null ? null : experimenter.getFirstName(); 
     419    } 
    420420 
    421421  /* @see loci.formats.meta.MetadataRetrieve#getExperimenterID(int) */ 
    422422  public String getExperimenterID(int experimenterIndex) { 
    423423    ExperimenterNode experimenter = getExperimenterNode(experimenterIndex, false); 
    424     return experimenter == null ? null : experimenter.getNodeID(); 
    425   } 
     424      return experimenter == null ? null : experimenter.getNodeID(); 
     425    } 
    426426 
    427427  /* @see loci.formats.meta.MetadataRetrieve#getExperimenterInstitution(int) */ 
    428428  public String getExperimenterInstitution(int experimenterIndex) { 
    429429    ExperimenterNode experimenter = getExperimenterNode(experimenterIndex, false); 
    430     return experimenter == null ? null : experimenter.getInstitution(); 
    431   } 
     430      return experimenter == null ? null : experimenter.getInstitution(); 
     431    } 
    432432 
    433433  /* @see loci.formats.meta.MetadataRetrieve#getExperimenterLastName(int) */ 
    434434  public String getExperimenterLastName(int experimenterIndex) { 
    435435    ExperimenterNode experimenter = getExperimenterNode(experimenterIndex, false); 
    436     return experimenter == null ? null : experimenter.getLastName(); 
    437   } 
     436      return experimenter == null ? null : experimenter.getLastName(); 
     437    } 
    438438 
    439439  // - Filament property retrieval - 
     
    442442  public String getFilamentType(int instrumentIndex, int lightSourceIndex) { 
    443443    FilamentNode filament = getFilamentNode(instrumentIndex, lightSourceIndex, false); 
    444     return filament == null ? null : filament.getType(); 
    445   } 
     444      return filament == null ? null : filament.getType(); 
     445    } 
    446446 
    447447  // - Image property retrieval - 
     
    450450  public String getImageCreationDate(int imageIndex) { 
    451451    ImageNode image = getImageNode(imageIndex, false); 
    452     return image == null ? null : image.getCreationDate(); 
    453   } 
     452      return image == null ? null : image.getCreationDate(); 
     453    } 
    454454 
    455455  /* @see loci.formats.meta.MetadataRetrieve#getImageDescription(int) */ 
    456456  public String getImageDescription(int imageIndex) { 
    457457    ImageNode image = getImageNode(imageIndex, false); 
    458     return image == null ? null : image.getDescription(); 
    459   } 
     458      return image == null ? null : image.getDescription(); 
     459    } 
    460460 
    461461  /* @see loci.formats.meta.MetadataRetrieve#getImageID(int) */ 
    462462  public String getImageID(int imageIndex) { 
    463463    ImageNode image = getImageNode(imageIndex, false); 
    464     return image == null ? null : image.getNodeID(); 
    465   } 
     464      return image == null ? null : image.getNodeID(); 
     465    } 
     466 
     467  /* @see loci.formats.meta.MetadataRetrieve#getImageInstrumentRef(int) */ 
     468  public Integer getImageInstrumentRef(int imageIndex) { 
     469    ImageNode image = getImageNode(imageIndex, false); 
     470      InstrumentNode node = image.getInstrument(); 
     471    OMENode ome = (OMENode) root; 
     472    List list = ome.getInstrumentList(); 
     473    for (int i=0; i<list.size(); i++) { 
     474      Object o = list.get(i); 
     475      if (o.equals(node)) return new Integer(i); 
     476    } 
     477    return null; 
     478    } 
    466479 
    467480  /* @see loci.formats.meta.MetadataRetrieve#getImageName(int) */ 
    468481  public String getImageName(int imageIndex) { 
    469482    ImageNode image = getImageNode(imageIndex, false); 
    470     return image == null ? null : image.getName(); 
    471   } 
     483      return image == null ? null : image.getName(); 
     484    } 
    472485 
    473486  // - ImagingEnvironment property retrieval - 
     
    476489  public Float getImagingEnvironmentAirPressure(int imageIndex) { 
    477490    ImagingEnvironmentNode imagingEnvironment = getImagingEnvironmentNode(imageIndex, false); 
    478     return imagingEnvironment == null ? null : imagingEnvironment.getAirPressure(); 
    479   } 
     491      return imagingEnvironment == null ? null : imagingEnvironment.getAirPressure(); 
     492    } 
    480493 
    481494  /* @see loci.formats.meta.MetadataRetrieve#getImagingEnvironmentCO2Percent(int) */ 
    482495  public Float getImagingEnvironmentCO2Percent(int imageIndex) { 
    483496    ImagingEnvironmentNode imagingEnvironment = getImagingEnvironmentNode(imageIndex, false); 
    484     return imagingEnvironment == null ? null : imagingEnvironment.getCO2Percent(); 
    485   } 
     497      return imagingEnvironment == null ? null : imagingEnvironment.getCO2Percent(); 
     498    } 
    486499 
    487500  /* @see loci.formats.meta.MetadataRetrieve#getImagingEnvironmentHumidity(int) */ 
    488501  public Float getImagingEnvironmentHumidity(int imageIndex) { 
    489502    ImagingEnvironmentNode imagingEnvironment = getImagingEnvironmentNode(imageIndex, false); 
    490     return imagingEnvironment == null ? null : imagingEnvironment.getHumidity(); 
    491   } 
     503      return imagingEnvironment == null ? null : imagingEnvironment.getHumidity(); 
     504    } 
    492505 
    493506  /* @see loci.formats.meta.MetadataRetrieve#getImagingEnvironmentTemperature(int) */ 
    494507  public Float getImagingEnvironmentTemperature(int imageIndex) { 
    495508    ImagingEnvironmentNode imagingEnvironment = getImagingEnvironmentNode(imageIndex, false); 
    496     return imagingEnvironment == null ? null : imagingEnvironment.getTemperature(); 
    497   } 
     509      return imagingEnvironment == null ? null : imagingEnvironment.getTemperature(); 
     510    } 
    498511 
    499512  // - Instrument property retrieval - 
     
    502515  public String getInstrumentID(int instrumentIndex) { 
    503516    InstrumentNode instrument = getInstrumentNode(instrumentIndex, false); 
    504     return instrument == null ? null : instrument.getNodeID(); 
    505   } 
     517      return instrument == null ? null : instrument.getNodeID(); 
     518    } 
    506519 
    507520  // - Laser property retrieval - 
     
    510523  public Integer getLaserFrequencyMultiplication(int instrumentIndex, int lightSourceIndex) { 
    511524    LaserNode laser = getLaserNode(instrumentIndex, lightSourceIndex, false); 
    512     return laser == null ? null : laser.getFrequencyMultiplication(); 
    513   } 
     525      return laser == null ? null : laser.getFrequencyMultiplication(); 
     526    } 
    514527 
    515528  /* @see loci.formats.meta.MetadataRetrieve#getLaserLaserMedium(int, int) */ 
    516529  public String getLaserLaserMedium(int instrumentIndex, int lightSourceIndex) { 
    517530    LaserNode laser = getLaserNode(instrumentIndex, lightSourceIndex, false); 
    518     return laser == null ? null : laser.getLaserMedium(); 
    519   } 
     531      return laser == null ? null : laser.getLaserMedium(); 
     532    } 
    520533 
    521534  /* @see loci.formats.meta.MetadataRetrieve#getLaserPulse(int, int) */ 
    522535  public String getLaserPulse(int instrumentIndex, int lightSourceIndex) { 
    523536    LaserNode laser = getLaserNode(instrumentIndex, lightSourceIndex, false); 
    524     return laser == null ? null : laser.getPulse(); 
    525   } 
     537      return laser == null ? null : laser.getPulse(); 
     538    } 
    526539 
    527540  /* @see loci.formats.meta.MetadataRetrieve#getLaserTuneable(int, int) */ 
    528541  public Boolean getLaserTuneable(int instrumentIndex, int lightSourceIndex) { 
    529542    LaserNode laser = getLaserNode(instrumentIndex, lightSourceIndex, false); 
    530     return laser == null ? null : laser.getTuneable(); 
    531   } 
     543      return laser == null ? null : laser.getTuneable(); 
     544    } 
    532545 
    533546  /* @see loci.formats.meta.MetadataRetrieve#getLaserType(int, int) */ 
    534547  public String getLaserType(int instrumentIndex, int lightSourceIndex) { 
    535548    LaserNode laser = getLaserNode(instrumentIndex, lightSourceIndex, false); 
    536     return laser == null ? null : laser.getType(); 
    537   } 
     549      return laser == null ? null : laser.getType(); 
     550    } 
    538551 
    539552  /* @see loci.formats.meta.MetadataRetrieve#getLaserWavelength(int, int) */ 
    540553  public Integer getLaserWavelength(int instrumentIndex, int lightSourceIndex) { 
    541554    LaserNode laser = getLaserNode(instrumentIndex, lightSourceIndex, false); 
    542     return laser == null ? null : laser.getWavelength(); 
    543   } 
     555      return laser == null ? null : laser.getWavelength(); 
     556    } 
    544557 
    545558  // - LightSource property retrieval - 
     
    548561  public String getLightSourceID(int instrumentIndex, int lightSourceIndex) { 
    549562    LightSourceNode lightSource = getLightSourceNode(instrumentIndex, lightSourceIndex, false); 
    550     return lightSource == null ? null : lightSource.getNodeID(); 
    551   } 
     563      return lightSource == null ? null : lightSource.getNodeID(); 
     564    } 
    552565 
    553566  /* @see loci.formats.meta.MetadataRetrieve#getLightSourceManufacturer(int, int) */ 
    554567  public String getLightSourceManufacturer(int instrumentIndex, int lightSourceIndex) { 
    555568    LightSourceNode lightSource = getLightSourceNode(instrumentIndex, lightSourceIndex, false); 
    556     return lightSource == null ? null : lightSource.getManufacturer(); 
    557   } 
     569      return lightSource == null ? null : lightSource.getManufacturer(); 
     570    } 
    558571 
    559572  /* @see loci.formats.meta.MetadataRetrieve#getLightSourceModel(int, int) */ 
    560573  public String getLightSourceModel(int instrumentIndex, int lightSourceIndex) { 
    561574    LightSourceNode lightSource = getLightSourceNode(instrumentIndex, lightSourceIndex, false); 
    562     return lightSource == null ? null : lightSource.getModel(); 
    563   } 
     575      return lightSource == null ? null : lightSource.getModel(); 
     576    } 
    564577 
    565578  /* @see loci.formats.meta.MetadataRetrieve#getLightSourcePower(int, int) */ 
     
    572585  public String getLightSourceSerialNumber(int instrumentIndex, int lightSourceIndex) { 
    573586    LightSourceNode lightSource = getLightSourceNode(instrumentIndex, lightSourceIndex, false); 
    574     return lightSource == null ? null : lightSource.getSerialNumber(); 
    575   } 
     587      return lightSource == null ? null : lightSource.getSerialNumber(); 
     588    } 
    576589 
    577590  // - LightSourceSettings property retrieval - 
     
    580593  public Float getLightSourceSettingsAttenuation(int imageIndex, int logicalChannelIndex) { 
    581594    LightSourceRefNode lightSourceRef = getLightSourceRefNode(imageIndex, logicalChannelIndex, false); 
    582     return lightSourceRef == null ? null : lightSourceRef.getAttenuation(); 
    583   } 
     595      return lightSourceRef == null ? null : lightSourceRef.getAttenuation(); 
     596    } 
    584597 
    585598  /* @see loci.formats.meta.MetadataRetrieve#getLightSourceSettingsLightSource(int, int) */ 
    586599  public String getLightSourceSettingsLightSource(int imageIndex, int logicalChannelIndex) { 
    587600    LightSourceRefNode lightSourceRef = getLightSourceRefNode(imageIndex, logicalChannelIndex, false); 
    588     return lightSourceRef == null ? null : lightSourceRef.getNodeID(); 
    589   } 
     601      return lightSourceRef == null ? null : lightSourceRef.getNodeID(); 
     602    } 
    590603 
    591604  /* @see loci.formats.meta.MetadataRetrieve#getLightSourceSettingsWavelength(int, int) */ 
    592605  public Integer getLightSourceSettingsWavelength(int imageIndex, int logicalChannelIndex) { 
    593606    LightSourceRefNode lightSourceRef = getLightSourceRefNode(imageIndex, logicalChannelIndex, false); 
    594     return lightSourceRef == null ? null : lightSourceRef.getWavelength(); 
    595   } 
     607      return lightSourceRef == null ? null : lightSourceRef.getWavelength(); 
     608    } 
    596609 
    597610  // - LogicalChannel property retrieval - 
     
    600613  public String getLogicalChannelContrastMethod(int imageIndex, int logicalChannelIndex) { 
    601614    LogicalChannelNode logicalChannel = getLogicalChannelNode(imageIndex, logicalChannelIndex, false); 
    602     return logicalChannel == null ? null : logicalChannel.getContrastMethod(); 
    603   } 
     615      return logicalChannel == null ? null : logicalChannel.getContrastMethod(); 
     616    } 
    604617 
    605618  /* @see loci.formats.meta.MetadataRetrieve#getLogicalChannelEmWave(int, int) */ 
    606619  public Integer getLogicalChannelEmWave(int imageIndex, int logicalChannelIndex) { 
    607620    LogicalChannelNode logicalChannel = getLogicalChannelNode(imageIndex, logicalChannelIndex, false); 
    608     return logicalChannel == null ? null : logicalChannel.getEmWave(); 
    609   } 
     621      return logicalChannel == null ? null : logicalChannel.getEmWave(); 
     622    } 
    610623 
    611624  /* @see loci.formats.meta.MetadataRetrieve#getLogicalChannelExWave(int, int) */ 
    612625  public Integer getLogicalChannelExWave(int imageIndex, int logicalChannelIndex) { 
    613626    LogicalChannelNode logicalChannel = getLogicalChannelNode(imageIndex, logicalChannelIndex, false); 
    614     return logicalChannel == null ? null : logicalChannel.getExWave(); 
    615   } 
     627      return logicalChannel == null ? null : logicalChannel.getExWave(); 
     628    } 
    616629 
    617630  /* @see loci.formats.meta.MetadataRetrieve#getLogicalChannelFluor(int, int) */ 
    618631  public String getLogicalChannelFluor(int imageIndex, int logicalChannelIndex) { 
    619632    LogicalChannelNode logicalChannel = getLogicalChannelNode(imageIndex, logicalChannelIndex, false); 
    620     return logicalChannel == null ? null : logicalChannel.getFluor(); 
    621   } 
     633      return logicalChannel == null ? null : logicalChannel.getFluor(); 
     634    } 
    622635 
    623636  /* @see loci.formats.meta.MetadataRetrieve#getLogicalChannelID(int, int) */ 
    624637  public String getLogicalChannelID(int imageIndex, int logicalChannelIndex) { 
    625638    LogicalChannelNode logicalChannel = getLogicalChannelNode(imageIndex, logicalChannelIndex, false); 
    626     return logicalChannel == null ? null : logicalChannel.getNodeID(); 
    627   } 
     639      return logicalChannel == null ? null : logicalChannel.getNodeID(); 
     640    } 
    628641 
    629642  /* @see loci.formats.meta.MetadataRetrieve#getLogicalChannelIlluminationType(int, int) */ 
    630643  public String getLogicalChannelIlluminationType(int imageIndex, int logicalChannelIndex) { 
    631644    LogicalChannelNode logicalChannel = getLogicalChannelNode(imageIndex, logicalChannelIndex, false); 
    632     return logicalChannel == null ? null : logicalChannel.getIlluminationType(); 
    633   } 
     645      return logicalChannel == null ? null : logicalChannel.getIlluminationType(); 
     646    } 
    634647 
    635648  /* @see loci.formats.meta.MetadataRetrieve#getLogicalChannelMode(int, int) */ 
    636649  public String getLogicalChannelMode(int imageIndex, int logicalChannelIndex) { 
    637650    LogicalChannelNode logicalChannel = getLogicalChannelNode(imageIndex, logicalChannelIndex, false); 
    638     return logicalChannel == null ? null : logicalChannel.getMode(); 
    639   } 
     651      return logicalChannel == null ? null : logicalChannel.getMode(); 
     652    } 
    640653 
    641654  /* @see loci.formats.meta.MetadataRetrieve#getLogicalChannelName(int, int) */ 
    642655  public String getLogicalChannelName(int imageIndex, int logicalChannelIndex) { 
    643656    LogicalChannelNode logicalChannel = getLogicalChannelNode(imageIndex, logicalChannelIndex, false); 
    644     return logicalChannel == null ? null : logicalChannel.getName(); 
    645   } 
     657      return logicalChannel == null ? null : logicalChannel.getName(); 
     658    } 
    646659 
    647660  /* @see loci.formats.meta.MetadataRetrieve#getLogicalChannelNdFilter(int, int) */ 
    648661  public Float getLogicalChannelNdFilter(int imageIndex, int logicalChannelIndex) { 
    649662    LogicalChannelNode logicalChannel = getLogicalChannelNode(imageIndex, logicalChannelIndex, false); 
    650     return logicalChannel == null ? null : logicalChannel.getNdFilter(); 
    651   } 
     663      return logicalChannel == null ? null : logicalChannel.getNdFilter(); 
     664    } 
    652665 
    653666  /* @see loci.formats.meta.MetadataRetrieve#getLogicalChannelPhotometricInterpretation(int, int) */ 
    654667  public String getLogicalChannelPhotometricInterpretation(int imageIndex, int logicalChannelIndex) { 
    655668    LogicalChannelNode logicalChannel = getLogicalChannelNode(imageIndex, logicalChannelIndex, false); 
    656     return logicalChannel == null ? null : logicalChannel.getPhotometricInterpretation(); 
    657   } 
     669      return logicalChannel == null ? null : logicalChannel.getPhotometricInterpretation(); 
     670    } 
    658671 
    659672  /* @see loci.formats.meta.MetadataRetrieve#getLogicalChannelPinholeSize(int, int) */ 
    660673  public Integer getLogicalChannelPinholeSize(int imageIndex, int logicalChannelIndex) { 
    661674    LogicalChannelNode logicalChannel = getLogicalChannelNode(imageIndex, logicalChannelIndex, false); 
    662     return logicalChannel == null ? null : logicalChannel.getPinholeSize(); 
    663   } 
     675      return logicalChannel == null ? null : logicalChannel.getPinholeSize(); 
     676    } 
    664677 
    665678  /* @see loci.formats.meta.MetadataRetrieve#getLogicalChannelPockelCellSetting(int, int) */ 
    666679  public Integer getLogicalChannelPockelCellSetting(int imageIndex, int logicalChannelIndex) { 
    667680    LogicalChannelNode logicalChannel = getLogicalChannelNode(imageIndex, logicalChannelIndex, false); 
    668     return logicalChannel == null ? null : logicalChannel.getPockelCellSetting(); 
    669   } 
     681      return logicalChannel == null ? null : logicalChannel.getPockelCellSetting(); 
     682    } 
    670683 
    671684  /* @see loci.formats.meta.MetadataRetrieve#getLogicalChannelSamplesPerPixel(int, int) */ 
    672685  public Integer getLogicalChannelSamplesPerPixel(int imageIndex, int logicalChannelIndex) { 
    673686    LogicalChannelNode logicalChannel = getLogicalChannelNode(imageIndex, logicalChannelIndex, false); 
    674     return logicalChannel == null ? null : logicalChannel.getSamplesPerPixel(); 
    675   } 
     687      return logicalChannel == null ? null : logicalChannel.getSamplesPerPixel(); 
     688    } 
    676689 
    677690  // - OTF property retrieval - 
     
    680693  public String getOTFID(int instrumentIndex, int otfIndex) { 
    681694    OTFNode otf = getOTFNode(instrumentIndex, otfIndex, false); 
    682     return otf == null ? null : otf.getNodeID(); 
    683   } 
     695      return otf == null ? null : otf.getNodeID(); 
     696    } 
    684697 
    685698  /* @see loci.formats.meta.MetadataRetrieve#getOTFOpticalAxisAveraged(int, int) */ 
    686699  public Boolean getOTFOpticalAxisAveraged(int instrumentIndex, int otfIndex) { 
    687700    OTFNode otf = getOTFNode(instrumentIndex, otfIndex, false); 
    688     return otf == null ? null : otf.getOpticalAxisAveraged(); 
    689   } 
     701      return otf == null ? null : otf.getOpticalAxisAveraged(); 
     702    } 
    690703 
    691704  /* @see loci.formats.meta.MetadataRetrieve#getOTFPixelType(int, int) */ 
    692705  public String getOTFPixelType(int instrumentIndex, int otfIndex) { 
    693706    OTFNode otf = getOTFNode(instrumentIndex, otfIndex, false); 
    694     return otf == null ? null : otf.getPixelType(); 
    695   } 
     707      return otf == null ? null : otf.getPixelType(); 
     708    } 
    696709 
    697710  /* @see loci.formats.meta.MetadataRetrieve#getOTFSizeX(int, int) */ 
    698711  public Integer getOTFSizeX(int instrumentIndex, int otfIndex) { 
    699712    OTFNode otf = getOTFNode(instrumentIndex, otfIndex, false); 
    700     return otf == null ? null : otf.getSizeX(); 
    701   } 
     713      return otf == null ? null : otf.getSizeX(); 
     714    } 
    702715 
    703716  /* @see loci.formats.meta.MetadataRetrieve#getOTFSizeY(int, int) */ 
    704717  public Integer getOTFSizeY(int instrumentIndex, int otfIndex) { 
    705718    OTFNode otf = getOTFNode(instrumentIndex, otfIndex, false); 
    706     return otf == null ? null : otf.getSizeY(); 
    707   } 
     719      return otf == null ? null : otf.getSizeY(); 
     720    } 
    708721 
    709722  // - Objective property retrieval - 
     
    712725  public Float getObjectiveCalibratedMagnification(int instrumentIndex, int objectiveIndex) { 
    713726    ObjectiveNode objective = getObjectiveNode(instrumentIndex, objectiveIndex, false); 
    714     return objective == null ? null : objective.getCalibratedMagnification(); 
    715   } 
     727      return objective == null ? null : objective.getCalibratedMagnification(); 
     728    } 
    716729 
    717730  /* @see loci.formats.meta.MetadataRetrieve#getObjectiveCorrection(int, int) */ 
    718731  public String getObjectiveCorrection(int instrumentIndex, int objectiveIndex) { 
    719732    ObjectiveNode objective = getObjectiveNode(instrumentIndex, objectiveIndex, false); 
    720     return objective == null ? null : objective.getCorrection(); 
    721   } 
     733      return objective == null ? null : objective.getCorrection(); 
     734    } 
    722735 
    723736  /* @see loci.formats.meta.MetadataRetrieve#getObjectiveID(int, int) */ 
    724737  public String getObjectiveID(int instrumentIndex, int objectiveIndex) { 
    725738    ObjectiveNode objective = getObjectiveNode(instrumentIndex, objectiveIndex, false); 
    726     return objective == null ? null : objective.getNodeID(); 
    727   } 
     739      return objective == null ? null : objective.getNodeID(); 
     740    } 
    728741 
    729742  /* @see loci.formats.meta.MetadataRetrieve#getObjectiveImmersion(int, int) */ 
    730743  public String getObjectiveImmersion(int instrumentIndex, int objectiveIndex) { 
    731744    ObjectiveNode objective = getObjectiveNode(instrumentIndex, objectiveIndex, false); 
    732     return objective == null ? null : objective.getImmersion(); 
    733   } 
     745      return objective == null ? null : objective.getImmersion(); 
     746    } 
    734747 
    735748  /* @see loci.formats.meta.MetadataRetrieve#getObjectiveLensNA(int, int) */ 
    736749  public Float getObjectiveLensNA(int instrumentIndex, int objectiveIndex) { 
    737750    ObjectiveNode objective = getObjectiveNode(instrumentIndex, objectiveIndex, false); 
    738     return objective == null ? null : objective.getLensNA(); 
    739   } 
     751      return objective == null ? null : objective.getLensNA(); 
     752    } 
    740753 
    741754  /* @see loci.formats.meta.MetadataRetrieve#getObjectiveManufacturer(int, int) */ 
    742755  public String getObjectiveManufacturer(int instrumentIndex, int objectiveIndex) { 
    743756    ObjectiveNode objective = getObjectiveNode(instrumentIndex, objectiveIndex, false); 
    744     return objective == null ? null : objective.getManufacturer(); 
    745   } 
     757      return objective == null ? null : objective.getManufacturer(); 
     758    } 
    746759 
    747760  /* @see loci.formats.meta.MetadataRetrieve#getObjectiveModel(int, int) */ 
    748761  public String getObjectiveModel(int instrumentIndex, int objectiveIndex) { 
    749762    ObjectiveNode objective = getObjectiveNode(instrumentIndex, objectiveIndex, false); 
    750     return objective == null ? null : objective.getModel(); 
    751   } 
     763      return objective == null ? null : objective.getModel(); 
     764    } 
    752765 
    753766  /* @see loci.formats.meta.MetadataRetrieve#getObjectiveNominalMagnification(int, int) */ 
    754767  public Integer getObjectiveNominalMagnification(int instrumentIndex, int objectiveIndex) { 
    755768    ObjectiveNode objective = getObjectiveNode(instrumentIndex, objectiveIndex, false); 
    756     return objective == null ? null : objective.getNominalMagnification(); 
    757   } 
     769      return objective == null ? null : objective.getNominalMagnification(); 
     770    } 
    758771 
    759772  /* @see loci.formats.meta.MetadataRetrieve#getObjectiveSerialNumber(int, int) */ 
    760773  public String getObjectiveSerialNumber(int instrumentIndex, int objectiveIndex) { 
    761774    ObjectiveNode objective = getObjectiveNode(instrumentIndex, objectiveIndex, false); 
    762     return objective == null ? null : objective.getSerialNumber(); 
    763   } 
     775      return objective == null ? null : objective.getSerialNumber(); 
     776    } 
    764777 
    765778  /* @see loci.formats.meta.MetadataRetrieve#getObjectiveWorkingDistance(int, int) */ 
    766779  public Float getObjectiveWorkingDistance(int instrumentIndex, int objectiveIndex) { 
    767780    ObjectiveNode objective = getObjectiveNode(instrumentIndex, objectiveIndex, false); 
    768     return objective == null ? null : objective.getWorkingDistance(); 
    769   } 
     781      return objective == null ? null : objective.getWorkingDistance(); 
     782    } 
    770783 
    771784  // - Pixels property retrieval - 
     
    774787  public Boolean getPixelsBigEndian(int imageIndex, int pixelsIndex) { 
    775788    PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, false); 
    776     return pixels == null ? null : pixels.getBigEndian(); 
    777   } 
     789      return pixels == null ? null : pixels.getBigEndian(); 
     790    } 
    778791 
    779792  /* @see loci.formats.meta.MetadataRetrieve#getPixelsDimensionOrder(int, int) */ 
    780793  public String getPixelsDimensionOrder(int imageIndex, int pixelsIndex) { 
    781794    PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, false); 
    782     return pixels == null ? null : pixels.getDimensionOrder(); 
    783   } 
     795      return pixels == null ? null : pixels.getDimensionOrder(); 
     796    } 
    784797 
    785798  /* @see loci.formats.meta.MetadataRetrieve#getPixelsID(int, int) */ 
    786799  public String getPixelsID(int imageIndex, int pixelsIndex) { 
    787800    PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, false); 
    788     return pixels == null ? null : pixels.getNodeID(); 
    789   } 
     801      return pixels == null ? null : pixels.getNodeID(); 
     802    } 
    790803 
    791804  /* @see loci.formats.meta.MetadataRetrieve#getPixelsPixelType(int, int) */ 
    792805  public String getPixelsPixelType(int imageIndex, int pixelsIndex) { 
    793806    PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, false); 
    794     return pixels == null ? null : pixels.getPixelType(); 
    795   } 
     807      return pixels == null ? null : pixels.getPixelType(); 
     808    } 
    796809 
    797810  /* @see loci.formats.meta.MetadataRetrieve#getPixelsSizeC(int, int) */ 
    798811  public Integer getPixelsSizeC(int imageIndex, int pixelsIndex) { 
    799812    PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, false); 
    800     return pixels == null ? null : pixels.getSizeC(); 
    801   } 
     813      return pixels == null ? null : pixels.getSizeC(); 
     814    } 
    802815 
    803816  /* @see loci.formats.meta.MetadataRetrieve#getPixelsSizeT(int, int) */ 
    804817  public Integer getPixelsSizeT(int imageIndex, int pixelsIndex) { 
    805818    PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, false); 
    806     return pixels == null ? null : pixels.getSizeT(); 
    807   } 
     819      return pixels == null ? null : pixels.getSizeT(); 
     820    } 
    808821 
    809822  /* @see loci.formats.meta.MetadataRetrieve#getPixelsSizeX(int, int) */ 
    810823  public Integer getPixelsSizeX(int imageIndex, int pixelsIndex) { 
    811824    PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, false); 
    812     return pixels == null ? null : pixels.getSizeX(); 
    813   } 
     825      return pixels == null ? null : pixels.getSizeX(); 
     826    } 
    814827 
    815828  /* @see loci.formats.meta.MetadataRetrieve#getPixelsSizeY(int, int) */ 
    816829  public Integer getPixelsSizeY(int imageIndex, int pixelsIndex) { 
    817830    PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, false); 
    818     return pixels == null ? null : pixels.getSizeY(); 
    819   } 
     831      return pixels == null ? null : pixels.getSizeY(); 
     832    } 
    820833 
    821834  /* @see loci.formats.meta.MetadataRetrieve#getPixelsSizeZ(int, int) */ 
    822835  public Integer getPixelsSizeZ(int imageIndex, int pixelsIndex) { 
    823836    PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, false); 
    824     return pixels == null ? null : pixels.getSizeZ(); 
    825   } 
     837      return pixels == null ? null : pixels.getSizeZ(); 
     838    } 
    826839 
    827840  // - Plane property retrieval - 
     
    830843  public Integer getPlaneTheC(int imageIndex, int pixelsIndex, int planeIndex) { 
    831844    PlaneNode plane = getPlaneNode(imageIndex, pixelsIndex, planeIndex, false); 
    832     return plane == null ? null : plane.getTheC(); 
    833   } 
     845      return plane == null ? null : plane.getTheC(); 
     846    } 
    834847 
    835848  /* @see loci.formats.meta.MetadataRetrieve#getPlaneTheT(int, int, int) */ 
    836849  public Integer getPlaneTheT(int imageIndex, int pixelsIndex, int planeIndex) { 
    837850    PlaneNode plane = getPlaneNode(imageIndex, pixelsIndex, planeIndex, false); 
    838     return plane == null ? null : plane.getTheT(); 
    839   } 
     851      return plane == null ? null : plane.getTheT(); 
     852    } 
    840853 
    841854  /* @see loci.formats.meta.MetadataRetrieve#getPlaneTheZ(int, int, int) */ 
    842855  public Integer getPlaneTheZ(int imageIndex, int pixelsIndex, int planeIndex) { 
    843856    PlaneNode plane = getPlaneNode(imageIndex, pixelsIndex, planeIndex, false); 
    844     return plane == null ? null : plane.getTheZ(); 
    845   } 
     857      return plane == null ? null : plane.getTheZ(); 
     858    } 
    846859 
    847860  // - PlaneTiming property retrieval - 
     
    850863  public Float getPlaneTimingDeltaT(int imageIndex, int pixelsIndex, int planeIndex) { 
    851864    PlaneTimingNode planeTiming = getPlaneTimingNode(imageIndex, pixelsIndex, planeIndex, false); 
    852     return planeTiming == null ? null : planeTiming.getDeltaT(); 
    853   } 
     865      return planeTiming == null ? null : planeTiming.getDeltaT(); 
     866    } 
    854867 
    855868  /* @see loci.formats.meta.MetadataRetrieve#getPlaneTimingExposureTime(int, int, int) */ 
    856869  public Float getPlaneTimingExposureTime(int imageIndex, int pixelsIndex, int planeIndex) { 
    857870    PlaneTimingNode planeTiming = getPlaneTimingNode(imageIndex, pixelsIndex, planeIndex, false); 
    858     return planeTiming == null ? null : planeTiming.getExposureTime(); 
    859   } 
     871      return planeTiming == null ? null : planeTiming.getExposureTime(); 
     872    } 
    860873 
    861874  // - Plate property retrieval - 
     
    864877  public String getPlateDescription(int plateIndex) { 
    865878    PlateNode plate = getPlateNode(plateIndex, false); 
    866     return plate == null ? null : plate.getDescription(); 
    867   } 
     879      return plate == null ? null : plate.getDescription(); 
     880    } 
    868881 
    869882  /* @see loci.formats.meta.MetadataRetrieve#getPlateExternalIdentifier(int) */ 
    870883  public String getPlateExternalIdentifier(int plateIndex) { 
    871884    PlateNode plate = getPlateNode(plateIndex, false); 
    872     return plate == null ? null : plate.getExternalIdentifier(); 
    873   } 
     885      return plate == null ? null : plate.getExternalIdentifier(); 
     886    } 
    874887 
    875888  /* @see loci.formats.meta.MetadataRetrieve#getPlateID(int) */ 
    876889  public String getPlateID(int plateIndex) { 
    877890    PlateNode plate = getPlateNode(plateIndex, false); 
    878     return plate == null ? null : plate.getNodeID(); 
    879   } 
     891      return plate == null ? null : plate.getNodeID(); 
     892    } 
    880893 
    881894  /* @see loci.formats.meta.MetadataRetrieve#getPlateName(int) */ 
    882895  public String getPlateName(int plateIndex) { 
    883896    PlateNode plate = getPlateNode(plateIndex, false); 
    884     return plate == null ? null : plate.getName(); 
    885   } 
     897      return plate == null ? null : plate.getName(); 
     898    } 
    886899 
    887900  /* @see loci.formats.meta.MetadataRetrieve#getPlateStatus(int) */ 
    888901  public String getPlateStatus(int plateIndex) { 
    889902    PlateNode plate = getPlateNode(plateIndex, false); 
    890     return plate == null ? null : plate.getStatus(); 
    891   } 
     903      return plate == null ? null : plate.getStatus(); 
     904    } 
    892905 
    893906  // - PlateRef property retrieval - 
     
    896909  public String getPlateRefID(int screenIndex, int plateRefIndex) { 
    897910    PlateRefNode plateRef = getPlateRefNode(screenIndex, plateRefIndex, false); 
    898     return plateRef == null ? null : plateRef.getNodeID(); 
    899   } 
     911      return plateRef == null ? null : plateRef.getNodeID(); 
     912    } 
    900913 
    901914  // - ROI property retrieval - 
     
    904917  public String getROIID(int imageIndex, int roiIndex) { 
    905918    ROINode roi = getROINode(imageIndex, roiIndex, false); 
    906     return roi == null ? null : roi.getNodeID(); 
    907   } 
     919      return roi == null ? null : roi.getNodeID(); 
     920    } 
    908921 
    909922  /* @see loci.formats.meta.MetadataRetrieve#getROIT0(int, int) */ 
    910923  public Integer getROIT0(int imageIndex, int roiIndex) { 
    911924    ROINode roi = getROINode(imageIndex, roiIndex, false); 
    912     return roi == null ? null : roi.getT0(); 
    913   } 
     925      return roi == null ? null : roi.getT0(); 
     926    } 
    914927 
    915928  /* @see loci.formats.meta.MetadataRetrieve#getROIT1(int, int) */ 
    916929  public Integer getROIT1(int imageIndex, int roiIndex) { 
    917930    ROINode roi = getROINode(imageIndex, roiIndex, false); 
    918     return roi == null ? null : roi.getT1(); 
    919   } 
     931      return roi == null ? null : roi.getT1(); 
     932    } 
    920933 
    921934  /* @see loci.formats.meta.MetadataRetrieve#getROIX0(int, int) */ 
    922935  public Integer getROIX0(int imageIndex, int roiIndex) { 
    923936    ROINode roi = getROINode(imageIndex, roiIndex, false); 
    924     return roi == null ? null : roi.getX0(); 
    925   } 
     937      return roi == null ? null : roi.getX0(); 
     938    } 
    926939 
    927940  /* @see loci.formats.meta.MetadataRetrieve#getROIX1(int, int) */ 
    928941  public Integer getROIX1(int imageIndex, int roiIndex) { 
    929942    ROINode roi = getROINode(imageIndex, roiIndex, false); 
    930     return roi == null ? null : roi.getX1(); 
    931   } 
     943      return roi == null ? null : roi.getX1(); 
     944    } 
    932945 
    933946  /* @see loci.formats.meta.MetadataRetrieve#getROIY0(int, int) */ 
    934947  public Integer getROIY0(int imageIndex, int roiIndex) { 
    935948    ROINode roi = getROINode(imageIndex, roiIndex, false); 
    936     return roi == null ? null : roi.getY0(); 
    937   } 
     949      return roi == null ? null : roi.getY0(); 
     950    } 
    938951 
    939952  /* @see loci.formats.meta.MetadataRetrieve#getROIY1(int, int) */ 
    940953  public Integer getROIY1(int imageIndex, int roiIndex) { 
    941954    ROINode roi = getROINode(imageIndex, roiIndex, false); 
    942     return roi == null ? null : roi.getY1(); 
    943   } 
     955      return roi == null ? null : roi.getY1(); 
     956    } 
    944957 
    945958  /* @see loci.formats.meta.MetadataRetrieve#getROIZ0(int, int) */ 
    946959  public Integer getROIZ0(int imageIndex, int roiIndex) { 
    947960    ROINode roi = getROINode(imageIndex, roiIndex, false); 
    948     return roi == null ? null : roi.getZ0(); 
    949   } 
     961      return roi == null ? null : roi.getZ0(); 
     962    } 
    950963 
    951964  /* @see loci.formats.meta.MetadataRetrieve#getROIZ1(int, int) */ 
    952965  public Integer getROIZ1(int imageIndex, int roiIndex) { 
    953966    ROINode roi = getROINode(imageIndex, roiIndex, false); 
    954     return roi == null ? null : roi.getZ1(); 
    955   } 
     967      return roi == null ? null : roi.getZ1(); 
     968    } 
    956969 
    957970  // - Reagent property retrieval - 
     
    960973  public String getReagentDescription(int screenIndex, int reagentIndex) { 
    961974    ReagentNode reagent = getReagentNode(screenIndex, reagentIndex, false); 
    962     return reagent == null ? null : reagent.getDescription(); 
    963   } 
     975      return reagent == null ? null : reagent.getDescription(); 
     976    } 
    964977 
    965978  /* @see loci.formats.meta.MetadataRetrieve#getReagentID(int, int) */ 
    966979  public String getReagentID(int screenIndex, int reagentIndex) { 
    967980    ReagentNode reagent = getReagentNode(screenIndex, reagentIndex, false); 
    968     return reagent == null ? null : reagent.getNodeID(); 
    969   } 
     981      return reagent == null ? null : reagent.getNodeID(); 
     982    } 
    970983 
    971984  /* @see loci.formats.meta.MetadataRetrieve#getReagentName(int, int) */ 
    972985  public String getReagentName(int screenIndex, int reagentIndex) { 
    973986    ReagentNode reagent = getReagentNode(screenIndex, reagentIndex, false); 
    974     return reagent == null ? null : reagent.getName(); 
    975   } 
     987      return reagent == null ? null : reagent.getName(); 
     988    } 
    976989 
    977990  /* @see loci.formats.meta.MetadataRetrieve#getReagentReagentIdentifier(int, int) */ 
    978991  public String getReagentReagentIdentifier(int screenIndex, int reagentIndex) { 
    979992    ReagentNode reagent = getReagentNode(screenIndex, reagentIndex, false); 
    980     return reagent == null ? null : reagent.getReagentIdentifier(); 
    981   } 
     993      return reagent == null ? null : reagent.getReagentIdentifier(); 
     994    } 
    982995 
    983996  // - Screen property retrieval - 
     
    986999  public String getScreenID(int screenIndex) { 
    9871000    ScreenNode screen = getScreenNode(screenIndex, false); 
    988     return screen == null ? null : screen.getNodeID(); 
    989   } 
     1001      return screen == null ? null : screen.getNodeID(); 
     1002    } 
    9901003 
    9911004  /* @see loci.formats.meta.MetadataRetrieve#getScreenName(int) */ 
    9921005  public String getScreenName(int screenIndex) { 
    9931006    ScreenNode screen = getScreenNode(screenIndex, false); 
    994     return screen == null ? null : screen.getName(); 
    995   } 
     1007      return screen == null ? null : screen.getName(); 
     1008    } 
    9961009 
    9971010  /* @see loci.formats.meta.MetadataRetrieve#getScreenProtocolDescription(int) */ 
    9981011  public String getScreenProtocolDescription(int screenIndex) { 
    9991012    ScreenNode screen = getScreenNode(screenIndex, false); 
    1000     return screen == null ? null : screen.getProtocolDescription(); 
    1001   } 
     1013      return screen == null ? null : screen.getProtocolDescription(); 
     1014    } 
    10021015 
    10031016  /* @see loci.formats.meta.MetadataRetrieve#getScreenProtocolIdentifier(int) */ 
    10041017  public String getScreenProtocolIdentifier(int screenIndex) { 
    10051018    ScreenNode screen = getScreenNode(screenIndex, false); 
    1006     return screen == null ? null : screen.getProtocolIdentifier(); 
    1007   } 
     1019      return screen == null ? null : screen.getProtocolIdentifier(); 
     1020    } 
    10081021 
    10091022  /* @see loci.formats.meta.MetadataRetrieve#getScreenReagentSetDescription(int) */ 
    10101023  public String getScreenReagentSetDescription(int screenIndex) { 
    10111024    ScreenNode screen = getScreenNode(screenIndex, false); 
    1012     return screen == null ? null : screen.getReagentSetDescription(); 
    1013   } 
     1025      return screen == null ? null : screen.getReagentSetDescription(); 
     1026    } 
    10141027 
    10151028  /* @see loci.formats.meta.MetadataRetrieve#getScreenType(int) */ 
    10161029  public String getScreenType(int screenIndex) { 
    10171030    ScreenNode screen = getScreenNode(screenIndex, false); 
    1018     return screen == null ? null : screen.getType(); 
    1019   } 
     1031      return screen == null ? null : screen.getType(); 
     1032    } 
    10201033 
    10211034  // - ScreenAcquisition property retrieval - 
     
    10241037  public String getScreenAcquisitionEndTime(int screenIndex, int screenAcquisitionIndex) { 
    10251038    ScreenAcquisitionNode screenAcquisition = getScreenAcquisitionNode(screenIndex, screenAcquisitionIndex, false); 
    1026     return screenAcquisition == null ? null : screenAcquisition.getEndTime(); 
    1027   } 
     1039      return screenAcquisition == null ? null : screenAcquisition.getEndTime(); 
     1040    } 
    10281041 
    10291042  /* @see loci.formats.meta.MetadataRetrieve#getScreenAcquisitionID(int, int) */ 
    10301043  public String getScreenAcquisitionID(int screenIndex, int screenAcquisitionIndex) { 
    10311044    ScreenAcquisitionNode screenAcquisition = getScreenAcquisitionNode(screenIndex, screenAcquisitionIndex, false); 
    1032     return screenAcquisition == null ? null : screenAcquisition.getNodeID(); 
    1033   } 
     1045      return screenAcquisition == null ? null : screenAcquisition.getNodeID(); 
     1046    } 
    10341047 
    10351048  /* @see loci.formats.meta.MetadataRetrieve#getScreenAcquisitionStartTime(int, int) */ 
    10361049  public String getScreenAcquisitionStartTime(int screenIndex, int screenAcquisitionIndex) { 
    10371050    ScreenAcquisitionNode screenAcquisition = getScreenAcquisitionNode(screenIndex, screenAcquisitionIndex, false); 
    1038     return screenAcquisition == null ? null : screenAcquisition.getStartTime(); 
    1039   } 
     1051      return screenAcquisition == null ? null : screenAcquisition.getStartTime(); 
     1052    } 
    10401053 
    10411054  // - StageLabel property retrieval - 
     
    10441057  public String getStageLabelName(int imageIndex) { 
    10451058    StageLabelNode stageLabel = getStageLabelNode(imageIndex, false); 
    1046     return stageLabel == null ? null : stageLabel.getName(); 
    1047   } 
     1059      return stageLabel == null ? null : stageLabel.getName(); 
     1060    } 
    10481061 
    10491062  /* @see loci.formats.meta.MetadataRetrieve#getStageLabelX(int) */ 
    10501063  public Float getStageLabelX(int imageIndex) { 
    10511064    StageLabelNode stageLabel = getStageLabelNode(imageIndex, false); 
    1052     return stageLabel == null ? null : stageLabel.getX(); 
    1053   } 
     1065      return stageLabel == null ? null : stageLabel.getX(); 
     1066    } 
    10541067 
    10551068  /* @see loci.formats.meta.MetadataRetrieve#getStageLabelY(int) */ 
    10561069  public Float getStageLabelY(int imageIndex) { 
    10571070    StageLabelNode stageLabel = getStageLabelNode(imageIndex, false); 
    1058     return stageLabel == null ? null : stageLabel.getY(); 
    1059   } 
     1071      return stageLabel == null ? null : stageLabel.getY(); 
     1072    } 
    10601073 
    10611074  /* @see loci.formats.meta.MetadataRetrieve#getStageLabelZ(int) */ 
    10621075  public Float getStageLabelZ(int imageIndex) { 
    10631076    StageLabelNode stageLabel = getStageLabelNode(imageIndex, false); 
    1064     return stageLabel == null ? null : stageLabel.getZ(); 
    1065   } 
     1077      return stageLabel == null ? null : stageLabel.getZ(); 
     1078    } 
    10661079 
    10671080  // - StagePosition property retrieval - 
     
    10701083  public Float getStagePositionPositionX(int imageIndex, int pixelsIndex, int planeIndex) { 
    10711084    StagePositionNode stagePosition = getStagePositionNode(imageIndex, pixelsIndex, planeIndex, false); 
    1072     return stagePosition == null ? null : stagePosition.getPositionX(); 
    1073   } 
     1085      return stagePosition == null ? null : stagePosition.getPositionX(); 
     1086    } 
    10741087 
    10751088  /* @see loci.formats.meta.MetadataRetrieve#getStagePositionPositionY(int, int, int) */ 
    10761089  public Float getStagePositionPositionY(int imageIndex, int pixelsIndex, int planeIndex) { 
    10771090    StagePositionNode stagePosition = getStagePositionNode(imageIndex, pixelsIndex, planeIndex, false); 
    1078     return stagePosition == null ? null : stagePosition.getPositionY(); 
    1079   } 
     1091      return stagePosition == null ? null : stagePosition.getPositionY(); 
     1092    } 
    10801093 
    10811094  /* @see loci.formats.meta.MetadataRetrieve#getStagePositionPositionZ(int, int, int) */ 
    10821095  public Float getStagePositionPositionZ(int imageIndex, int pixelsIndex, int planeIndex) { 
    10831096    StagePositionNode stagePosition = getStagePositionNode(imageIndex, pixelsIndex, planeIndex, false); 
    1084     return stagePosition == null ? null : stagePosition.getPositionZ(); 
    1085   } 
     1097      return stagePosition == null ? null : stagePosition.getPositionZ(); 
     1098    } 
    10861099 
    10871100  // - TiffData property retrieval - 
     
    10961109  public Integer getTiffDataFirstC(int imageIndex, int pixelsIndex, int tiffDataIndex) { 
    10971110    TiffDataNode tiffData = getTiffDataNode(imageIndex, pixelsIndex, tiffDataIndex, false); 
    1098     return tiffData == null ? null : tiffData.getFirstC(); 
    1099   } 
     1111      return tiffData == null ? null : tiffData.getFirstC(); 
     1112    } 
    11001113 
    11011114  /* @see loci.formats.meta.MetadataRetrieve#getTiffDataFirstT(int, int, int) */ 
    11021115  public Integer getTiffDataFirstT(int imageIndex, int pixelsIndex, int tiffDataIndex) { 
    11031116    TiffDataNode tiffData = getTiffDataNode(imageIndex, pixelsIndex, tiffDataIndex, false); 
    1104     return tiffData == null ? null : tiffData.getFirstT(); 
    1105   } 
     1117      return tiffData == null ? null : tiffData.getFirstT(); 
     1118    } 
    11061119 
    11071120  /* @see loci.formats.meta.MetadataRetrieve#getTiffDataFirstZ(int, int, int) */ 
    11081121  public Integer getTiffDataFirstZ(int imageIndex, int pixelsIndex, int tiffDataIndex) { 
    11091122    TiffDataNode tiffData = getTiffDataNode(imageIndex, pixelsIndex, tiffDataIndex, false); 
    1110     return tiffData == null ? null : tiffData.getFirstZ(); 
    1111   } 
     1123      return tiffData == null ? null : tiffData.getFirstZ(); 
     1124    } 
    11121125 
    11131126  /* @see loci.formats.meta.MetadataRetrieve#getTiffDataIFD(int, int, int) */ 
    11141127  public Integer getTiffDataIFD(int imageIndex, int pixelsIndex, int tiffDataIndex) { 
    11151128    TiffDataNode tiffData = getTiffDataNode(imageIndex, pixelsIndex, tiffDataIndex, false); 
    1116     return tiffData == null ? null : tiffData.getIFD(); 
    1117   } 
     1129      return tiffData == null ? null : tiffData.getIFD(); 
     1130    } 
    11181131 
    11191132  /* @see loci.formats.meta.MetadataRetrieve#getTiffDataNumPlanes(int, int, int) */ 
    11201133  public Integer getTiffDataNumPlanes(int imageIndex, int pixelsIndex, int tiffDataIndex) { 
    11211134    TiffDataNode tiffData = getTiffDataNode(imageIndex, pixelsIndex, tiffDataIndex, false); 
    1122     return tiffData == null ? null : tiffData.getNumPlanes(); 
    1123   } 
     1135      return tiffData == null ? null : tiffData.getNumPlanes(); 
     1136    } 
    11241137 
    11251138  /* @see loci.formats.meta.MetadataRetrieve#getTiffDataUUID(int, int, int) */ 
     
    11341147  public Integer getWellColumn(int wellIndex) { 
    11351148    WellNode well = getWellNode(wellIndex, false); 
    1136     return well == null ? null : well.getColumn(); 
    1137   } 
     1149      return well == null ? null : well.getColumn(); 
     1150    } 
    11381151 
    11391152  /* @see loci.formats.meta.MetadataRetrieve#getWellExternalDescription(int) */ 
    11401153  public String getWellExternalDescription(int wellIndex) { 
    11411154    WellNode well = getWellNode(wellIndex, false); 
    1142     return well == null ? null : well.getExternalDescription(); 
    1143   } 
     1155      return well == null ? null : well.getExternalDescription(); 
     1156    } 
    11441157 
    11451158  /* @see loci.formats.meta.MetadataRetrieve#getWellExternalIdentifier(int) */ 
    11461159  public String getWellExternalIdentifier(int wellIndex) { 
    11471160    WellNode well = getWellNode(wellIndex, false); 
    1148     return well == null ? null : well.getExternalIdentifier(); 
    1149   } 
     1161      return well == null ? null : well.getExternalIdentifier(); 
     1162    } 
    11501163 
    11511164  /* @see loci.formats.meta.MetadataRetrieve#getWellID(int) */ 
    11521165  public String getWellID(int wellIndex) { 
    11531166    WellNode well = getWellNode(wellIndex, false); 
    1154     return well == null ? null : well.getNodeID(); 
    1155   } 
     1167      return well == null ? null : well.getNodeID(); 
     1168    } 
    11561169 
    11571170  /* @see loci.formats.meta.MetadataRetrieve#getWellRow(int) */ 
    11581171  public Integer getWellRow(int wellIndex) { 
    11591172    WellNode well = getWellNode(wellIndex, false); 
    1160     return well == null ? null : well.getRow(); 
    1161   } 
     1173      return well == null ? null : well.getRow(); 
     1174    } 
    11621175 
    11631176  /* @see loci.formats.meta.MetadataRetrieve#getWellType(int) */ 
    11641177  public String getWellType(int wellIndex) { 
    11651178    WellNode well = getWellNode(wellIndex, false); 
    1166     return well == null ? null : well.getType(); 
    1167   } 
     1179      return well == null ? null : well.getType(); 
     1180    } 
    11681181 
    11691182  // - WellSample property retrieval - 
     
    11721185  public String getWellSampleID(int wellIndex, int wellSampleIndex) { 
    11731186    WellSampleNode wellSample = getWellSampleNode(wellIndex, wellSampleIndex, false); 
    1174     return wellSample == null ? null : wellSample.getNodeID(); 
    1175   } 
     1187      return wellSample == null ? null : wellSample.getNodeID(); 
     1188    } 
    11761189 
    11771190  /* @see loci.formats.meta.MetadataRetrieve#getWellSampleIndex(int, int) */ 
    11781191  public Integer getWellSampleIndex(int wellIndex, int wellSampleIndex) { 
    11791192    WellSampleNode wellSample = getWellSampleNode(wellIndex, wellSampleIndex, false); 
    1180     return wellSample == null ? null : wellSample.getIndex(); 
    1181   } 
     1193      return wellSample == null ? null : wellSample.getIndex(); 
     1194    } 
    11821195 
    11831196  /* @see loci.formats.meta.MetadataRetrieve#getWellSamplePosX(int, int) */ 
    11841197  public Float getWellSamplePosX(int wellIndex, int wellSampleIndex) { 
    11851198    WellSampleNode wellSample = getWellSampleNode(wellIndex, wellSampleIndex, false); 
    1186     return wellSample == null ? null : wellSample.getPosX(); 
    1187   } 
     1199      return wellSample == null ? null : wellSample.getPosX(); 
     1200    } 
    11881201 
    11891202  /* @see loci.formats.meta.MetadataRetrieve#getWellSamplePosY(int, int) */ 
    11901203  public Float getWellSamplePosY(int wellIndex, int wellSampleIndex) { 
    11911204    WellSampleNode wellSample = getWellSampleNode(wellIndex, wellSampleIndex, false); 
    1192     return wellSample == null ? null : wellSample.getPosY(); 
    1193   } 
     1205      return wellSample == null ? null : wellSample.getPosY(); 
     1206    } 
    11941207 
    11951208  /* @see loci.formats.meta.MetadataRetrieve#getWellSampleTimepoint(int, int) */ 
    11961209  public Integer getWellSampleTimepoint(int wellIndex, int wellSampleIndex) { 
    11971210    WellSampleNode wellSample = getWellSampleNode(wellIndex, wellSampleIndex, false); 
    1198     return wellSample == null ? null : wellSample.getTimepoint(); 
    1199   } 
     1211      return wellSample == null ? null : wellSample.getTimepoint(); 
     1212    } 
    12001213 
    12011214  // -- MetadataStore API methods -- 
     
    12301243    if (type == null) return; 
    12311244    ArcNode arcNode = getArcNode(instrumentIndex, lightSourceIndex, true); 
    1232     arcNode.setType(type); 
    1233   } 
     1245      arcNode.setType(type); 
     1246    } 
    12341247 
    12351248  // - ChannelComponent property storage - 
     
    12391252    if (colorDomain == null) return; 
    12401253    ChannelComponentNode channelComponentNode = getChannelComponentNode(imageIndex, logicalChannelIndex, channelComponentIndex, true); 
    1241     channelComponentNode.setColorDomain(colorDomain); 
    1242   } 
     1254      channelComponentNode.setColorDomain(colorDomain); 
     1255    } 
    12431256 
    12441257  /* @see loci.formats.meta.MetadataStore#setChannelComponentIndex(Integer, int, int, int) */ 
     
    12461259    if (index == null) return; 
    12471260    ChannelComponentNode channelComponentNode = getChannelComponentNode(imageIndex, logicalChannelIndex, channelComponentIndex, true); 
    1248     channelComponentNode.setIndex(index); 
    1249   } 
     1261      channelComponentNode.setIndex(index); 
     1262    } 
    12501263 
    12511264  // - Detector property storage - 
     
    12551268    if (gain == null) return; 
    12561269    DetectorNode detectorNode = getDetectorNode(instrumentIndex, detectorIndex, true); 
    1257     detectorNode.setGain(gain); 
    1258   } 
     1270      detectorNode.setGain(gain); 
     1271    } 
    12591272 
    12601273  /* @see loci.formats.meta.MetadataStore#setDetectorID(String, int, int) */ 
     
    12621275    if (id == null) return; 
    12631276    DetectorNode detectorNode = getDetectorNode(instrumentIndex, detectorIndex, true); 
    1264     detectorNode.setNodeID(id); 
    1265   } 
     1277      detectorNode.setNodeID(id); 
     1278    } 
    12661279 
    12671280  /* @see loci.formats.meta.MetadataStore#setDetectorManufacturer(String, int, int) */ 
     
    12691282    if (manufacturer == null) return; 
    12701283    DetectorNode detectorNode = getDetectorNode(instrumentIndex, detectorIndex, true); 
    1271     detectorNode.setManufacturer(manufacturer); 
    1272   } 
     1284      detectorNode.setManufacturer(manufacturer); 
     1285    } 
    12731286 
    12741287  /* @see loci.formats.meta.MetadataStore#setDetectorModel(String, int, int) */ 
     
    12761289    if (model == null) return; 
    12771290    DetectorNode detectorNode = getDetectorNode(instrumentIndex, detectorIndex, true); 
    1278     detectorNode.setModel(model); 
    1279   } 
     1291      detectorNode.setModel(model); 
     1292    } 
    12801293 
    12811294  /* @see loci.formats.meta.MetadataStore#setDetectorOffset(Float, int, int) */ 
     
    12831296    if (offset == null) return; 
    12841297    DetectorNode detectorNode = getDetectorNode(instrumentIndex, detectorIndex, true); 
    1285     detectorNode.setOffset(offset); 
    1286   } 
     1298      detectorNode.setOffset(offset); 
     1299    } 
    12871300 
    12881301  /* @see loci.formats.meta.MetadataStore#setDetectorSerialNumber(String, int, int) */ 
     
    12901303    if (serialNumber == null) return; 
    12911304    DetectorNode detectorNode = getDetectorNode(instrumentIndex, detectorIndex, true); 
    1292     detectorNode.setSerialNumber(serialNumber); 
    1293   } 
     1305      detectorNode.setSerialNumber(serialNumber); 
     1306    } 
    12941307 
    12951308  /* @see loci.formats.meta.MetadataStore#setDetectorType(String, int, int) */ 
     
    12971310    if (type == null) return; 
    12981311    DetectorNode detectorNode = getDetectorNode(instrumentIndex, detectorIndex, true); 
    1299     detectorNode.setType(type); 
    1300   } 
     1312      detectorNode.setType(type); 
     1313    } 
    13011314 
    13021315  /* @see loci.formats.meta.MetadataStore#setDetectorVoltage(Float, int, int) */ 
     
    13041317    if (voltage == null) return; 
    13051318    DetectorNode detectorNode = getDetectorNode(instrumentIndex, detectorIndex, true); 
    1306     detectorNode.setVoltage(voltage); 
    1307   } 
     1319      detectorNode.setVoltage(voltage); 
     1320    } 
    13081321 
    13091322  // - DetectorSettings property storage - 
     
    13131326    if (detector == null) return; 
    13141327    DetectorRefNode detectorRefNode = getDetectorRefNode(imageIndex, logicalChannelIndex, true); 
    1315     detectorRefNode.setNodeID(detector); 
    1316   } 
     1328      detectorRefNode.setNodeID(detector); 
     1329    } 
    13171330 
    13181331  /* @see loci.formats.meta.MetadataStore#setDetectorSettingsGain(Float, int, int) */ 
     
    13201333    if (gain == null) return; 
    13211334    DetectorRefNode detectorRefNode = getDetectorRefNode(imageIndex, logicalChannelIndex, true); 
    1322     detectorRefNode.setGain(gain); 
    1323   } 
     1335      detectorRefNode.setGain(gain); 
     1336    } 
    13241337 
    13251338  /* @see loci.formats.meta.MetadataStore#setDetectorSettingsOffset(Float, int, int) */ 
     
    13271340    if (offset == null) return; 
    13281341    DetectorRefNode detectorRefNode = getDetectorRefNode(imageIndex, logicalChannelIndex, true); 
    1329     detectorRefNode.setOffset(offset); 
    1330   } 
     1342      detectorRefNode.setOffset(offset); 
     1343    } 
    13311344 
    13321345  // - Dimensions property storage - 
     
    13361349    if (physicalSizeX == null) return; 
    13371350    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
    1338     pixelsNode.setPhysicalSizeX(physicalSizeX); 
    1339   } 
     1351      pixelsNode.setPhysicalSizeX(physicalSizeX); 
     1352    } 
    13401353 
    13411354  /* @see loci.formats.meta.MetadataStore#setDimensionsPhysicalSizeY(Float, int, int) */ 
     
    13431356    if (physicalSizeY == null) return; 
    13441357    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
    1345     pixelsNode.setPhysicalSizeY(physicalSizeY); 
    1346   } 
     1358      pixelsNode.setPhysicalSizeY(physicalSizeY); 
     1359    } 
    13471360 
    13481361  /* @see loci.formats.meta.MetadataStore#setDimensionsPhysicalSizeZ(Float, int, int) */ 
     
    13501363    if (physicalSizeZ == null) return; 
    13511364    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
    1352     pixelsNode.setPhysicalSizeZ(physicalSizeZ); 
    1353   } 
     1365      pixelsNode.setPhysicalSizeZ(physicalSizeZ); 
     1366    } 
    13541367 
    13551368  /* @see loci.formats.meta.MetadataStore#setDimensionsTimeIncrement(Float, int, int) */ 
     
    13571370    if (timeIncrement == null) return; 
    13581371    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
    1359     pixelsNode.setTimeIncrement(timeIncrement); 
    1360   } 
     1372      pixelsNode.setTimeIncrement(timeIncrement); 
     1373    } 
    13611374 
    13621375  /* @see loci.formats.meta.MetadataStore#setDimensionsWaveIncrement(Integer, int, int) */ 
     
    13641377    if (waveIncrement == null) return; 
    13651378    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
    1366     pixelsNode.setWaveIncrement(waveIncrement); 
    1367   } 
     1379      pixelsNode.setWaveIncrement(waveIncrement); 
     1380    } 
    13681381 
    13691382  /* @see loci.formats.meta.MetadataStore#setDimensionsWaveStart(Integer, int, int) */ 
     
    13711384    if (waveStart == null) return; 
    13721385    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
    1373     pixelsNode.setWaveStart(waveStart); 
    1374   } 
     1386      pixelsNode.setWaveStart(waveStart); 
     1387    } 
    13751388 
    13761389  // - DisplayOptions property storage - 
     
    13801393    if (id == null) return; 
    13811394    DisplayOptionsNode displayOptionsNode = getDisplayOptionsNode(imageIndex, true); 
    1382     displayOptionsNode.setNodeID(id); 
    1383   } 
     1395      displayOptionsNode.setNodeID(id); 
     1396    } 
    13841397 
    13851398  /* @see loci.formats.meta.MetadataStore#setDisplayOptionsZoom(Float, int) */ 
     
    13871400    if (zoom == null) return; 
    13881401    DisplayOptionsNode displayOptionsNode = getDisplayOptionsNode(imageIndex, true); 
    1389     displayOptionsNode.setZoom(zoom); 
    1390   } 
     1402      displayOptionsNode.setZoom(zoom); 
     1403    } 
    13911404 
    13921405  // - DisplayOptionsProjection property storage - 
     
    13961409    if (zStart == null) return; 
    13971410    ProjectionNode projectionNode = getProjectionNode(imageIndex, true); 
    1398     projectionNode.setZStart(zStart); 
    1399   } 
     1411      projectionNode.setZStart(zStart); 
     1412    } 
    14001413 
    14011414  /* @see loci.formats.meta.MetadataStore#setDisplayOptionsProjectionZStop(Integer, int) */ 
     
    14031416    if (zStop == null) return; 
    14041417    ProjectionNode projectionNode = getProjectionNode(imageIndex, true); 
    1405     projectionNode.setZStop(zStop); 
    1406   } 
     1418      projectionNode.setZStop(zStop); 
     1419    } 
    14071420 
    14081421  // - DisplayOptionsTime property storage - 
     
    14121425    if (tStart == null) return; 
    14131426    TimeNode timeNode = getTimeNode(imageIndex, true); 
    1414     timeNode.setTStart(tStart); 
    1415   } 
     1427      timeNode.setTStart(tStart); 
     1428    } 
    14161429 
    14171430  /* @see loci.formats.meta.MetadataStore#setDisplayOptionsTimeTStop(Integer, int) */ 
     
    14191432    if (tStop == null) return; 
    14201433    TimeNode timeNode = getTimeNode(imageIndex, true); 
    1421     timeNode.setTStop(tStop); 
    1422   } 
     1434      timeNode.setTStop(tStop); 
     1435    } 
    14231436 
    14241437  // - Experimenter property storage - 
     
    14281441    if (email == null) return; 
    14291442    ExperimenterNode experimenterNode = getExperimenterNode(experimenterIndex, true); 
    1430     experimenterNode.setEmail(email); 
    1431   } 
     1443      experimenterNode.setEmail(email); 
     1444    } 
    14321445 
    14331446  /* @see loci.formats.meta.MetadataStore#setExperimenterFirstName(String, int) */ 
     
    14351448    if (firstName == null) return; 
    14361449    ExperimenterNode experimenterNode = getExperimenterNode(experimenterIndex, true); 
    1437     experimenterNode.setFirstName(firstName); 
    1438   } 
     1450      experimenterNode.setFirstName(firstName); 
     1451    } 
    14391452 
    14401453  /* @see loci.formats.meta.MetadataStore#setExperimenterID(String, int) */ 
     
    14421455    if (id == null) return; 
    14431456    ExperimenterNode experimenterNode = getExperimenterNode(experimenterIndex, true); 
    1444     experimenterNode.setNodeID(id); 
    1445   } 
     1457      experimenterNode.setNodeID(id); 
     1458    } 
    14461459 
    14471460  /* @see loci.formats.meta.MetadataStore#setExperimenterInstitution(String, int) */ 
     
    14491462    if (institution == null) return; 
    14501463    ExperimenterNode experimenterNode = getExperimenterNode(experimenterIndex, true); 
    1451     experimenterNode.setInstitution(institution); 
    1452   } 
     1464      experimenterNode.setInstitution(institution); 
     1465    } 
    14531466 
    14541467  /* @see loci.formats.meta.MetadataStore#setExperimenterLastName(String, int) */ 
     
    14561469    if (lastName == null) return; 
    14571470    ExperimenterNode experimenterNode = getExperimenterNode(experimenterIndex, true); 
    1458     experimenterNode.setLastName(lastName); 
    1459   } 
     1471      experimenterNode.setLastName(lastName); 
     1472    } 
    14601473 
    14611474  // - Filament property storage - 
     
    14651478    if (type == null) return; 
    14661479    FilamentNode filamentNode = getFilamentNode(instrumentIndex, lightSourceIndex, true); 
    1467     filamentNode.setType(type); 
    1468   } 
     1480      filamentNode.setType(type); 
     1481    } 
    14691482 
    14701483  // - Image property storage - 
     
    14741487    if (creationDate == null) return; 
    14751488    ImageNode imageNode = getImageNode(imageIndex, true); 
    1476     imageNode.setCreationDate(creationDate); 
    1477   } 
     1489      imageNode.setCreationDate(creationDate); 
     1490    } 
    14781491 
    14791492  /* @see loci.formats.meta.MetadataStore#setImageDescription(String, int) */ 
     
    14811494    if (description == null) return; 
    14821495    ImageNode imageNode = getImageNode(imageIndex, true); 
    1483     imageNode.setDescription(description); 
    1484   } 
     1496      imageNode.setDescription(description); 
     1497    } 
    14851498 
    14861499  /* @see loci.formats.meta.MetadataStore#setImageID(String, int) */ 
     
    14881501    if (id == null) return; 
    14891502    ImageNode imageNode = getImageNode(imageIndex, true); 
    1490     imageNode.setNodeID(id); 
    1491   } 
     1503      imageNode.setNodeID(id); 
     1504    } 
     1505 
     1506  /* @see loci.formats.meta.MetadataStore#setImageInstrumentRef(Integer, int) */ 
     1507  public void setImageInstrumentRef(Integer instrumentRef, int imageIndex) { 
     1508    if (instrumentRef == null) return; 
     1509    ImageNode imageNode = getImageNode(imageIndex, true); 
     1510      InstrumentNode node = getInstrumentNode(instrumentRef.intValue(), true); 
     1511    InstrumentRefNode ref = new InstrumentRefNode(imageNode); 
     1512    ref.setInstrumentNode(node); 
     1513    } 
    14921514 
    14931515  /* @see loci.formats.meta.MetadataStore#setImageName(String, int) */ 
     
    14951517    if (name == null) return; 
    14961518    ImageNode imageNode = getImageNode(imageIndex, true); 
    1497     imageNode.setName(name); 
    1498   } 
     1519      imageNode.setName(name); 
     1520    } 
    14991521 
    15001522  // - ImagingEnvironment property storage - 
     
    15041526    if (airPressure == null) return; 
    15051527    ImagingEnvironmentNode imagingEnvironmentNode = getImagingEnvironmentNode(imageIndex, true); 
    1506     imagingEnvironmentNode.setAirPressure(airPressure); 
    1507   } 
     1528      imagingEnvironmentNode.setAirPressure(airPressure); 
     1529    } 
    15081530 
    15091531  /* @see loci.formats.meta.MetadataStore#setImagingEnvironmentCO2Percent(Float, int) */ 
     
    15111533    if (cO2Percent == null) return; 
    15121534    ImagingEnvironmentNode imagingEnvironmentNode = getImagingEnvironmentNode(imageIndex, true); 
    1513     imagingEnvironmentNode.setCO2Percent(cO2Percent); 
    1514   } 
     1535      imagingEnvironmentNode.setCO2Percent(cO2Percent); 
     1536    } 
    15151537 
    15161538  /* @see loci.formats.meta.MetadataStore#setImagingEnvironmentHumidity(Float, int) */ 
     
    15181540    if (humidity == null) return; 
    15191541    ImagingEnvironmentNode imagingEnvironmentNode = getImagingEnvironmentNode(imageIndex, true); 
    1520     imagingEnvironmentNode.setHumidity(humidity); 
    1521   } 
     1542      imagingEnvironmentNode.setHumidity(humidity); 
     1543    } 
    15221544 
    15231545  /* @see loci.formats.meta.MetadataStore#setImagingEnvironmentTemperature(Float, int) */ 
     
    15251547    if (temperature == null) return; 
    15261548    ImagingEnvironmentNode imagingEnvironmentNode = getImagingEnvironmentNode(imageIndex, true); 
    1527     imagingEnvironmentNode.setTemperature(temperature); 
    1528   } 
     1549      imagingEnvironmentNode.setTemperature(temperature); 
     1550    } 
    15291551 
    15301552  // - Instrument property storage - 
     
    15341556    if (id == null) return; 
    15351557    InstrumentNode instrumentNode = getInstrumentNode(instrumentIndex, true); 
    1536     instrumentNode.setNodeID(id); 
    1537   } 
     1558      instrumentNode.setNodeID(id); 
     1559    } 
    15381560 
    15391561  // - Laser property storage - 
     
    15431565    if (frequencyMultiplication == null) return; 
    15441566    LaserNode laserNode = getLaserNode(instrumentIndex, lightSourceIndex, true); 
    1545     laserNode.setFrequencyMultiplication(frequencyMultiplication); 
    1546   } 
     1567      laserNode.setFrequencyMultiplication(frequencyMultiplication); 
     1568    } 
    15471569 
    15481570  /* @see loci.formats.meta.MetadataStore#setLaserLaserMedium(String, int, int) */ 
     
    15501572    if (laserMedium == null) return; 
    15511573    LaserNode laserNode = getLaserNode(instrumentIndex, lightSourceIndex, true); 
    1552     laserNode.setLaserMedium(laserMedium); 
    1553   } 
     1574      laserNode.setLaserMedium(laserMedium); 
     1575    } 
    15541576 
    15551577  /* @see loci.formats.meta.MetadataStore#setLaserPulse(String, int, int) */ 
     
    15571579    if (pulse == null) return; 
    15581580    LaserNode laserNode = getLaserNode(instrumentIndex, lightSourceIndex, true); 
    1559     laserNode.setPulse(pulse); 
    1560   } 
     1581      laserNode.setPulse(pulse); 
     1582    } 
    15611583 
    15621584  /* @see loci.formats.meta.MetadataStore#setLaserTuneable(Boolean, int, int) */ 
     
    15641586    if (tuneable == null) return; 
    15651587    LaserNode laserNode = getLaserNode(instrumentIndex, lightSourceIndex, true); 
    1566     laserNode.setTuneable(tuneable); 
    1567   } 
     1588      laserNode.setTuneable(tuneable); 
     1589    } 
    15681590 
    15691591  /* @see loci.formats.meta.MetadataStore#setLaserType(String, int, int) */ 
     
    15711593    if (type == null) return; 
    15721594    LaserNode laserNode = getLaserNode(instrumentIndex, lightSourceIndex, true); 
    1573     laserNode.setType(type); 
    1574   } 
     1595      laserNode.setType(type); 
     1596    } 
    15751597 
    15761598  /* @see loci.formats.meta.MetadataStore#setLaserWavelength(Integer, int, int) */ 
     
    15781600    if (wavelength == null) return; 
    15791601    LaserNode laserNode = getLaserNode(instrumentIndex, lightSourceIndex, true); 
    1580     laserNode.setWavelength(wavelength); 
    1581   } 
     1602      laserNode.setWavelength(wavelength); 
     1603    } 
    15821604 
    15831605  // - LightSource property storage - 
     
    15871609    if (id == null) return; 
    15881610    LightSourceNode lightSourceNode = getLightSourceNode(instrumentIndex, lightSourceIndex, true); 
    1589     lightSourceNode.setNodeID(id); 
    1590   } 
     1611      lightSourceNode.setNodeID(id); 
     1612    } 
    15911613 
    15921614  /* @see loci.formats.meta.MetadataStore#setLightSourceManufacturer(String, int, int) */ 
     
    15941616    if (manufacturer == null) return; 
    15951617    LightSourceNode lightSourceNode = getLightSourceNode(instrumentIndex, lightSourceIndex, true); 
    1596     lightSourceNode.setManufacturer(manufacturer); 
    1597   } 
     1618      lightSourceNode.setManufacturer(manufacturer); 
     1619    } 
    15981620 
    15991621  /* @see loci.formats.meta.MetadataStore#setLightSourceModel(String, int, int) */ 
     
    16011623    if (model == null) return; 
    16021624    LightSourceNode lightSourceNode = getLightSourceNode(instrumentIndex, lightSourceIndex, true); 
    1603     lightSourceNode.setModel(model); 
    1604   } 
     1625      lightSourceNode.setModel(model); 
     1626    } 
    16051627 
    16061628  /* @see loci.formats.meta.MetadataStore#setLightSourcePower(Float, int, int) */ 
     
    16131635    if (serialNumber == null) return; 
    16141636    LightSourceNode lightSourceNode = getLightSourceNode(instrumentIndex, lightSourceIndex, true); 
    1615     lightSourceNode.setSerialNumber(serialNumber); 
    1616   } 
     1637      lightSourceNode.setSerialNumber(serialNumber); 
     1638    } 
    16171639 
    16181640  // - LightSourceSettings property storage - 
     
    16221644    if (attenuation == null) return; 
    16231645    LightSourceRefNode lightSourceRefNode = getLightSourceRefNode(imageIndex, logicalChannelIndex, true); 
    1624     lightSourceRefNode.setAttenuation(attenuation); 
    1625   } 
     1646      lightSourceRefNode.setAttenuation(attenuation); 
     1647    } 
    16261648 
    16271649  /* @see loci.formats.meta.MetadataStore#setLightSourceSettingsLightSource(String, int, int) */ 
     
    16291651    if (lightSource == null) return; 
    16301652    LightSourceRefNode lightSourceRefNode = getLightSourceRefNode(imageIndex, logicalChannelIndex, true); 
    1631     lightSourceRefNode.setNodeID(lightSource); 
    1632   } 
     1653      lightSourceRefNode.setNodeID(lightSource); 
     1654    } 
    16331655 
    16341656  /* @see loci.formats.meta.MetadataStore#setLightSourceSettingsWavelength(Integer, int, int) */ 
     
    16361658    if (wavelength == null) return; 
    16371659    LightSourceRefNode lightSourceRefNode = getLightSourceRefNode(imageIndex, logicalChannelIndex, true); 
    1638     lightSourceRefNode.setWavelength(wavelength); 
    1639   } 
     1660      lightSourceRefNode.setWavelength(wavelength); 
     1661    } 
    16401662 
    16411663  // - LogicalChannel property storage - 
     
    16451667    if (contrastMethod == null) return; 
    16461668    LogicalChannelNode logicalChannelNode = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
    1647     logicalChannelNode.setContrastMethod(contrastMethod); 
    1648   } 
     1669      logicalChannelNode.setContrastMethod(contrastMethod); 
     1670    } 
    16491671 
    16501672  /* @see loci.formats.meta.MetadataStore#setLogicalChannelEmWave(Integer, int, int) */ 
     
    16521674    if (emWave == null) return; 
    16531675    LogicalChannelNode logicalChannelNode = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
    1654     logicalChannelNode.setEmWave(emWave); 
    1655   } 
     1676      logicalChannelNode.setEmWave(emWave); 
     1677    } 
    16561678 
    16571679  /* @see loci.formats.meta.MetadataStore#setLogicalChannelExWave(Integer, int, int) */ 
     
    16591681    if (exWave == null) return; 
    16601682    LogicalChannelNode logicalChannelNode = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
    1661     logicalChannelNode.setExWave(exWave); 
    1662   } 
     1683      logicalChannelNode.setExWave(exWave); 
     1684    } 
    16631685 
    16641686  /* @see loci.formats.meta.MetadataStore#setLogicalChannelFluor(String, int, int) */ 
     
    16661688    if (fluor == null) return; 
    16671689    LogicalChannelNode logicalChannelNode = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
    1668     logicalChannelNode.setFluor(fluor); 
    1669   } 
     1690      logicalChannelNode.setFluor(fluor); 
     1691    } 
    16701692 
    16711693  /* @see loci.formats.meta.MetadataStore#setLogicalChannelID(String, int, int) */ 
     
    16731695    if (id == null) return; 
    16741696    LogicalChannelNode logicalChannelNode = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
    1675     logicalChannelNode.setNodeID(id); 
    1676   } 
     1697      logicalChannelNode.setNodeID(id); 
     1698    } 
    16771699 
    16781700  /* @see loci.formats.meta.MetadataStore#setLogicalChannelIlluminationType(String, int, int) */ 
     
    16801702    if (illuminationType == null) return; 
    16811703    LogicalChannelNode logicalChannelNode = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
    1682     logicalChannelNode.setIlluminationType(illuminationType); 
    1683   } 
     1704      logicalChannelNode.setIlluminationType(illuminationType); 
     1705    } 
    16841706 
    16851707  /* @see loci.formats.meta.MetadataStore#setLogicalChannelMode(String, int, int) */ 
     
    16871709    if (mode == null) return; 
    16881710    LogicalChannelNode logicalChannelNode = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
    1689     logicalChannelNode.setMode(mode); 
    1690   } 
     1711      logicalChannelNode.setMode(mode); 
     1712    } 
    16911713 
    16921714  /* @see loci.formats.meta.MetadataStore#setLogicalChannelName(String, int, int) */ 
     
    16941716    if (name == null) return; 
    16951717    LogicalChannelNode logicalChannelNode = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
    1696     logicalChannelNode.setName(name); 
    1697   } 
     1718      logicalChannelNode.setName(name); 
     1719    } 
    16981720 
    16991721  /* @see loci.formats.meta.MetadataStore#setLogicalChannelNdFilter(Float, int, int) */ 
     
    17011723    if (ndFilter == null) return; 
    17021724    LogicalChannelNode logicalChannelNode = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
    1703     logicalChannelNode.setNdFilter(ndFilter); 
    1704   } 
     1725      logicalChannelNode.setNdFilter(ndFilter); 
     1726    } 
    17051727 
    17061728  /* @see loci.formats.meta.MetadataStore#setLogicalChannelPhotometricInterpretation(String, int, int) */ 
     
    17081730    if (photometricInterpretation == null) return; 
    17091731    LogicalChannelNode logicalChannelNode = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
    1710     logicalChannelNode.setPhotometricInterpretation(photometricInterpretation); 
    1711   } 
     1732      logicalChannelNode.setPhotometricInterpretation(photometricInterpretation); 
     1733    } 
    17121734 
    17131735  /* @see loci.formats.meta.MetadataStore#setLogicalChannelPinholeSize(Integer, int, int) */ 
     
    17151737    if (pinholeSize == null) return; 
    17161738    LogicalChannelNode logicalChannelNode = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
    1717     logicalChannelNode.setPinholeSize(pinholeSize); 
    1718   } 
     1739      logicalChannelNode.setPinholeSize(pinholeSize); 
     1740    } 
    17191741 
    17201742  /* @see loci.formats.meta.MetadataStore#setLogicalChannelPockelCellSetting(Integer, int, int) */ 
     
    17221744    if (pockelCellSetting == null) return; 
    17231745    LogicalChannelNode logicalChannelNode = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
    1724     logicalChannelNode.setPockelCellSetting(pockelCellSetting); 
    1725   } 
     1746      logicalChannelNode.setPockelCellSetting(pockelCellSetting); 
     1747    } 
    17261748 
    17271749  /* @see loci.formats.meta.MetadataStore#setLogicalChannelSamplesPerPixel(Integer, int, int) */ 
     
    17291751    if (samplesPerPixel == null) return; 
    17301752    LogicalChannelNode logicalChannelNode = getLogicalChannelNode(imageIndex, logicalChannelIndex, true); 
    1731     logicalChannelNode.setSamplesPerPixel(samplesPerPixel); 
    1732   } 
     1753      logicalChannelNode.setSamplesPerPixel(samplesPerPixel); 
     1754    } 
    17331755 
    17341756  // - OTF property storage - 
     
    17381760    if (id == null) return; 
    17391761    OTFNode otfNode = getOTFNode(instrumentIndex, otfIndex, true); 
    1740     otfNode.setNodeID(id); 
    1741   } 
     1762      otfNode.setNodeID(id); 
     1763    } 
    17421764 
    17431765  /* @see loci.formats.meta.MetadataStore#setOTFOpticalAxisAveraged(Boolean, int, int) */ 
     
    17451767    if (opticalAxisAveraged == null) return; 
    17461768    OTFNode otfNode = getOTFNode(instrumentIndex, otfIndex, true); 
    1747     otfNode.setOpticalAxisAveraged(opticalAxisAveraged); 
    1748   } 
     1769      otfNode.setOpticalAxisAveraged(opticalAxisAveraged); 
     1770    } 
    17491771 
    17501772  /* @see loci.formats.meta.MetadataStore#setOTFPixelType(String, int, int) */ 
     
    17521774    if (pixelType == null) return; 
    17531775    OTFNode otfNode = getOTFNode(instrumentIndex, otfIndex, true); 
    1754     otfNode.setPixelType(pixelType); 
    1755   } 
     1776      otfNode.setPixelType(pixelType); 
     1777    } 
    17561778 
    17571779  /* @see loci.formats.meta.MetadataStore#setOTFSizeX(Integer, int, int) */ 
     
    17591781    if (sizeX == null) return; 
    17601782    OTFNode otfNode = getOTFNode(instrumentIndex, otfIndex, true); 
    1761     otfNode.setSizeX(sizeX); 
    1762   } 
     1783      otfNode.setSizeX(sizeX); 
     1784    } 
    17631785 
    17641786  /* @see loci.formats.meta.MetadataStore#setOTFSizeY(Integer, int, int) */ 
     
    17661788    if (sizeY == null) return; 
    17671789    OTFNode otfNode = getOTFNode(instrumentIndex, otfIndex, true); 
    1768     otfNode.setSizeY(sizeY); 
    1769   } 
     1790      otfNode.setSizeY(sizeY); 
     1791    } 
    17701792 
    17711793  // - Objective property storage - 
     
    17751797    if (calibratedMagnification == null) return; 
    17761798    ObjectiveNode objectiveNode = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
    1777     objectiveNode.setCalibratedMagnification(calibratedMagnification); 
    1778   } 
     1799      objectiveNode.setCalibratedMagnification(calibratedMagnification); 
     1800    } 
    17791801 
    17801802  /* @see loci.formats.meta.MetadataStore#setObjectiveCorrection(String, int, int) */ 
     
    17821804    if (correction == null) return; 
    17831805    ObjectiveNode objectiveNode = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
    1784     objectiveNode.setCorrection(correction); 
    1785   } 
     1806      objectiveNode.setCorrection(correction); 
     1807    } 
    17861808 
    17871809  /* @see loci.formats.meta.MetadataStore#setObjectiveID(String, int, int) */ 
     
    17891811    if (id == null) return; 
    17901812    ObjectiveNode objectiveNode = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
    1791     objectiveNode.setNodeID(id); 
    1792   } 
     1813      objectiveNode.setNodeID(id); 
     1814    } 
    17931815 
    17941816  /* @see loci.formats.meta.MetadataStore#setObjectiveImmersion(String, int, int) */ 
     
    17961818    if (immersion == null) return; 
    17971819    ObjectiveNode objectiveNode = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
    1798     objectiveNode.setImmersion(immersion); 
    1799   } 
     1820      objectiveNode.setImmersion(immersion); 
     1821    } 
    18001822 
    18011823  /* @see loci.formats.meta.MetadataStore#setObjectiveLensNA(Float, int, int) */ 
     
    18031825    if (lensNA == null) return; 
    18041826    ObjectiveNode objectiveNode = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
    1805     objectiveNode.setLensNA(lensNA); 
    1806   } 
     1827      objectiveNode.setLensNA(lensNA); 
     1828    } 
    18071829 
    18081830  /* @see loci.formats.meta.MetadataStore#setObjectiveManufacturer(String, int, int) */ 
     
    18101832    if (manufacturer == null) return; 
    18111833    ObjectiveNode objectiveNode = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
    1812     objectiveNode.setManufacturer(manufacturer); 
    1813   } 
     1834      objectiveNode.setManufacturer(manufacturer); 
     1835    } 
    18141836 
    18151837  /* @see loci.formats.meta.MetadataStore#setObjectiveModel(String, int, int) */ 
     
    18171839    if (model == null) return; 
    18181840    ObjectiveNode objectiveNode = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
    1819     objectiveNode.setModel(model); 
    1820   } 
     1841      objectiveNode.setModel(model); 
     1842    } 
    18211843 
    18221844  /* @see loci.formats.meta.MetadataStore#setObjectiveNominalMagnification(Integer, int, int) */ 
     
    18241846    if (nominalMagnification == null) return; 
    18251847    ObjectiveNode objectiveNode = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
    1826     objectiveNode.setNominalMagnification(nominalMagnification); 
    1827   } 
     1848      objectiveNode.setNominalMagnification(nominalMagnification); 
     1849    } 
    18281850 
    18291851  /* @see loci.formats.meta.MetadataStore#setObjectiveSerialNumber(String, int, int) */ 
     
    18311853    if (serialNumber == null) return; 
    18321854    ObjectiveNode objectiveNode = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
    1833     objectiveNode.setSerialNumber(serialNumber); 
    1834   } 
     1855      objectiveNode.setSerialNumber(serialNumber); 
     1856    } 
    18351857 
    18361858  /* @see loci.formats.meta.MetadataStore#setObjectiveWorkingDistance(Float, int, int) */ 
     
    18381860    if (workingDistance == null) return; 
    18391861    ObjectiveNode objectiveNode = getObjectiveNode(instrumentIndex, objectiveIndex, true); 
    1840     objectiveNode.setWorkingDistance(workingDistance); 
    1841   } 
     1862      objectiveNode.setWorkingDistance(workingDistance); 
     1863    } 
    18421864 
    18431865  // - Pixels property storage - 
     
    18471869    if (bigEndian == null) return; 
    18481870    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
    1849     pixelsNode.setBigEndian(bigEndian); 
    1850   } 
     1871      pixelsNode.setBigEndian(bigEndian); 
     1872    } 
    18511873 
    18521874  /* @see loci.formats.meta.MetadataStore#setPixelsDimensionOrder(String, int, int) */ 
     
    18541876    if (dimensionOrder == null) return; 
    18551877    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
    1856     pixelsNode.setDimensionOrder(dimensionOrder); 
    1857   } 
     1878      pixelsNode.setDimensionOrder(dimensionOrder); 
     1879    } 
    18581880 
    18591881  /* @see loci.formats.meta.MetadataStore#setPixelsID(String, int, int) */ 
     
    18611883    if (id == null) return; 
    18621884    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
    1863     pixelsNode.setNodeID(id); 
    1864   } 
     1885      pixelsNode.setNodeID(id); 
     1886    } 
    18651887 
    18661888  /* @see loci.formats.meta.MetadataStore#setPixelsPixelType(String, int, int) */ 
     
    18681890    if (pixelType == null) return; 
    18691891    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
    1870     pixelsNode.setPixelType(pixelType); 
    1871   } 
     1892      pixelsNode.setPixelType(pixelType); 
     1893    } 
    18721894 
    18731895  /* @see loci.formats.meta.MetadataStore#setPixelsSizeC(Integer, int, int) */ 
     
    18751897    if (sizeC == null) return; 
    18761898    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
    1877     pixelsNode.setSizeC(sizeC); 
    1878   } 
     1899      pixelsNode.setSizeC(sizeC); 
     1900    } 
    18791901 
    18801902  /* @see loci.formats.meta.MetadataStore#setPixelsSizeT(Integer, int, int) */ 
     
    18821904    if (sizeT == null) return; 
    18831905    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
    1884     pixelsNode.setSizeT(sizeT); 
    1885   } 
     1906      pixelsNode.setSizeT(sizeT); 
     1907    } 
    18861908 
    18871909  /* @see loci.formats.meta.MetadataStore#setPixelsSizeX(Integer, int, int) */ 
     
    18891911    if (sizeX == null) return; 
    18901912    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
    1891     pixelsNode.setSizeX(sizeX); 
    1892   } 
     1913      pixelsNode.setSizeX(sizeX); 
     1914    } 
    18931915 
    18941916  /* @see loci.formats.meta.MetadataStore#setPixelsSizeY(Integer, int, int) */ 
     
    18961918    if (sizeY == null) return; 
    18971919    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
    1898     pixelsNode.setSizeY(sizeY); 
    1899   } 
     1920      pixelsNode.setSizeY(sizeY); 
     1921    } 
    19001922 
    19011923  /* @see loci.formats.meta.MetadataStore#setPixelsSizeZ(Integer, int, int) */ 
     
    19031925    if (sizeZ == null) return; 
    19041926    PixelsNode pixelsNode = getPixelsNode(imageIndex, pixelsIndex, true); 
    1905     pixelsNode.setSizeZ(sizeZ); 
    1906   } 
     1927      pixelsNode.setSizeZ(sizeZ); 
     1928    } 
    19071929 
    19081930  // - Plane property storage - 
     
    19121934    if (theC == null) return; 
    19131935    PlaneNode planeNode = getPlaneNode(imageIndex, pixelsIndex, planeIndex, true); 
    1914     planeNode.setTheC(theC); 
    1915   } 
     1936      planeNode.setTheC(theC); 
     1937    } 
    19161938 
    19171939  /* @see loci.formats.meta.MetadataStore#setPlaneTheT(Integer, int, int, int) */ 
     
    19191941    if (theT == null) return; 
    19201942    PlaneNode planeNode = getPlaneNode(imageIndex, pixelsIndex, planeIndex, true); 
    1921     planeNode.setTheT(theT); 
    1922   } 
     1943      planeNode.setTheT(theT); 
     1944    } 
    19231945 
    19241946  /* @see loci.formats.meta.MetadataStore#setPlaneTheZ(Integer, int, int, int) */ 
     
    19261948    if (theZ == null) return; 
    19271949    PlaneNode planeNode = getPlaneNode(imageIndex, pixelsIndex, planeIndex, true); 
    1928     planeNode.setTheZ(theZ); 
    1929   } 
     1950      planeNode.setTheZ(theZ); 
     1951    } 
    19301952 
    19311953  // - PlaneTiming property storage - 
     
    19351957    if (deltaT == null) return; 
    19361958    PlaneTimingNode planeTimingNode = getPlaneTimingNode(imageIndex, pixelsIndex, planeIndex, true); 
    1937     planeTimingNode.setDeltaT(deltaT); 
    1938   } 
     1959      planeTimingNode.setDeltaT(deltaT); 
     1960    } 
    19391961 
    19401962  /* @see loci.formats.meta.MetadataStore#setPlaneTimingExposureTime(Float, int, int, int) */ 
     
    19421964    if (exposureTime == null) return; 
    19431965    PlaneTimingNode planeTimingNode = getPlaneTimingNode(imageIndex, pixelsIndex, planeIndex, true); 
    1944     planeTimingNode.setExposureTime(exposureTime); 
    1945   } 
     1966      planeTimingNode.setExposureTime(exposureTime); 
     1967    } 
    19461968 
    19471969  // - Plate property storage - 
     
    19511973    if (description == null) return; 
    19521974    PlateNode plateNode = getPlateNode(plateIndex, true); 
    1953     plateNode.setDescription(description); 
    1954   } 
     1975      plateNode.setDescription(description); 
     1976    } 
    19551977 
    19561978  /* @see loci.formats.meta.MetadataStore#setPlateExternalIdentifier(String, int) */ 
     
    19581980    if (externalIdentifier == null) return; 
    19591981    PlateNode plateNode = getPlateNode(plateIndex, true); 
    1960     plateNode.setExternalIdentifier(externalIdentifier); 
    1961   } 
     1982      plateNode.setExternalIdentifier(externalIdentifier); 
     1983    } 
    19621984 
    19631985  /* @see loci.formats.meta.MetadataStore#setPlateID(String, int) */ 
     
    19651987    if (id == null) return; 
    19661988    PlateNode plateNode = getPlateNode(plateIndex, true); 
    1967     plateNode.setNodeID(id); 
    1968   } 
     1989      plateNode.setNodeID(id); 
     1990    } 
    19691991 
    19701992  /* @see loci.formats.meta.MetadataStore#setPlateName(String, int) */ 
     
    19721994    if (name == null) return; 
    19731995    PlateNode plateNode = getPlateNode(plateIndex, true); 
    1974     plateNode.setName(name); 
    1975   } 
     1996      plateNode.setName(name); 
     1997    } 
    19761998 
    19771999  /* @see loci.formats.meta.MetadataStore#setPlateStatus(String, int) */ 
     
    19792001    if (status == null) return; 
    19802002    PlateNode plateNode = getPlateNode(plateIndex, true); 
    1981     plateNode.setStatus(status); 
    1982   } 
     2003      plateNode.setStatus(status); 
     2004    } 
    19832005 
    19842006  // - PlateRef property storage - 
     
    19882010    if (id == null) return; 
    19892011    PlateRefNode plateRefNode = getPlateRefNode(screenIndex, plateRefIndex, true); 
    1990     plateRefNode.setNodeID(id); 
    1991   } 
     2012      plateRefNode.setNodeID(id); 
     2013    } 
    19922014 
    19932015  // - ROI property storage - 
     
    19972019    if (id == null) return; 
    19982020    ROINode roiNode = getROINode(imageIndex, roiIndex, true); 
    1999     roiNode.setNodeID(id); 
    2000   } 
     2021      roiNode.setNodeID(id); 
     2022    } 
    20012023 
    20022024  /* @see loci.formats.meta.MetadataStore#setROIT0(Integer, int, int) */ 
     
    20042026    if (t0 == null) return; 
    20052027    ROINode roiNode = getROINode(imageIndex, roiIndex, true); 
    2006     roiNode.setT0(t0); 
    2007   } 
     2028      roiNode.setT0(t0); 
     2029    } 
    20082030 
    20092031  /* @see loci.formats.meta.MetadataStore#setROIT1(Integer, int, int) */ 
     
    20112033    if (t1 == null) return; 
    20122034    ROINode roiNode = getROINode(imageIndex, roiIndex, true); 
    2013     roiNode.setT1(t1); 
    2014   } 
     2035      roiNode.setT1(t1); 
     2036    } 
    20152037 
    20162038  /* @see loci.formats.meta.MetadataStore#setROIX0(Integer, int, int) */ 
     
    20182040    if (x0 == null) return; 
    20192041    ROINode roiNode = getROINode(imageIndex, roiIndex, true); 
    2020     roiNode.setX0(x0); 
    2021   } 
     2042      roiNode.setX0(x0); 
     2043    } 
    20222044 
    20232045  /* @see loci.formats.meta.MetadataStore#setROIX1(Integer, int, int) */ 
     
    20252047    if (x1 == null) return; 
    20262048    ROINode roiNode = getROINode(imageIndex, roiIndex, true); 
    2027     roiNode.setX1(x1); 
    2028   } 
     2049      roiNode.setX1(x1); 
     2050    } 
    20292051 
    20302052  /* @see loci.formats.meta.MetadataStore#setROIY0(Integer, int, int) */ 
     
    20322054    if (y0 == null) return; 
    20332055    ROINode roiNode = getROINode(imageIndex, roiIndex, true); 
    2034     roiNode.setY0(y0); 
    2035   } 
     2056      roiNode.setY0(y0); 
     2057    } 
    20362058 
    20372059  /* @see loci.formats.meta.MetadataStore#setROIY1(Integer, int, int) */ 
     
    20392061    if (y1 == null) return; 
    20402062    ROINode roiNode = getROINode(imageIndex, roiIndex, true); 
    2041     roiNode.setY1(y1); 
    2042   } 
     2063      roiNode.setY1(y1); 
     2064    } 
    20432065 
    20442066  /* @see loci.formats.meta.MetadataStore#setROIZ0(Integer, int, int) */ 
     
    20462068    if (z0 == null) return; 
    20472069    ROINode roiNode = getROINode(imageIndex, roiIndex, true); 
    2048     roiNode.setZ0(z0); 
    2049   } 
     2070      roiNode.setZ0(z0); 
     2071    } 
    20502072 
    20512073  /* @see loci.formats.meta.MetadataStore#setROIZ1(Integer, int, int) */ 
     
    20532075    if (z1 == null) return; 
    20542076    ROINode roiNode = getROINode(imageIndex, roiIndex, true); 
    2055     roiNode.setZ1(z1); 
    2056   } 
     2077      roiNode.setZ1(z1); 
     2078    } 
    20572079 
    20582080  // - Reagent property storage - 
     
    20622084    if (description == null) return; 
    20632085    ReagentNode reagentNode = getReagentNode(screenIndex, reagentIndex, true); 
    2064     reagentNode.setDescription(description); 
    2065   } 
     2086      reagentNode.setDescription(description); 
     2087    } 
    20662088 
    20672089  /* @see loci.formats.meta.MetadataStore#setReagentID(String, int, int) */ 
     
    20692091    if (id == null) return; 
    20702092    ReagentNode reagentNode = getReagentNode(screenIndex, reagentIndex, true); 
    2071     reagentNode.setNodeID(id); 
    2072   } 
     2093      reagentNode.setNodeID(id); 
     2094    } 
    20732095 
    20742096  /* @see loci.formats.meta.MetadataStore#setReagentName(String, int, int) */ 
     
    20762098    if (name == null) return; 
    20772099    ReagentNode reagentNode = getReagentNode(screenIndex, reagentIndex, true); 
    2078     reagentNode.setName(name); 
    2079   } 
     2100      reagentNode.setName(name); 
     2101    } 
    20802102 
    20812103  /* @see loci.formats.meta.MetadataStore#setReagentReagentIdentifier(String, int, int) */ 
     
    20832105    if (reagentIdentifier == null) return; 
    20842106    ReagentNode reagentNode = getReagentNode(screenIndex, reagentIndex, true); 
    2085     reagentNode.setReagentIdentifier(reagentIdentifier); 
    2086   } 
     2107      reagentNode.setReagentIdentifier(reagentIdentifier); 
     2108    } 
    20872109 
    20882110  // - Screen property storage - 
     
    20922114    if (id == null) return; 
    20932115    ScreenNode screenNode = getScreenNode(screenIndex, true); 
    2094     screenNode.setNodeID(id); 
    2095   } 
     2116      screenNode.setNodeID(id); 
     2117    } 
    20962118 
    20972119  /* @see loci.formats.meta.MetadataStore#setScreenName(String, int) */ 
     
    20992121    if (name == null) return; 
    21002122    ScreenNode screenNode = getScreenNode(screenIndex, true); 
    2101     screenNode.setName(name); 
    2102   } 
     2123      screenNode.setName(name); 
     2124    } 
    21032125 
    21042126  /* @see loci.formats.meta.MetadataStore#setScreenProtocolDescription(String, int) */ 
     
    21062128    if (protocolDescription == null) return; 
    21072129    ScreenNode screenNode = getScreenNode(screenIndex, true); 
    2108     screenNode.setProtocolDescription(protocolDescription); 
    2109   } 
     2130      screenNode.setProtocolDescription(protocolDescription); 
     2131    } 
    21102132 
    21112133  /* @see loci.formats.meta.MetadataStore#setScreenProtocolIdentifier(String, int) */ 
     
    21132135    if (protocolIdentifier == null) return; 
    21142136    ScreenNode screenNode = getScreenNode(screenIndex, true); 
    2115     screenNode.setProtocolIdentifier(protocolIdentifier); 
    2116   } 
     2137      screenNode.setProtocolIdentifier(protocolIdentifier); 
     2138    } 
    21172139 
    21182140  /* @see loci.formats.meta.MetadataStore#setScreenReagentSetDescription(String, int) */ 
     
    21202142    if (reagentSetDescription == null) return; 
    21212143    ScreenNode screenNode = getScreenNode(screenIndex, true); 
    2122     screenNode.setReagentSetDescription(reagentSetDescription); 
    2123   } 
     2144      screenNode.setReagentSetDescription(reagentSetDescription); 
     2145    } 
    21242146 
    21252147  /* @see loci.formats.meta.MetadataStore#setScreenType(String, int) */ 
     
    21272149    if (type == null) return; 
    21282150    ScreenNode screenNode = getScreenNode(screenIndex, true); 
    2129     screenNode.setType(type); 
    2130   } 
     2151      screenNode.setType(type); 
     2152    } 
    21312153 
    21322154  // - ScreenAcquisition property storage - 
     
    21362158    if (endTime == null) return; 
    21372159    ScreenAcquisitionNode screenAcquisitionNode = getScreenAcquisitionNode(screenIndex, screenAcquisitionIndex, true); 
    2138     screenAcquisitionNode.setEndTime(endTime); 
    2139   } 
     2160      screenAcquisitionNode.setEndTime(endTime); 
     2161    } 
    21402162 
    21412163  /* @see loci.formats.meta.MetadataStore#setScreenAcquisitionID(String, int, int) */ 
     
    21432165    if (id == null) return; 
    21442166    ScreenAcquisitionNode screenAcquisitionNode = getScreenAcquisitionNode(screenIndex, screenAcquisitionIndex, true); 
    2145     screenAcquisitionNode.setNodeID(id); 
    2146   } 
     2167      screenAcquisitionNode.setNodeID(id); 
     2168    } 
    21472169 
    21482170  /* @see loci.formats.meta.MetadataStore#setScreenAcquisitionStartTime(String, int, int) */ 
     
    21502172    if (startTime == null) return; 
    21512173    ScreenAcquisitionNode screenAcquisitionNode = getScreenAcquisitionNode(screenIndex, screenAcquisitionIndex, true); 
    2152     screenAcquisitionNode.setStartTime(startTime); 
    2153   } 
     2174      screenAcquisitionNode.setStartTime(startTime); 
     2175    } 
    21542176 
    21552177  // - StageLabel property storage - 
     
    21592181    if (name == null) return; 
    21602182    StageLabelNode stageLabelNode = getStageLabelNode(imageIndex, true); 
    2161     stageLabelNode.setName(name); 
    2162   } 
     2183      stageLabelNode.setName(name); 
     2184    } 
    21632185 
    21642186  /* @see loci.formats.meta.MetadataStore#setStageLabelX(Float, int) */ 
     
    21662188    if (x == null) return; 
    21672189    StageLabelNode stageLabelNode = getStageLabelNode(imageIndex, true); 
    2168     stageLabelNode.setX(x); 
    2169   } 
     2190      stageLabelNode.setX(x); 
     2191    } 
    21702192 
    21712193  /* @see loci.formats.meta.MetadataStore#setStageLabelY(Float, int) */ 
     
    21732195    if (y == null) return; 
    21742196    StageLabelNode stageLabelNode = getStageLabelNode(imageIndex, true); 
    2175     stageLabelNode.setY(y); 
    2176   } 
     2197      stageLabelNode.setY(y); 
     2198    } 
    21772199 
    21782200  /* @see loci.formats.meta.MetadataStore#setStageLabelZ(Float, int) */ 
     
    21802202    if (z == null) return; 
    21812203    StageLabelNode stageLabelNode = getStageLabelNode(imageIndex, true); 
    2182     stageLabelNode.setZ(z); 
    2183   } 
     2204      stageLabelNode.setZ(z); 
     2205    } 
    21842206 
    21852207  // - StagePosition property storage - 
     
    21892211    if (positionX == null) return; 
    21902212    StagePositionNode stagePositionNode = getStagePositionNode(imageIndex, pixelsIndex, planeIndex, true); 
    2191     stagePositionNode.setPositionX(positionX); 
    2192   } 
     2213      stagePositionNode.setPositionX(positionX); 
     2214    } 
    21932215 
    21942216  /* @see loci.formats.meta.MetadataStore#setStagePositionPositionY(Float, int, int, int) */ 
     
    21962218    if (positionY == null) return; 
    21972219    StagePositionNode stagePositionNode = getStagePositionNode(imageIndex, pixelsIndex, planeIndex, true); 
    2198     stagePositionNode.setPositionY(positionY); 
    2199   } 
     2220      stagePositionNode.setPositionY(positionY); 
     2221    } 
    22002222 
    22012223  /* @see loci.formats.meta.MetadataStore#setStagePositionPositionZ(Float, int, int, int) */ 
     
    22032225    if (positionZ == null) return; 
    22042226    StagePositionNode stagePositionNode = getStagePositionNode(imageIndex, pixelsIndex, planeIndex, true); 
    2205     stagePositionNode.setPositionZ(positionZ); 
    2206   } 
     2227      stagePositionNode.setPositionZ(positionZ); 
     2228    } 
    22072229 
    22082230  // - TiffData property storage - 
     
    22172239    if (firstC == null) return; 
    22182240    TiffDataNode tiffDataNode = getTiffDataNode(imageIndex, pixelsIndex, tiffDataIndex, true); 
    2219     tiffDataNode.setFirstC(firstC); 
    2220   } 
     2241      tiffDataNode.setFirstC(firstC); 
     2242    } 
    22212243 
    22222244  /* @see loci.formats.meta.MetadataStore#setTiffDataFirstT(Integer, int, int, int) */ 
     
    22242246    if (firstT == null) return; 
    22252247    TiffDataNode tiffDataNode = getTiffDataNode(imageIndex, pixelsIndex, tiffDataIndex, true); 
    2226     tiffDataNode.setFirstT(firstT); 
    2227   } 
     2248      tiffDataNode.setFirstT(firstT); 
     2249    } 
    22282250 
    22292251  /* @see loci.formats.meta.MetadataStore#setTiffDataFirstZ(Integer, int, int, int) */ 
     
    22312253    if (firstZ == null) return; 
    22322254    TiffDataNode tiffDataNode = getTiffDataNode(imageIndex, pixelsIndex, tiffDataIndex, true); 
    2233     tiffDataNode.setFirstZ(firstZ); 
    2234   } 
     2255      tiffDataNode.setFirstZ(firstZ); 
     2256    } 
    22352257 
    22362258  /* @see loci.formats.meta.MetadataStore#setTiffDataIFD(Integer, int, int, int) */ 
     
    22382260    if (ifd == null) return; 
    22392261    TiffDataNode tiffDataNode = getTiffDataNode(imageIndex, pixelsIndex, tiffDataIndex, true); 
    2240     tiffDataNode.setIFD(ifd); 
    2241   } 
     2262      tiffDataNode.setIFD(ifd); 
     2263    } 
    22422264 
    22432265  /* @see loci.formats.meta.MetadataStore#setTiffDataNumPlanes(Integer, int, int, int) */ 
     
    22452267    if (numPlanes == null) return; 
    22462268    TiffDataNode tiffDataNode = getTiffDataNode(imageIndex, pixelsIndex, tiffDataIndex, true); 
    2247     tiffDataNode.setNumPlanes(numPlanes); 
    2248   } 
     2269      tiffDataNode.setNumPlanes(numPlanes); 
     2270    } 
    22492271 
    22502272  /* @see loci.formats.meta.MetadataStore#setTiffDataUUID(String, int, int, int) */ 
     
    22592281    if (column == null) return; 
    22602282    WellNode wellNode = getWellNode(wellIndex, true); 
    2261     wellNode.setColumn(column); 
    2262   } 
     2283      wellNode.setColumn(column); 
     2284    } 
    22632285 
    22642286  /* @see loci.formats.meta.MetadataStore#setWellExternalDescription(String, int) */ 
     
    22662288    if (externalDescription == null) return; 
    22672289    WellNode wellNode = getWellNode(wellIndex, true); 
    2268     wellNode.setExternalDescription(externalDescription); 
    2269   } 
     2290      wellNode.setExternalDescription(externalDescription); 
     2291    } 
    22702292 
    22712293  /* @see loci.formats.meta.MetadataStore#setWellExternalIdentifier(String, int) */ 
     
    22732295    if (externalIdentifier == null) return; 
    22742296    WellNode wellNode = getWellNode(wellIndex, true); 
    2275     wellNode.setExternalIdentifier(externalIdentifier); 
    2276   } 
     2297      wellNode.setExternalIdentifier(externalIdentifier); 
     2298    } 
    22772299 
    22782300  /* @see loci.formats.meta.MetadataStore#setWellID(String, int) */ 
     
    22802302    if (id == null) return; 
    22812303    WellNode wellNode = getWellNode(wellIndex, true); 
    2282     wellNode.setNodeID(id); 
    2283   } 
     2304      wellNode.setNodeID(id); 
     2305    } 
    22842306 
    22852307  /* @see loci.formats.meta.MetadataStore#setWellRow(Integer, int) */ 
     
    22872309    if (row == null) return; 
    22882310    WellNode wellNode = getWellNode(wellIndex, true); 
    2289     wellNode.setRow(row); 
    2290   } 
     2311      wellNode.setRow(row); 
     2312    } 
    22912313 
    22922314  /* @see loci.formats.meta.MetadataStore#setWellType(String, int) */ 
     
    22942316    if (type == null) return; 
    22952317    WellNode wellNode = getWellNode(wellIndex, true); 
    2296     wellNode.setType(type); 
    2297   } 
     2318      wellNode.setType(type); 
     2319    } 
    22982320 
    22992321  // - WellSample property storage - 
     
    23032325    if (id == null) return; 
    23042326    WellSampleNode wellSampleNode = getWellSampleNode(wellIndex, wellSampleIndex, true); 
    2305     wellSampleNode.setNodeID(id); 
    2306   } 
     2327      wellSampleNode.setNodeID(id); 
     2328    } 
    23072329 
    23082330  /* @see loci.formats.meta.MetadataStore#setWellSampleIndex(Integer, int, int) */ 
     
    23102332    if (index == null) return; 
    23112333    WellSampleNode wellSampleNode = getWellSampleNode(wellIndex, wellSampleIndex, true); 
    2312     wellSampleNode.setIndex(index); 
    2313   } 
     2334      wellSampleNode.setIndex(index); 
     2335    } 
    23142336 
    23152337  /* @see loci.formats.meta.MetadataStore#setWellSamplePosX(Float, int, int) */ 
     
    23172339    if (posX == null) return; 
    23182340    WellSampleNode wellSampleNode = getWellSampleNode(wellIndex, wellSampleIndex, true); 
    2319     wellSampleNode.setPosX(posX); 
    2320   } 
     2341      wellSampleNode.setPosX(posX); 
     2342    } 
    23212343 
    23222344  /* @see loci.formats.meta.MetadataStore#setWellSamplePosY(Float, int, int) */ 
     
    23242346    if (posY == null) return; 
    23252347    WellSampleNode wellSampleNode = getWellSampleNode(wellIndex, wellSampleIndex, true); 
    2326     wellSampleNode.setPosY(posY); 
    2327   } 
     2348      wellSampleNode.setPosY(posY); 
     2349    } 
    23282350 
    23292351  /* @see loci.formats.meta.MetadataStore#setWellSampleTimepoint(Integer, int, int) */ 
     
    23312353    if (timepoint == null) return; 
    23322354    WellSampleNode wellSampleNode = getWellSampleNode(wellIndex, wellSampleIndex, true); 
    2333     wellSampleNode.setTimepoint(timepoint); 
    2334   } 
     2355      wellSampleNode.setTimepoint(timepoint); 
     2356    } 
    23352357 
    23362358  // -- Helper methods -- 
  • trunk/loci/formats/ome/OMEXML200802Metadata.java

    r4084 r4112  
    2525 * 
    2626 * THIS IS AUTOMATICALLY GENERATED CODE.  DO NOT MODIFY. 
    27  * Created by curtis via MetadataAutogen on May 30, 2008 1:36:31 PM CDT 
     27 * Created by melissa via MetadataAutogen on Jun 12, 2008 10:39:37 PM CDT 
    2828 * 
    2929 *----------------------------------------------------------------------------- 
     
    238238  public String getArcType(int instrumentIndex, int lightSourceIndex) { 
    239239    ArcNode arc = getArcNode(instrumentIndex, lightSourceIndex, false); 
    240     return arc == null ? null : arc.getType(); 
    241   } 
     240      return arc == null ? null : arc.getType(); 
     241    } 
    242242 
    243243  // - ChannelComponent property retrieval - 
     
    246246  public String getChannelComponentColorDomain(int imageIndex, int logicalChannelIndex, int channelComponentIndex) { 
    247247    ChannelComponentNode channelComponent = getChannelComponentNode(imageIndex, logicalChannelIndex, channelComponentIndex, false); 
    248     return channelComponent == null ? null : channelComponent.getColorDomain(); 
    249   } 
     248      return channelComponent == null ? null : channelComponent.getColorDomain(); 
     249    } 
    250250 
    251251  /* @see loci.formats.meta.MetadataRetrieve#getChannelComponentIndex(int, int, int) */ 
    252252  public Integer getChannelComponentIndex(int imageIndex, int logicalChannelIndex, int channelComponentIndex) { 
    253253    ChannelComponentNode channelComponent = getChannelComponentNode(imageIndex, logicalChannelIndex, channelComponentIndex, false); 
    254     return channelComponent == null ? null : channelComponent.getIndex(); 
    255   } 
     254      return channelComponent == null ? null : channelComponent.getIndex(); 
     255    } 
    256256 
    257257  // - Detector property retrieval - 
     
    260260  public Float getDetectorGain(int instrumentIndex, int detectorIndex) { 
    261261    DetectorNode detector = getDetectorNode(instrumentIndex, detectorIndex, false); 
    262     return detector == null ? null : detector.getGain(); 
    263   } 
     262      return detector == null ? null : detector.getGain(); 
     263    } 
    264264 
    265265  /* @see loci.formats.meta.MetadataRetrieve#getDetectorID(int, int) */ 
    266266  public String getDetectorID(int instrumentIndex, int detectorIndex) { 
    267267    DetectorNode detector = getDetectorNode(instrumentIndex, detectorIndex, false); 
    268     return detector == null ? null : detector.getNodeID(); 
    269   } 
     268      return detector == null ? null : detector.getNodeID(); 
     269    } 
    270270 
    271271  /* @see loci.formats.meta.MetadataRetrieve#getDetectorManufacturer(int, int) */ 
    272272  public String getDetectorManufacturer(int instrumentIndex, int detectorIndex) { 
    273273    DetectorNode detector = getDetectorNode(instrumentIndex, detectorIndex, false); 
    274     return detector == null ? null : detector.getManufacturer(); 
    275   } 
     274      return detector == null ? null : detector.getManufacturer(); 
     275    } 
    276276 
    277277  /* @see loci.formats.meta.MetadataRetrieve#getDetectorModel(int, int) */ 
    278278  public String getDetectorModel(int instrumentIndex, int detectorIndex) { 
    279279    DetectorNode detector = getDetectorNode(instrumentIndex, detectorIndex, false); 
    280     return detector == null ? null : detector.getModel(); 
    281   } 
     280      return detector == null ? null : detector.getModel(); 
     281    } 
    282282 
    283283  /* @see loci.formats.meta.MetadataRetrieve#getDetectorOffset(int, int) */ 
    284284  public Float getDetectorOffset(int instrumentIndex, int detectorIndex) { 
    285285    DetectorNode detector = getDetectorNode(instrumentIndex, detectorIndex, false); 
    286     return detector == null ? null : detector.getOffset(); 
    287   } 
     286      return detector == null ? null : detector.getOffset(); 
     287    } 
    288288 
    289289  /* @see loci.formats.meta.MetadataRetrieve#getDetectorSerialNumber(int, int) */ 
    290290  public String getDetectorSerialNumber(int instrumentIndex, int detectorIndex) { 
    291291    DetectorNode detector = getDetectorNode(instrumentIndex, detectorIndex, false); 
    292     return detector == null ? null : detector.getSerialNumber(); 
    293   } 
     292      return detector == null ? null : detector.getSerialNumber(); 
     293    } 
    294294 
    295295  /* @see loci.formats.meta.MetadataRetrieve#getDetectorType(int, int) */ 
    296296  public String getDetectorType(int instrumentIndex, int detectorIndex) { 
    297297    DetectorNode detector = getDetectorNode(instrumentIndex, detectorIndex, false); 
    298     return detector == null ? null : detector.getType(); 
    299   } 
     298      return detector == null ? null : detector.getType(); 
     299    } 
    300300 
    301301  /* @see loci.formats.meta.MetadataRetrieve#getDetectorVoltage(int, int) */ 
    302302  public Float getDetectorVoltage(int instrumentIndex, int detectorIndex) { 
    303303    DetectorNode detector = getDetectorNode(instrumentIndex, detectorIndex, false); 
    304     return detector == null ? null : detector.getVoltage(); 
    305   } 
     304      return detector == null ? null : detector.getVoltage(); 
     305    } 
    306306 
    307307  // - DetectorSettings property retrieval - 
     
    310310  public String getDetectorSettingsDetector(int imageIndex, int logicalChannelIndex) { 
    311311    DetectorRefNode detectorRef = getDetectorRefNode(imageIndex, logicalChannelIndex, false); 
    312     return detectorRef == null ? null : detectorRef.getNodeID(); 
    313   } 
     312      return detectorRef == null ? null : detectorRef.getNodeID(); 
     313    } 
    314314 
    315315  /* @see loci.formats.meta.MetadataRetrieve#getDetectorSettingsGain(int, int) */ 
    316316  public Float getDetectorSettingsGain(int imageIndex, int logicalChannelIndex) { 
    317317    DetectorRefNode detectorRef = getDetectorRefNode(imageIndex, logicalChannelIndex, false); 
    318     return detectorRef == null ? null : detectorRef.getGain(); 
    319   } 
     318      return detectorRef == null ? null : detectorRef.getGain(); 
     319    } 
    320320 
    321321  /* @see loci.formats.meta.MetadataRetrieve#getDetectorSettingsOffset(int, int) */ 
    322322  public Float getDetectorSettingsOffset(int imageIndex, int logicalChannelIndex) { 
    323323    DetectorRefNode detectorRef = getDetectorRefNode(imageIndex, logicalChannelIndex, false); 
    324     return detectorRef == null ? null : detectorRef.getOffset(); 
    325   } 
     324      return detectorRef == null ? null : detectorRef.getOffset(); 
     325    } 
    326326 
    327327  // - Dimensions property retrieval - 
     
    330330  public Float getDimensionsPhysicalSizeX(int imageIndex, int pixelsIndex) { 
    331331    PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, false); 
    332     return pixels == null ? null : pixels.getPhysicalSizeX(); 
    333   } 
     332      return pixels == null ? null : pixels.getPhysicalSizeX(); 
     333    } 
    334334 
    335335  /* @see loci.formats.meta.MetadataRetrieve#getDimensionsPhysicalSizeY(int, int) */ 
    336336  public Float getDimensionsPhysicalSizeY(int imageIndex, int pixelsIndex) { 
    337337    PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, false); 
    338     return pixels == null ? null : pixels.getPhysicalSizeY(); 
    339   } 
     338      return pixels == null ? null : pixels.getPhysicalSizeY(); 
     339    } 
    340340 
    341341  /* @see loci.formats.meta.MetadataRetrieve#getDimensionsPhysicalSizeZ(int, int) */ 
    342342  public Float getDimensionsPhysicalSizeZ(int imageIndex, int pixelsIndex) { 
    343343    PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, false); 
    344     return pixels == null ? null : pixels.getPhysicalSizeZ(); 
    345   } 
     344      return pixels == null ? null : pixels.getPhysicalSizeZ(); 
     345    } 
    346346 
    347347  /* @see loci.formats.meta.MetadataRetrieve#getDimensionsTimeIncrement(int, int) */ 
    348348  public Float getDimensionsTimeIncrement(int imageIndex, int pixelsIndex) { 
    349349    PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, false); 
    350     return pixels == null ? null : pixels.getTimeIncrement(); 
    351   } 
     350      return pixels == null ? null : pixels.getTimeIncrement(); 
     351    } 
    352352 
    353353  /* @see loci.formats.meta.MetadataRetrieve#getDimensionsWaveIncrement(int, int) */ 
    354354  public Integer getDimensionsWaveIncrement(int imageIndex, int pixelsIndex) { 
    355355    PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, false); 
    356     return pixels == null ? null : pixels.getWaveIncrement(); 
    357   } 
     356      return pixels == null ? null : pixels.getWaveIncrement(); 
     357    } 
    358358 
    359359  /* @see loci.formats.meta.MetadataRetrieve#getDimensionsWaveStart(int, int) */ 
    360360  public Integer getDimensionsWaveStart(int imageIndex, int pixelsIndex) { 
    361361    PixelsNode pixels = getPixelsNode(imageIndex, pixelsIndex, false); 
    362     return pixels == null ? null : pixels.getWaveStart(); 
    363   } 
     362      return pixels == null ? null : pixels.getWaveStart(); 
     363    } 
    364364 
    365365  // - DisplayOptions property retrieval - 
     
    368368  public String getDisplayOptionsID(int imageIndex) { 
    369369    DisplayOptionsNode displayOptions = getDisplayOptionsNode(imageIndex, false); 
    370     return displayOptions == null ? null : displayOptions.getNodeID(); 
    371   } 
     370      return displayOptions == null ? null : displayOptions.getNodeID(); 
     371    } 
    372372 
    373373  /* @see loci.formats.meta.MetadataRetrieve#getDisplayOptionsZoom(int) */ 
    374374  public Float getDisplayOptionsZoom(int imageIndex) { 
    375375    DisplayOptionsNode displayOptions = getDisplayOptionsNode(imageIndex, false); 
    376     return displayOptions == null ? null : displayOptions.getZoom(); 
    377   } 
     376      return displayOptions == null ? null : displayOptions.getZoom(); 
     377    } 
    378378 
    379379  // - DisplayOptionsProjection property retrieval - 
     
    382382  public Integer getDisplayOptionsProjectionZStart(int imageIndex) { 
    383383    ProjectionNode projection = getProjectionNode(imageIndex, false); 
    384     return projection == null ? null : projection.getZStart(); 
    385   } 
     384      return projection == null ? null : projection.getZStart(); 
     385    } 
    386386 
    387387  /* @see loci.formats.meta.MetadataRetrieve#getDisplayOptionsProjectionZStop(int) */ 
    388388  public Integer getDisplayOptionsProjectionZStop(int imageIndex) { 
    389389    ProjectionNode projection = getProjectionNode(imageIndex, false); 
    390     return projection == null ? null : projection.getZStop(); 
    391   } 
     390      return projection == null ? null : projection.getZStop(); 
     391    } 
    392392 
    393393  // - DisplayOptionsTime property retrieval - 
     
    396396  public Integer getDisplayOptionsTimeTStart(int imageIndex) { 
    397397    TimeNode time = getTimeNode(imageIndex, false); 
    398     return time == null ? null : time.getTStart(); 
    399   } 
     398      return time == null ? null : time.getTStart(); 
     399    } 
    400400 
    401401  /* @see loci.formats.meta.MetadataRetrieve#getDisplayOptionsTimeTStop(int) */ 
    402402  public Integer getDisplayOptionsTimeTStop(int imageIndex) { 
    403403    TimeNode time = getTimeNode(imageIndex, false); 
    404     return time == null ? null : time.getTStop(); 
    405   } 
     404      return time == null ? null : time.getTStop(); 
     405    } 
    406406 
    407407  // - Experimenter property retrieval - 
     
    410410  public String getExperimenterEmail(int experimenterIndex) { 
    411411    ExperimenterNode experimenter = getExperimenterNode(experimenterIndex, false); 
    412     return experimenter == null ? null : experimenter.getEmail(); 
    413   } 
     412      return experimenter == null ? null : experimenter.getEmail(); 
     413    } 
    414414 
    415415  /* @see loci.formats.meta.MetadataRetrieve#getExperimenterFirstName(int) */ 
    416416  public String getExperimenterFirstName(int experimenterIndex) { 
    417417    ExperimenterNode experimenter = getExperimenterNode(experimenterIndex, false); 
    418     return experimenter == null ? null : experimenter.getFirstName(); 
    419   } 
     418      return experimenter == null ? null : experimenter.getFirstName(); 
     419    } 
    420420 
    421421  /* @see loci.formats.meta.MetadataRetrieve#getExperimenterID(int) */ 
    422422  public String getExperimenterID(int experimenterIndex) { 
    423423    ExperimenterNode experimenter = getExperimenterNode(experimenterIndex, false); 
    424     return experimenter == null ? null : experimenter.getNodeID(); 
    425   } 
     424      return experimenter == null ? null : experimenter.getNodeID(); 
     425    } 
    426426 
    427427  /* @see loci.formats.meta.MetadataRetrieve#getExperimenterInstitution(int) */ 
    428428  public String getExperimenterInstitution(int experimenterIndex) { 
    429429    ExperimenterNode experimenter = getExperimenterNode(experimenterIndex, false); 
    430     return experimenter == null ? null : experimenter.getInstitution(); 
    431   } 
     430      return experimenter == null ? null : experimenter.getInstitution(); 
     431    } 
    432432 
    433433  /* @see loci.formats.meta.MetadataRetrieve#getExperimenterLastName(int) */ 
    434434  public String getExperimenterLastName(int experimenterIndex) { 
    435435    ExperimenterNode experimenter = getExperimenterNode(experimenterIndex, false); 
    436     return experimenter == null ? null : experimenter.getLastName(); 
    437   } 
     436      return experimenter == null ? null : experimenter.getLastName(); 
     437    } 
    438438 
    439439  // - Filament property retrieval - 
     
    442442  public String getFilamentType(int instrumentIndex, int lightSourceIndex) { 
    443443    FilamentNode filament = getFilamentNode(instrumentIndex, lightSourceIndex, false); 
    444     return filament == null ? null : filament.getType(); 
    445   } 
     444      return filament == null ? null : filament.getType(); 
     445    } 
    446446 
    447447  // - Image property retrieval - 
     
    450450  public String getImageCreationDate(int imageIndex) { 
    451451    ImageNode image = getImageNode(imageIndex, false); 
    452     return image == null ? null : image.getCreationDate(); 
    453   } 
     452      return image == null ? null : image.getCreationDate(); 
     453    } 
    454454 
    455455  /* @see loci.formats.meta.MetadataRetrieve#getImageDescription(int) */ 
    456456  public String getImageDescription(int imageIndex) { 
    457457    ImageNode image = getImageNode(imageIndex, false); 
    458     return image == null ? null : image.getDescription(); 
    459   } 
     458      return image == null ? null : image.getDescription(); 
     459    } 
    460460 
    461461  /* @see loci.formats.meta.MetadataRetrieve#getImageID(int) */ 
    462462  public String getImageID(int imageIndex) { 
    463463    ImageNode image = getImageNode(imageIndex, false); 
    464     return image == null ? null : image.getNodeID(); 
    465   } 
     464      return image == null ? null : image.getNodeID(); 
     465    } 
     466 
     467  /* @see loci.formats.meta.MetadataRetrieve#getImageInstrumentRef(int) */ 
     468  public Integer getImageInstrumentRef(int imageIndex) { 
     469    ImageNode image = getImageNode(imageIndex, false); 
     470      InstrumentNode node = image.getInstrument(); 
     471    OMENode ome = (OMENode) root; 
     472    List list = ome.getInstrumentList(); 
     473    for (int i=0; i<list.size(); i++) { 
     474      Object o = list.get(i); 
     475      if (o.equals(node)) return new Integer(i); 
     476    } 
     477    return null; 
     478    } 
    466479 
    467480  /* @see loci.formats.meta.MetadataRetrieve#getImageName(int) */ 
    468481  public String getImageName(int imageIndex) { 
    469482    ImageNode image = getImageNode(imageIndex, false); 
    470     return image == null ? null : image.getName(); 
    471   } 
     483      return image == null ? null : image.getName(); 
     484    } 
    472485 
    473486  // - ImagingEnvironment property retrieval - 
     
    476489  public Float getImagingEnvironmentAirPressure(int imageIndex) { 
    477490    ImagingEnvironmentNode imagingEnvironment = getImagingEnvironmentNode(imageIndex, false); 
    478     return imagingEnvironment == null ? null : imagingEnvironment.getAirPressure(); 
    479   } 
     491      return imagingEnvironment == null ? null : imagingEnvironment.getAirPressure(); 
     492    } 
    480493 
    481494  /* @see loci.formats.meta.MetadataRetrieve#getImagingEnvironmentCO2Percent(int) */ 
    482495  public Float getImagingEnvironmentCO2Percent(int imageIndex) { 
    483496    ImagingEnvironmentNode imagingEnvironment = getImagingEnvironmentNode(imageIndex, false); 
    484     return imagingEnvironment == null ? null : imagingEnvironment.getCO2Percent(); 
    485   } 
     497      return imagingEnvironment == null ? null : imagingEnvironment.getCO2Percent(); 
     498    } 
    486499 
    487500  /* @see loci.formats.meta.MetadataRetrieve#getImagingEnvironmentHumidity(int) */ 
    488501  public Float getImagingEnvironmentHumidity(int imageIndex) { 
    489502    ImagingEnvironmentNode imagingEnvironment = getImagingEnvironmentNode(imageIndex, false); 
    490     return imagingEnvironment == null ? null : imagingEnvironment.getHumidity(); 
    491   } 
     503      return imagingEnvironment == null ? null : imagingEnvironment.getHumidity(); 
     504    } 
    492505 
    493506  /* @see loci.formats.meta.MetadataRetrieve#getImagingEnvironmentTemperature(int) */ 
    494507  public Float getImagingEnvironmentTemperature(int imageIndex) { 
    495508    ImagingEnvironmentNode imagingEnvironment = getImagingEnvironmentNode(imageIndex, false); 
    496     return imagingEnvironment == null ? null : imagingEnvironment.getTemperature(); 
    497   } 
     509      return imagingEnvironment == null ? null : imagingEnvironment.getTemperature(); 
     510    } 
    498511 
    499512  // - Instrument property retrieval - 
     
    502515  public String getInstrumentID(int instrumentIndex) { 
    503516    InstrumentNode instrument = getInstrumentNode(instrumentIndex, false); 
    504     return instrument == null ? null : instrument.getNodeID(); 
    505   } 
     517      return instrument == null ? null : instrument.getNodeID(); 
     518    } 
    506519 
    507520  // - Laser property retrieval - 
     
    510523  public Integer getLaserFrequencyMultiplication(int instrumentIndex, int lightSourceIndex) { 
    511524    LaserNode laser = getLaserNode(instrumentIndex, lightSourceIndex, false); 
    512     return laser == null ? null : laser.getFrequencyMultiplication(); 
    513   } 
     525      return laser == null ? null : laser.getFrequencyMultiplication(); 
     526    } 
    514527 
    515528  /* @see loci.formats.meta.MetadataRetrieve#getLaserLaserMedium(int, int) */ 
    516529  public String getLaserLaserMedium(int instrumentIndex, int lightSourceIndex) { 
    517530    LaserNode laser = getLaserNode(instrumentIndex, lightSourceIndex, false); 
    518     return laser == null ? null : laser.getLaserMedium(); 
    519   } 
     531      return laser == null ? null : laser.getLaserMedium(); 
     532    } 
    520533 
    521534  /* @see loci.formats.meta.MetadataRetrieve#getLaserPulse(int, int) */ 
    522535  public String getLaserPulse(int instrumentIndex, int lightSourceIndex) { 
    523536    LaserNode laser = getLaserNode(instrumentIndex, lightSourceIndex, false); 
    524     return laser == null ? null : laser.getPulse(); 
    525   } 
     537      return laser == null ? null : laser.getPulse(); 
     538    } 
    526539 
    527540  /* @see loci.formats.meta.MetadataRetrieve#getLaserTuneable(int, int) */ 
    528541  public Boolean getLaserTuneable(int instrumentIndex, int lightSourceIndex) { 
    529542    LaserNode laser = getLaserNode(i