/** * removes the given DichroicAnnotationLink from annotationLinks, allowing for recursion -- whether * or not the removal will call unlinkDichroic again <b>if loaded</b>. */ public void removeDichroicAnnotationLink (ome.model.annotations.DichroicAnnotationLink link, boolean bothSides) { if (! _loaded ) errorIfUnloaded(); if ( getAnnotationLinks() == null ) { throwNullCollectionException("AnnotationLinks"); } getAnnotationLinks().remove( link ); }
/** * Adds a ome.model.annotations.DichroicAnnotationLink to annotationLinks, allowing for recursion -- whether * or not addDichroicAnnotationLink will be called on the addition <b>if it is loaded</b> */ public void addDichroicAnnotationLink (ome.model.annotations.DichroicAnnotationLink link, boolean bothSides) { if (! _loaded ) errorIfUnloaded(); if ( getAnnotationLinks() == null ) { throwNullCollectionException("AnnotationLinks"); } getAnnotationLinks().add( link ); }
/** * use like removeDichroicAnnotationLink */ public void removeDichroicAnnotationLinkSet(java.util.Collection<ome.model.annotations.DichroicAnnotationLink> targets ) { if (! _loaded ) errorIfUnloaded(); if (getAnnotationLinks() == null) { throwNullCollectionException("AnnotationLinks"); } getAnnotationLinks().removeAll( targets ); java.util.Iterator<ome.model.annotations.DichroicAnnotationLink> it = targets.iterator(); while ( it.hasNext() ) { ome.model.annotations.DichroicAnnotationLink target = it.next(); target.setParent ( null ); } }
/** * use like addDichroicAnnotationLink. */ public void addDichroicAnnotationLinkSet(java.util.Collection<ome.model.annotations.DichroicAnnotationLink> targets) { if (! _loaded ) errorIfUnloaded(); if (getAnnotationLinks() == null) { throwNullCollectionException("AnnotationLinks"); } getAnnotationLinks().addAll( targets ); java.util.Iterator<ome.model.annotations.DichroicAnnotationLink> it = targets.iterator(); while ( it.hasNext() ) { ome.model.annotations.DichroicAnnotationLink target = it.next(); // 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.annotations.DichroicAnnotationLink */ public void removeDichroicAnnotationLink(ome.model.annotations.DichroicAnnotationLink target) { if (! _loaded ) errorIfUnloaded(); if (getAnnotationLinks() == null) { throwNullCollectionException("AnnotationLinks"); } getAnnotationLinks().remove( target ); target.setParent ( null ); }
/** * use instead of setAnnotationLinks . Makes the necessary * call on ome.model.annotations.DichroicAnnotationLink as well. */ public void addDichroicAnnotationLink(ome.model.annotations.DichroicAnnotationLink 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 ); } }