/** * use like removeLightPathExcitationFilterLink */ public void removeLightPathExcitationFilterLinkSet(java.util.Collection<ome.model.acquisition.LightPathExcitationFilterLink> targets ) { if (! _loaded ) errorIfUnloaded(); if (getExcitationFilterLink() == null) { throwNullCollectionException("ExcitationFilterLink"); } getExcitationFilterLink().removeAll( targets ); java.util.Iterator<ome.model.acquisition.LightPathExcitationFilterLink> it = targets.iterator(); while ( it.hasNext() ) { ome.model.acquisition.LightPathExcitationFilterLink target = it.next(); if (target.isLoaded()) { target.setParent ( null ); } } }
/** * use like addLightPathExcitationFilterLink. */ public void addLightPathExcitationFilterLinkSet(java.util.Collection<ome.model.acquisition.LightPathExcitationFilterLink> targets) { if (! _loaded ) errorIfUnloaded(); if (getExcitationFilterLink() == null) { throwNullCollectionException("ExcitationFilterLink"); } getExcitationFilterLink().addAll( targets ); java.util.Iterator<ome.model.acquisition.LightPathExcitationFilterLink> it = targets.iterator(); while ( it.hasNext() ) { ome.model.acquisition.LightPathExcitationFilterLink target = it.next(); // If this relationship is not ordered, then we will // "attempt" the setting even if it is loaded. if (target != null) { if (target.isLoaded()) { target.setParent ( this ); } } } }
/** * removes a single element from this set and makes the inverse call on ome.model.acquisition.LightPathExcitationFilterLink */ public void removeLightPathExcitationFilterLink(ome.model.acquisition.LightPathExcitationFilterLink target) { if (! _loaded ) errorIfUnloaded(); if (getExcitationFilterLink() == null) { throwNullCollectionException("ExcitationFilterLink"); } getExcitationFilterLink().remove( target ); if (target.isLoaded()) { target.setParent ( null ); } }
/** * use instead of setExcitationFilterLink . Makes the necessary * call on ome.model.acquisition.LightPathExcitationFilterLink as well. */ public void addLightPathExcitationFilterLink(ome.model.acquisition.LightPathExcitationFilterLink target) { if (! _loaded ) errorIfUnloaded(); if (getExcitationFilterLink() == null) { throwNullCollectionException("ExcitationFilterLink"); } getExcitationFilterLink().add( target ); // If this relationship is not ordered, then we will // "attempt" the setting even if it is loaded. if (target != null) { if (target.isLoaded()) { target.setParent ( this ); } } }
/** * Sets the ome.model.acquisition.LightPathExcitationFilterLink at the given index. Adheres to the {@link java.util.List#set(int, Object)} * contract. To extend the list, use {@link #addLightPathExcitationFilterLink(LightPathExcitationFilterLink)}. * @see java.util.List#set(int, Object) */ public ome.model.acquisition.LightPathExcitationFilterLink setLightPathExcitationFilterLink(int index, ome.model.acquisition.LightPathExcitationFilterLink element) throws IndexOutOfBoundsException { if (! _loaded ) errorIfUnloaded(); if (getExcitationFilterLink() == null) { throwNullCollectionException("ExcitationFilterLink"); } ome.model.acquisition.LightPathExcitationFilterLink old = getExcitationFilterLink().set(index, element); // If this relationship is not ordered, then we will // "attempt" the setting even if it is loaded. if (element != null) { if (element.isLoaded()) { element.setParent ( this ); } } return old; }