/** * use like removeLightSettings */ public void removeLightSettingsSet(java.util.Collection<ome.model.acquisition.LightSettings> targets ) { if (! _loaded ) errorIfUnloaded(); if (getLightSourceSettings() == null) { throwNullCollectionException("LightSourceSettings"); } getLightSourceSettings().removeAll( targets ); java.util.Iterator<ome.model.acquisition.LightSettings> it = targets.iterator(); while ( it.hasNext() ) { ome.model.acquisition.LightSettings target = it.next(); target.setMicrobeamManipulation ( null ); } }
/** * use like addLightSettings. */ public void addLightSettingsSet(java.util.Collection<ome.model.acquisition.LightSettings> targets) { if (! _loaded ) errorIfUnloaded(); if (getLightSourceSettings() == null) { throwNullCollectionException("LightSourceSettings"); } getLightSourceSettings().addAll( targets ); java.util.Iterator<ome.model.acquisition.LightSettings> it = targets.iterator(); while ( it.hasNext() ) { ome.model.acquisition.LightSettings target = it.next(); // If this relationship is not ordered, then we will // "attempt" the setting even if it is loaded. if (target != null) { target.setMicrobeamManipulation ( this ); } } }
/** * removes a single element from this set and makes the inverse call on ome.model.acquisition.LightSettings */ public void removeLightSettings(ome.model.acquisition.LightSettings target) { if (! _loaded ) errorIfUnloaded(); if (getLightSourceSettings() == null) { throwNullCollectionException("LightSourceSettings"); } getLightSourceSettings().remove( target ); target.setMicrobeamManipulation ( null ); }
@Override public void putAt(String field, Object value) { if (field == null) { return; } else if (field.equals(ID)) { setId((Long) value); } else if (field.equals(VERSION)) { setVersion((Integer) value); } else if (field.equals(ATTENUATION)) { setAttenuation((java.lang.Double)value); } else if (field.equals(WAVELENGTH)) { setWavelength((ome.model.units.Length)value); } else if (field.equals(LIGHTSOURCE)) { setLightSource((ome.model.acquisition.LightSource)value); } else if (field.equals(MICROBEAMMANIPULATION)) { setMicrobeamManipulation((ome.model.experiment.MicrobeamManipulation)value); } else if (field.equals(DETAILS)) { setDetails((ome.model.internal.Details)value); } else { if (_dynamicFields == null) { _dynamicFields = new java.util.HashMap<String, Object>(); } _dynamicFields.put(field,value); } }
/** * clears the set. */ public void clearLightSourceSettings() { if (! _loaded ) errorIfUnloaded(); if (getLightSourceSettings() == null) { throwNullCollectionException("LightSourceSettings"); } getLightSourceSettings().clear(); java.util.Iterator<ome.model.acquisition.LightSettings> it = iterateLightSourceSettings(); while (it.hasNext()) { ome.model.acquisition.LightSettings target = it.next(); target.setMicrobeamManipulation ( null ); } }
/** * use instead of setLightSourceSettings . Makes the necessary * call on ome.model.acquisition.LightSettings as well. */ public void addLightSettings(ome.model.acquisition.LightSettings target) { if (! _loaded ) errorIfUnloaded(); if (getLightSourceSettings() == null) { throwNullCollectionException("LightSourceSettings"); } getLightSourceSettings().add( target ); // If this relationship is not ordered, then we will // "attempt" the setting even if it is loaded. if (target != null) { target.setMicrobeamManipulation ( this ); } }