public ome.model.acquisition.LightPath proxy() { return new ome.model.acquisition.LightPath(this.id, false); }
/** * Handles linking a specific reference object to a target object in our * object graph. * @param target Target model object. * @param reference Reference model object. */ private void handleReference(LightPath target, Dichroic reference) { target.setDichroic(reference); }
/** * Adds a ome.model.acquisition.LightPathExcitationFilterLink to excitationFilterLink, allowing for recursion -- whether * or not addLightPathExcitationFilterLink will be called on the addition <b>if it is loaded</b> */ public void addLightPathExcitationFilterLink (ome.model.acquisition.LightPathExcitationFilterLink link, boolean bothSides) { if (! _loaded ) errorIfUnloaded(); if ( getExcitationFilterLink() == null ) { throwNullCollectionException("ExcitationFilterLink"); } getExcitationFilterLink().add( link ); }
/** * removes the given LightPathEmissionFilterLink from emissionFilterLink, allowing for recursion -- whether * or not the removal will call unlinkLightPath again <b>if loaded</b>. */ public void removeLightPathEmissionFilterLink (ome.model.acquisition.LightPathEmissionFilterLink link, boolean bothSides) { if (! _loaded ) errorIfUnloaded(); if ( getEmissionFilterLink() == null ) { throwNullCollectionException("EmissionFilterLink"); } getEmissionFilterLink().remove( link ); }
/** * Adds a ome.model.annotations.LightPathAnnotationLink to annotationLinks, allowing for recursion -- whether * or not addLightPathAnnotationLink will be called on the addition <b>if it is loaded</b> */ public void addLightPathAnnotationLink (ome.model.annotations.LightPathAnnotationLink link, boolean bothSides) { if (! _loaded ) errorIfUnloaded(); if ( getAnnotationLinks() == null ) { throwNullCollectionException("AnnotationLinks"); } getAnnotationLinks().add( link ); }
return null; } else if (field.equals(ID)) { return getId(); } else if (field.equals(VERSION)) { return getVersion(); } else if (field.equals(EXCITATIONFILTERLINKCOUNTPEROWNER)) { return getExcitationFilterLinkCountPerOwner(); } else if (field.equals(EXCITATIONFILTERLINK)) { return getExcitationFilterLink(); } else if (field.equals(DICHROIC)) { return getDichroic(); } else if (field.equals(EMISSIONFILTERLINKCOUNTPEROWNER)) { return getEmissionFilterLinkCountPerOwner(); } else if (field.equals(EMISSIONFILTERLINK)) { return getEmissionFilterLink(); } else if (field.equals(ANNOTATIONLINKSCOUNTPEROWNER)) { return getAnnotationLinksCountPerOwner(); } else if (field.equals(ANNOTATIONLINKS)) { return getAnnotationLinks(); } else if (field.equals(DETAILS)) { return getDetails(); } else { if (_dynamicFields != null) {
return; } else if (field.equals(ID)) { setId((Long) value); } else if (field.equals(VERSION)) { setVersion((Integer) value); } else if (field.equals(EXCITATIONFILTERLINKCOUNTPEROWNER)) { setExcitationFilterLinkCountPerOwner((java.util.Map<Long,Long>)value); } else if (field.equals(EXCITATIONFILTERLINK)) { setExcitationFilterLink((java.util.List<ome.model.acquisition.LightPathExcitationFilterLink>)value); } else if (field.equals(DICHROIC)) { setDichroic((ome.model.acquisition.Dichroic)value); } else if (field.equals(EMISSIONFILTERLINKCOUNTPEROWNER)) { setEmissionFilterLinkCountPerOwner((java.util.Map<Long,Long>)value); } else if (field.equals(EMISSIONFILTERLINK)) { setEmissionFilterLink((java.util.Set<ome.model.acquisition.LightPathEmissionFilterLink>)value); } else if (field.equals(ANNOTATIONLINKSCOUNTPEROWNER)) { setAnnotationLinksCountPerOwner((java.util.Map<Long,Long>)value); } else if (field.equals(ANNOTATIONLINKS)) { setAnnotationLinks((java.util.Set<ome.model.annotations.LightPathAnnotationLink>)value); } else if (field.equals(DETAILS)) { setDetails((ome.model.internal.Details)value); } else { if (_dynamicFields == null) {
if (lp.sizeOfEmissionFilterLink() > 0) { filters = new ArrayList<Filter>(); j = lp.linkedEmissionFilterIterator(); while (j.hasNext()) { filters.add(j.next()); if (lp.sizeOfExcitationFilterLink() > 0) { filters = new ArrayList<Filter>(); j = lp.linkedExcitationFilterIterator(); while (j.hasNext()) { filters.add(j.next());
if (lp.getDichroic() == lp2.getDichroic()) { List<Filter> exFilters = lp.linkedExcitationFilterList(); List<Filter> exFilters2 = lp2.linkedExcitationFilterList(); if (exFilters.equals(exFilters2)) { List<Filter> emFilters = lp.linkedEmissionFilterList(); List<Filter> emFilters2 = lp2.linkedEmissionFilterList();
if (lightPath == null) lightPath = new LightPath(); lightPath.linkEmissionFilter(reference); lightPath.linkExcitationFilter(reference);
/** * produces a {@link java.util.List}-copy of the underlying collection. Unlike, * {@link #linkedExcitationFilterIterator()}, while using the returned {@link java.util.List}, * modifications can be made to the underlying collection without throwing * {@link java.util.ConcurrentModificationException}. */ public java.util.List<ome.model.acquisition.Filter> linkedExcitationFilterList() { if (! _loaded ) errorIfUnloaded(); java.util.Iterator<ome.model.acquisition.Filter> it = linkedExcitationFilterIterator(); java.util.List<ome.model.acquisition.Filter> list = new java.util.ArrayList<ome.model.acquisition.Filter>(); while ( it.hasNext() ) { list.add( it.next() ); } return list; }
/** * produces a {@link java.util.List}-copy of the underlying collection. Unlike, * {@link #linkedEmissionFilterIterator()}, while using the returned {@link java.util.List}, * modifications can be made to the underlying collection without throwing * {@link java.util.ConcurrentModificationException}. */ public java.util.List<ome.model.acquisition.Filter> linkedEmissionFilterList() { if (! _loaded ) errorIfUnloaded(); java.util.Iterator<ome.model.acquisition.Filter> it = linkedEmissionFilterIterator(); java.util.List<ome.model.acquisition.Filter> list = new java.util.ArrayList<ome.model.acquisition.Filter>(); while ( it.hasNext() ) { list.add( it.next() ); } return list; }
filters = new ArrayList<Filter>(); lp = lc.getLightPath(); j = lp.linkedEmissionFilterIterator(); while (j.hasNext()) { filters.add(j.next()); j = lp.linkedExcitationFilterIterator(); while (j.hasNext()) { filters.add(j.next());
/** * clears the set. */ public void clearAnnotationLinks() { if (! _loaded ) errorIfUnloaded(); java.util.List<ome.model.annotations.LightPathAnnotationLink> list = new java.util.ArrayList<ome.model.annotations.LightPathAnnotationLink>( getAnnotationLinks() ); for (ome.model.annotations.LightPathAnnotationLink link : list) { removeLightPathAnnotationLink( link, true ); } }
/** * clears the set. */ public void clearExcitationFilterLinks() { if (! _loaded ) errorIfUnloaded(); java.util.List<ome.model.acquisition.LightPathExcitationFilterLink> list = new java.util.ArrayList<ome.model.acquisition.LightPathExcitationFilterLink>( getExcitationFilterLink() ); for (ome.model.acquisition.LightPathExcitationFilterLink link : list) { removeLightPathExcitationFilterLink( link, true ); } }
/** * clears the set. */ public void clearEmissionFilterLinks() { if (! _loaded ) errorIfUnloaded(); java.util.List<ome.model.acquisition.LightPathEmissionFilterLink> list = new java.util.ArrayList<ome.model.acquisition.LightPathEmissionFilterLink>( getEmissionFilterLink() ); for (ome.model.acquisition.LightPathEmissionFilterLink link : list) { removeLightPathEmissionFilterLink( link, true ); } }
/** * unlinks all ome.model.annotations.Annotation instances from this instance. */ public void unlinkAnnotation (ome.model.annotations.Annotation removal) { if (! _loaded ) errorIfUnloaded(); java.util.Set<ome.model.annotations.LightPathAnnotationLink> toRemove = findLightPathAnnotationLink( removal ); java.util.Iterator<ome.model.annotations.LightPathAnnotationLink> it = toRemove.iterator(); while ( it.hasNext() ) { removeLightPathAnnotationLink( it.next(), true ); } }
/** * unlinks all ome.model.acquisition.Filter instances from this instance. */ public void unlinkExcitationFilter (ome.model.acquisition.Filter removal) { if (! _loaded ) errorIfUnloaded(); java.util.Set<ome.model.acquisition.LightPathExcitationFilterLink> toRemove = findLightPathExcitationFilterLink( removal ); java.util.Iterator<ome.model.acquisition.LightPathExcitationFilterLink> it = toRemove.iterator(); while ( it.hasNext() ) { removeLightPathExcitationFilterLink( it.next(), true ); } }
/** * unlinks all ome.model.acquisition.Filter instances from this instance. */ public void unlinkEmissionFilter (ome.model.acquisition.Filter removal) { if (! _loaded ) errorIfUnloaded(); java.util.Set<ome.model.acquisition.LightPathEmissionFilterLink> toRemove = findLightPathEmissionFilterLink( removal ); java.util.Iterator<ome.model.acquisition.LightPathEmissionFilterLink> it = toRemove.iterator(); while ( it.hasNext() ) { removeLightPathEmissionFilterLink( it.next(), true ); } }
/** * setter for annotationLinks should be avoided. Does not fulfill normal semantics. */ protected void setAnnotationLinks(java.util.Set<ome.model.annotations.LightPathAnnotationLink> annotationLinks) { if (! _loaded ) errorIfUnloaded(); this.annotationLinks = annotationLinks; } /**