/** * Returns an unmodifiable collection-view */ public java.util.Collection<ome.model.acquisition.Dichroic> unmodifiableDichroic() { if (! _loaded ) errorIfUnloaded(); if ( getDichroic() == null ) { return java.util.Collections.emptyList(); } return java.util.Collections.unmodifiableCollection( getDichroic() ); }
/** * should be used rather than accessing the dichroic 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 #sizeOfDichroic()} is less than zero. */ public java.util.Iterator<ome.model.acquisition.Dichroic> iterateDichroic() { if (! _loaded ) errorIfUnloaded(); if ( getDichroic() == null ) { return new ome.util.EmptyIterator<ome.model.acquisition.Dichroic>(); } return getDichroic().iterator(); // TODO should this be direct access }
/** * removes a single element from this set and makes the inverse call on ome.model.acquisition.Dichroic */ public void removeDichroic(ome.model.acquisition.Dichroic target) { if (! _loaded ) errorIfUnloaded(); if (getDichroic() == null) { throwNullCollectionException("Dichroic"); } getDichroic().remove( target ); target.setInstrument ( null ); }
/** * use like removeDichroic */ public void removeDichroicSet(java.util.Collection<ome.model.acquisition.Dichroic> targets ) { if (! _loaded ) errorIfUnloaded(); if (getDichroic() == null) { throwNullCollectionException("Dichroic"); } getDichroic().removeAll( targets ); java.util.Iterator<ome.model.acquisition.Dichroic> it = targets.iterator(); while ( it.hasNext() ) { ome.model.acquisition.Dichroic target = it.next(); target.setInstrument ( null ); } }
/** * use instead of setDichroic . Makes the necessary * call on ome.model.acquisition.Dichroic as well. */ public void addDichroic(ome.model.acquisition.Dichroic target) { if (! _loaded ) errorIfUnloaded(); if (getDichroic() == null) { throwNullCollectionException("Dichroic"); } getDichroic().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 addDichroic. */ public void addDichroicSet(java.util.Collection<ome.model.acquisition.Dichroic> targets) { if (! _loaded ) errorIfUnloaded(); if (getDichroic() == null) { throwNullCollectionException("Dichroic"); } getDichroic().addAll( targets ); java.util.Iterator<ome.model.acquisition.Dichroic> it = targets.iterator(); while ( it.hasNext() ) { ome.model.acquisition.Dichroic 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 clearDichroic() { if (! _loaded ) errorIfUnloaded(); if (getDichroic() == null) { throwNullCollectionException("Dichroic"); } getDichroic().clear(); java.util.Iterator<ome.model.acquisition.Dichroic> it = iterateDichroic(); while (it.hasNext()) { ome.model.acquisition.Dichroic target = it.next(); target.setInstrument ( null ); } }
return getFilter(); } else if (field.equals(DICHROIC)) { return getDichroic(); } else if (field.equals(FILTERSET)) { return getFilterSet();