/** * should be used rather than accessing the otf set directly. * This method will never return null, but rather will return an instance * of {@link ome.util.EmptyIterator}. To test for a null collection, * see of {@link #sizeOfOtf()} is less than zero. */ public java.util.Iterator<ome.model.acquisition.OTF> iterateOtf() { if (! _loaded ) errorIfUnloaded(); if ( getOtf() == null ) { return new ome.util.EmptyIterator<ome.model.acquisition.OTF>(); } return getOtf().iterator(); // TODO should this be direct access }
/** * removes a single element from this set and makes the inverse call on ome.model.acquisition.OTF */ public void removeOTF(ome.model.acquisition.OTF target) { if (! _loaded ) errorIfUnloaded(); if (getOtf() == null) { throwNullCollectionException("Otf"); } getOtf().remove( target ); target.setInstrument ( null ); }
/** * use like removeOTF */ public void removeOTFSet(java.util.Collection<ome.model.acquisition.OTF> targets ) { if (! _loaded ) errorIfUnloaded(); if (getOtf() == null) { throwNullCollectionException("Otf"); } getOtf().removeAll( targets ); java.util.Iterator<ome.model.acquisition.OTF> it = targets.iterator(); while ( it.hasNext() ) { ome.model.acquisition.OTF target = it.next(); target.setInstrument ( null ); } }
/** * use instead of setOtf . Makes the necessary * call on ome.model.acquisition.OTF as well. */ public void addOTF(ome.model.acquisition.OTF target) { if (! _loaded ) errorIfUnloaded(); if (getOtf() == null) { throwNullCollectionException("Otf"); } getOtf().add( target ); // If this relationship is not ordered, then we will // "attempt" the setting even if it is loaded. if (target != null) { target.setInstrument ( this ); } }
/** * use like addOTF. */ public void addOTFSet(java.util.Collection<ome.model.acquisition.OTF> targets) { if (! _loaded ) errorIfUnloaded(); if (getOtf() == null) { throwNullCollectionException("Otf"); } getOtf().addAll( targets ); java.util.Iterator<ome.model.acquisition.OTF> it = targets.iterator(); while ( it.hasNext() ) { ome.model.acquisition.OTF target = it.next(); // If this relationship is not ordered, then we will // "attempt" the setting even if it is loaded. if (target != null) { target.setInstrument ( this ); } } }
/** * clears the set. */ public void clearOtf() { if (! _loaded ) errorIfUnloaded(); if (getOtf() == null) { throwNullCollectionException("Otf"); } getOtf().clear(); java.util.Iterator<ome.model.acquisition.OTF> it = iterateOtf(); while (it.hasNext()) { ome.model.acquisition.OTF target = it.next(); target.setInstrument ( null ); } }
return getFilterSet(); } else if (field.equals(OTF)) { return getOtf(); } else if (field.equals(ANNOTATIONLINKSCOUNTPEROWNER)) { return getAnnotationLinksCountPerOwner();