/** * takes a CBlock and calls the block once for each ome.model.experiment.MicrobeamManipulation while * collecting the results. If <code>block == null</code>, then the * iterator values themselves are collected. This method uses * {@link #iterateMicrobeamManipulation} internally and so will return a value * even if the underlying collection is null. */ @SuppressWarnings("unchecked") public <E> java.util.List<E> collectMicrobeamManipulation(ome.util.CBlock<E> block) { if (! _loaded ) errorIfUnloaded(); java.util.List<E> result = new java.util.ArrayList<E>(); java.util.Iterator<ome.model.experiment.MicrobeamManipulation> it = iterateMicrobeamManipulation(); while ( it.hasNext() ) { IObject obj = (IObject) it.next(); if ( block != null ) { result.add( block.call( obj ) ); } else { result.add( (E) obj ); } } return result; }
/** * clears the set. */ public void clearMicrobeamManipulation() { if (! _loaded ) errorIfUnloaded(); if (getMicrobeamManipulation() == null) { throwNullCollectionException("MicrobeamManipulation"); } getMicrobeamManipulation().clear(); java.util.Iterator<ome.model.experiment.MicrobeamManipulation> it = iterateMicrobeamManipulation(); while (it.hasNext()) { ome.model.experiment.MicrobeamManipulation target = it.next(); target.setExperiment ( null ); } }
e.iterateMicrobeamManipulation(); for (int i = 0; i < e.sizeOfMicrobeamManipulation(); i++)