/** * use like removeObjective */ public void removeObjectiveSet(java.util.Collection<ome.model.acquisition.Objective> targets ) { if (! _loaded ) errorIfUnloaded(); if (getObjective() == null) { throwNullCollectionException("Objective"); } getObjective().removeAll( targets ); java.util.Iterator<ome.model.acquisition.Objective> it = targets.iterator(); while ( it.hasNext() ) { ome.model.acquisition.Objective target = it.next(); target.setInstrument ( null ); } }
/** * use like removeDichroic */ public void removeDichroicSet(java.util.Collection<ome.model.acquisition.Dichroic> targets ) { if (! _loaded ) errorIfUnloaded(); if (getDichroic() == null) { throwNullCollectionException("Dichroic"); } getDichroic().removeAll( targets ); java.util.Iterator<ome.model.acquisition.Dichroic> it = targets.iterator(); while ( it.hasNext() ) { ome.model.acquisition.Dichroic target = it.next(); target.setInstrument ( null ); } }
/** * Adds a ome.model.annotations.InstrumentAnnotationLink to annotationLinks, allowing for recursion -- whether * or not addInstrumentAnnotationLink will be called on the addition <b>if it is loaded</b> */ public void addInstrumentAnnotationLink (ome.model.annotations.InstrumentAnnotationLink link, boolean bothSides) { if (! _loaded ) errorIfUnloaded(); if ( getAnnotationLinks() == null ) { throwNullCollectionException("AnnotationLinks"); } getAnnotationLinks().add( link ); }
/** * use like removeLightSource */ public void removeLightSourceSet(java.util.Collection<ome.model.acquisition.LightSource> targets ) { if (! _loaded ) errorIfUnloaded(); if (getLightSource() == null) { throwNullCollectionException("LightSource"); } getLightSource().removeAll( targets ); java.util.Iterator<ome.model.acquisition.LightSource> it = targets.iterator(); while ( it.hasNext() ) { ome.model.acquisition.LightSource target = it.next(); target.setInstrument ( null ); } }
/** * use like removeFilter */ public void removeFilterSet(java.util.Collection<ome.model.acquisition.Filter> targets ) { if (! _loaded ) errorIfUnloaded(); if (getFilter() == null) { throwNullCollectionException("Filter"); } getFilter().removeAll( targets ); java.util.Iterator<ome.model.acquisition.Filter> it = targets.iterator(); while ( it.hasNext() ) { ome.model.acquisition.Filter target = it.next(); target.setInstrument ( null ); } }
/** * use like removeDetector */ public void removeDetectorSet(java.util.Collection<ome.model.acquisition.Detector> targets ) { if (! _loaded ) errorIfUnloaded(); if (getDetector() == null) { throwNullCollectionException("Detector"); } getDetector().removeAll( targets ); java.util.Iterator<ome.model.acquisition.Detector> it = targets.iterator(); while ( it.hasNext() ) { ome.model.acquisition.Detector target = it.next(); target.setInstrument ( null ); } }
/** * use like removeOTF */ public void removeOTFSet(java.util.Collection<ome.model.acquisition.OTF> targets ) { if (! _loaded ) errorIfUnloaded(); if (getOtf() == null) { throwNullCollectionException("Otf"); } getOtf().removeAll( targets ); java.util.Iterator<ome.model.acquisition.OTF> it = targets.iterator(); while ( it.hasNext() ) { ome.model.acquisition.OTF target = it.next(); target.setInstrument ( null ); } }
/** * use like removeFilterSet */ public void removeFilterSetSet(java.util.Collection<ome.model.acquisition.FilterSet> targets ) { if (! _loaded ) errorIfUnloaded(); if (getFilterSet() == null) { throwNullCollectionException("FilterSet"); } getFilterSet().removeAll( targets ); java.util.Iterator<ome.model.acquisition.FilterSet> it = targets.iterator(); while ( it.hasNext() ) { ome.model.acquisition.FilterSet target = it.next(); target.setInstrument ( null ); } }
/** * removes the given InstrumentAnnotationLink from annotationLinks, allowing for recursion -- whether * or not the removal will call unlinkInstrument again <b>if loaded</b>. */ public void removeInstrumentAnnotationLink (ome.model.annotations.InstrumentAnnotationLink link, boolean bothSides) { if (! _loaded ) errorIfUnloaded(); if ( getAnnotationLinks() == null ) { throwNullCollectionException("AnnotationLinks"); } getAnnotationLinks().remove( link ); }
/** * removes a single element from this set and makes the inverse call on ome.model.acquisition.LightSource */ public void removeLightSource(ome.model.acquisition.LightSource target) { if (! _loaded ) errorIfUnloaded(); if (getLightSource() == null) { throwNullCollectionException("LightSource"); } getLightSource().remove( target ); target.setInstrument ( null ); }
/** * removes a single element from this set and makes the inverse call on ome.model.acquisition.Dichroic */ public void removeDichroic(ome.model.acquisition.Dichroic target) { if (! _loaded ) errorIfUnloaded(); if (getDichroic() == null) { throwNullCollectionException("Dichroic"); } getDichroic().remove( target ); target.setInstrument ( null ); }
/** * clears the set. */ public void clearFilterSet() { if (! _loaded ) errorIfUnloaded(); if (getFilterSet() == null) { throwNullCollectionException("FilterSet"); } getFilterSet().clear(); java.util.Iterator<ome.model.acquisition.FilterSet> it = iterateFilterSet(); while (it.hasNext()) { ome.model.acquisition.FilterSet target = it.next(); target.setInstrument ( null ); } }
/** * removes a single element from this set and makes the inverse call on ome.model.acquisition.Filter */ public void removeFilter(ome.model.acquisition.Filter target) { if (! _loaded ) errorIfUnloaded(); if (getFilter() == null) { throwNullCollectionException("Filter"); } getFilter().remove( target ); target.setInstrument ( null ); }
/** * removes a single element from this set and makes the inverse call on ome.model.acquisition.Detector */ public void removeDetector(ome.model.acquisition.Detector target) { if (! _loaded ) errorIfUnloaded(); if (getDetector() == null) { throwNullCollectionException("Detector"); } getDetector().remove( target ); target.setInstrument ( null ); }
/** * removes a single element from this set and makes the inverse call on ome.model.acquisition.FilterSet */ public void removeFilterSet(ome.model.acquisition.FilterSet target) { if (! _loaded ) errorIfUnloaded(); if (getFilterSet() == null) { throwNullCollectionException("FilterSet"); } getFilterSet().remove( target ); target.setInstrument ( null ); }
/** * clears the set. */ public void clearOtf() { if (! _loaded ) errorIfUnloaded(); if (getOtf() == null) { throwNullCollectionException("Otf"); } getOtf().clear(); java.util.Iterator<ome.model.acquisition.OTF> it = iterateOtf(); while (it.hasNext()) { ome.model.acquisition.OTF target = it.next(); target.setInstrument ( null ); } }
/** * clears the set. */ public void clearLightSource() { if (! _loaded ) errorIfUnloaded(); if (getLightSource() == null) { throwNullCollectionException("LightSource"); } getLightSource().clear(); java.util.Iterator<ome.model.acquisition.LightSource> it = iterateLightSource(); while (it.hasNext()) { ome.model.acquisition.LightSource target = it.next(); target.setInstrument ( null ); } }
/** * removes a single element from this set and makes the inverse call on ome.model.acquisition.Objective */ public void removeObjective(ome.model.acquisition.Objective target) { if (! _loaded ) errorIfUnloaded(); if (getObjective() == null) { throwNullCollectionException("Objective"); } getObjective().remove( target ); target.setInstrument ( null ); }
/** * removes a single element from this set and makes the inverse call on ome.model.acquisition.OTF */ public void removeOTF(ome.model.acquisition.OTF target) { if (! _loaded ) errorIfUnloaded(); if (getOtf() == null) { throwNullCollectionException("Otf"); } getOtf().remove( target ); target.setInstrument ( null ); }
/** * removes a single element from this set and makes the inverse call on ome.model.annotations.InstrumentAnnotationLink */ public void removeInstrumentAnnotationLink(ome.model.annotations.InstrumentAnnotationLink target) { if (! _loaded ) errorIfUnloaded(); if (getAnnotationLinks() == null) { throwNullCollectionException("AnnotationLinks"); } getAnnotationLinks().remove( target ); target.setParent ( null ); }