/** * 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; } /**
/** * Use the {@link ome.model.internal.Details#copy(ome.model.internal.Details)} * or {@link ome.model.internal.Details#shallowCopy(ome.model.internal.Details)} * methods to set the {@link Details} instance instead. */ protected void setDetails(ome.model.internal.Details details) { if (! _loaded ) errorIfUnloaded(); this.details = (Details) details; }
@Override public void setVersion(Integer version) { if (! _loaded ) errorIfUnloaded(); this.version = version; }
/** * setter for emissionFilterLink should be avoided. Does not fulfill normal semantics. */ protected void setEmissionFilterLink(java.util.Set<ome.model.acquisition.LightPathEmissionFilterLink> emissionFilterLink) { if (! _loaded ) errorIfUnloaded(); this.emissionFilterLink = emissionFilterLink; } /**
/** * returns the size of annotationLinks. If less than zero, the Set was null. */ public int sizeOfAnnotationLinks() { if (! _loaded ) errorIfUnloaded(); return this.annotationLinks == null ? -1 : this.annotationLinks.size(); }
/** * returns the size of emissionFilterLink. If less than zero, the Set was null. */ public int sizeOfEmissionFilterLink() { if (! _loaded ) errorIfUnloaded(); return this.emissionFilterLink == null ? -1 : this.emissionFilterLink.size(); }
/** * 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.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 ); } }
/** * Many-to-one field ome.model.acquisition.LightPath.dichroic (ome.model.acquisition.Dichroic) */ @javax.persistence.ManyToOne(fetch = javax.persistence.FetchType.LAZY, cascade = {javax.persistence.CascadeType.MERGE, javax.persistence.CascadeType.PERSIST, javax.persistence.CascadeType.REFRESH}, targetEntity = ome.model.acquisition.Dichroic.class) @org.hibernate.annotations.Cascade({org.hibernate.annotations.CascadeType.LOCK, org.hibernate.annotations.CascadeType.MERGE, org.hibernate.annotations.CascadeType.PERSIST, org.hibernate.annotations.CascadeType.REPLICATE, org.hibernate.annotations.CascadeType.REFRESH, org.hibernate.annotations.CascadeType.SAVE_UPDATE, org.hibernate.annotations.CascadeType.EVICT}) @javax.persistence.JoinColumn(name="dichroic", nullable=true, unique=false, insertable=true, updatable=true) @org.hibernate.annotations.ForeignKey(name="FKlightpath_dichroic_dichroic") public ome.model.acquisition.Dichroic getDichroic() { if (! _loaded ) errorIfUnloaded(); return this.dichroic; }
/** * Returns an unmodifiable collection-view */ public java.util.Collection<ome.model.acquisition.LightPathExcitationFilterLink> unmodifiableExcitationFilterLink() { if (! _loaded ) errorIfUnloaded(); if ( getExcitationFilterLink() == null ) { return java.util.Collections.emptyList(); } return java.util.Collections.unmodifiableCollection( getExcitationFilterLink() ); }
/** * 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 ); } }
/** * 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 ); }
/** * removes the given LightPathExcitationFilterLink from excitationFilterLink, allowing for recursion -- whether * or not the removal will call unlinkLightPath again <b>if loaded</b>. */ public void removeLightPathExcitationFilterLink (ome.model.acquisition.LightPathExcitationFilterLink link, boolean bothSides) { if (! _loaded ) errorIfUnloaded(); if ( getExcitationFilterLink() == null ) { throwNullCollectionException("ExcitationFilterLink"); } getExcitationFilterLink().remove( link ); }
/** * Adds a ome.model.acquisition.LightPathEmissionFilterLink to emissionFilterLink, allowing for recursion -- whether * or not addLightPathEmissionFilterLink will be called on the addition <b>if it is loaded</b> */ public void addLightPathEmissionFilterLink (ome.model.acquisition.LightPathEmissionFilterLink link, boolean bothSides) { if (! _loaded ) errorIfUnloaded(); if ( getEmissionFilterLink() == null ) { throwNullCollectionException("EmissionFilterLink"); } getEmissionFilterLink().add( 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 ); }
/** * removes a single element from this set and makes the inverse call on ome.model.acquisition.LightPathEmissionFilterLink */ public void removeLightPathEmissionFilterLink(ome.model.acquisition.LightPathEmissionFilterLink target) { if (! _loaded ) errorIfUnloaded(); if (getEmissionFilterLink() == null) { throwNullCollectionException("EmissionFilterLink"); } getEmissionFilterLink().remove( target ); target.setParent ( null ); }
/** * removes a single element from this set and makes the inverse call on ome.model.annotations.LightPathAnnotationLink */ public void removeLightPathAnnotationLink(ome.model.annotations.LightPathAnnotationLink target) { if (! _loaded ) errorIfUnloaded(); if (getAnnotationLinks() == null) { throwNullCollectionException("AnnotationLinks"); } getAnnotationLinks().remove( target ); target.setParent ( null ); }