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