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