/** * 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 ); }
/** * 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 ); } }