/** * Gets the ome.model.acquisition.LightPathExcitationFilterLink at the given index. */ public ome.model.acquisition.LightPathExcitationFilterLink getLightPathExcitationFilterLink(int index) throws IndexOutOfBoundsException { if (! _loaded ) errorIfUnloaded(); if (getExcitationFilterLink() == null) { throwNullCollectionException("ExcitationFilterLink"); } return getExcitationFilterLink().get(index); }
/** * Adds a ome.model.acquisition.LightPathExcitationFilterLink to excitationFilterLink, allowing for recursion -- whether * or not addLightPathExcitationFilterLink will be called on the addition <b>if it is loaded</b> */ public void addLightPathExcitationFilterLink (ome.model.acquisition.LightPathExcitationFilterLink link, boolean bothSides) { if (! _loaded ) errorIfUnloaded(); if ( getExcitationFilterLink() == null ) { throwNullCollectionException("ExcitationFilterLink"); } getExcitationFilterLink().add( link ); }
/** * removes the given LightPathEmissionFilterLink from emissionFilterLink, allowing for recursion -- whether * or not the removal will call unlinkLightPath again <b>if loaded</b>. */ public void removeLightPathEmissionFilterLink (ome.model.acquisition.LightPathEmissionFilterLink link, boolean bothSides) { if (! _loaded ) errorIfUnloaded(); if ( getEmissionFilterLink() == null ) { throwNullCollectionException("EmissionFilterLink"); } getEmissionFilterLink().remove( link ); }
/** * removes the given LightPathExcitationFilterLink from excitationFilterLink, allowing for recursion -- whether * or not the removal will call unlinkLightPath again <b>if loaded</b>. */ public void removeLightPathExcitationFilterLink (ome.model.acquisition.LightPathExcitationFilterLink link, boolean bothSides) { if (! _loaded ) errorIfUnloaded(); if ( getExcitationFilterLink() == null ) { throwNullCollectionException("ExcitationFilterLink"); } getExcitationFilterLink().remove( link ); }
/** * Adds a ome.model.acquisition.LightPathEmissionFilterLink to emissionFilterLink, allowing for recursion -- whether * or not addLightPathEmissionFilterLink will be called on the addition <b>if it is loaded</b> */ public void addLightPathEmissionFilterLink (ome.model.acquisition.LightPathEmissionFilterLink link, boolean bothSides) { if (! _loaded ) errorIfUnloaded(); if ( getEmissionFilterLink() == null ) { throwNullCollectionException("EmissionFilterLink"); } getEmissionFilterLink().add( link ); }
/** * Adds a ome.model.annotations.LightPathAnnotationLink to annotationLinks, allowing for recursion -- whether * or not addLightPathAnnotationLink will be called on the addition <b>if it is loaded</b> */ public void addLightPathAnnotationLink (ome.model.annotations.LightPathAnnotationLink link, boolean bothSides) { if (! _loaded ) errorIfUnloaded(); if ( getAnnotationLinks() == null ) { throwNullCollectionException("AnnotationLinks"); } getAnnotationLinks().add( link ); }
/** * use like removeLightPathAnnotationLink */ public void removeLightPathAnnotationLinkSet(java.util.Collection<ome.model.annotations.LightPathAnnotationLink> targets ) { if (! _loaded ) errorIfUnloaded(); if (getAnnotationLinks() == null) { throwNullCollectionException("AnnotationLinks"); } getAnnotationLinks().removeAll( targets ); java.util.Iterator<ome.model.annotations.LightPathAnnotationLink> it = targets.iterator(); while ( it.hasNext() ) { ome.model.annotations.LightPathAnnotationLink target = it.next(); target.setParent ( null ); } }
/** * Swaps the first element of excitationFilterLink with the first instance of the * given element. If the given element is not in the list, an * {@link IndexOutOfBoundsException} will be thrown. Returns the swapped * element. This method * will also throw an {@link ApiUsageException} if the collection is * unloaded. See {@link #sizeOfExcitationFilterLink()} for more information. */ public ome.model.acquisition.LightPathExcitationFilterLink setPrimaryLightPathExcitationFilterLink(ome.model.acquisition.LightPathExcitationFilterLink element) throws IndexOutOfBoundsException { if (! _loaded ) errorIfUnloaded(); if (getExcitationFilterLink() == null) { throwNullCollectionException("ExcitationFilterLink"); } java.util.List<ome.model.acquisition.LightPathExcitationFilterLink> list = getExcitationFilterLink(); int index = list.indexOf(element); ome.model.acquisition.LightPathExcitationFilterLink old = list.get(0); list.set(index, old); list.set(0, element); return old; }
/** * Gets the first element of excitationFilterLink which can be interpreted as the * primary or default element in some situations. If there is not first * element, an {@link IndexOutOfBoundsException} is throws. This method * will also throw an {@link ApiUsageException} if the collection is * unloaded. See {@link #sizeOfExcitationFilterLink()} for more information. */ @javax.persistence.Transient public ome.model.acquisition.LightPathExcitationFilterLink getPrimaryLightPathExcitationFilterLink() throws IndexOutOfBoundsException { if (! _loaded ) errorIfUnloaded(); if (getExcitationFilterLink() == null) { throwNullCollectionException("ExcitationFilterLink"); } return getExcitationFilterLink().get(0); }
/** * removes the given LightPathAnnotationLink from annotationLinks, allowing for recursion -- whether * or not the removal will call unlinkLightPath again <b>if loaded</b>. */ public void removeLightPathAnnotationLink (ome.model.annotations.LightPathAnnotationLink link, boolean bothSides) { if (! _loaded ) errorIfUnloaded(); if ( getAnnotationLinks() == null ) { throwNullCollectionException("AnnotationLinks"); } getAnnotationLinks().remove( link ); }
/** * use like removeLightPathEmissionFilterLink */ public void removeLightPathEmissionFilterLinkSet(java.util.Collection<ome.model.acquisition.LightPathEmissionFilterLink> targets ) { if (! _loaded ) errorIfUnloaded(); if (getEmissionFilterLink() == null) { throwNullCollectionException("EmissionFilterLink"); } getEmissionFilterLink().removeAll( targets ); java.util.Iterator<ome.model.acquisition.LightPathEmissionFilterLink> it = targets.iterator(); while ( it.hasNext() ) { ome.model.acquisition.LightPathEmissionFilterLink target = it.next(); 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.LightPathEmissionFilterLink */ public void removeLightPathEmissionFilterLink(ome.model.acquisition.LightPathEmissionFilterLink target) { if (! _loaded ) errorIfUnloaded(); if (getEmissionFilterLink() == null) { throwNullCollectionException("EmissionFilterLink"); } getEmissionFilterLink().remove( target ); target.setParent ( null ); }
/** * removes a single element from this set and makes the inverse call on ome.model.annotations.LightPathAnnotationLink */ public void removeLightPathAnnotationLink(ome.model.annotations.LightPathAnnotationLink target) { if (! _loaded ) errorIfUnloaded(); if (getAnnotationLinks() == null) { throwNullCollectionException("AnnotationLinks"); } getAnnotationLinks().remove( target ); target.setParent ( null ); }
/** * 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 instead of setAnnotationLinks . Makes the necessary * call on ome.model.annotations.LightPathAnnotationLink as well. */ public void addLightPathAnnotationLink(ome.model.annotations.LightPathAnnotationLink target) { if (! _loaded ) errorIfUnloaded(); if (getAnnotationLinks() == null) { throwNullCollectionException("AnnotationLinks"); } getAnnotationLinks().add( target ); // If this relationship is not ordered, then we will // "attempt" the setting even if it is loaded. if (target != null) { 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 setEmissionFilterLink . Makes the necessary * call on ome.model.acquisition.LightPathEmissionFilterLink as well. */ public void addLightPathEmissionFilterLink(ome.model.acquisition.LightPathEmissionFilterLink target) { if (! _loaded ) errorIfUnloaded(); if (getEmissionFilterLink() == null) { throwNullCollectionException("EmissionFilterLink"); } getEmissionFilterLink().add( target ); // If this relationship is not ordered, then we will // "attempt" the setting even if it is loaded. if (target != null) { target.setParent ( this ); } }
/** * 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; }