/** * setter for lightSource should be avoided. Does not fulfill normal semantics. */ protected void setLightSource(java.util.Set<ome.model.acquisition.LightSource> lightSource) { if (! _loaded ) errorIfUnloaded(); this.lightSource = lightSource; } /**
/** * setter for filterSet should be avoided. Does not fulfill normal semantics. */ protected void setFilterSet(java.util.Set<ome.model.acquisition.FilterSet> filterSet) { if (! _loaded ) errorIfUnloaded(); this.filterSet = filterSet; } /**
/** * setter for otf should be avoided. Does not fulfill normal semantics. */ protected void setOtf(java.util.Set<ome.model.acquisition.OTF> otf) { if (! _loaded ) errorIfUnloaded(); this.otf = otf; } /**
/** * setter for annotationLinks should be avoided. Does not fulfill normal semantics. */ protected void setAnnotationLinks(java.util.Set<ome.model.annotations.InstrumentAnnotationLink> annotationLinks) { if (! _loaded ) errorIfUnloaded(); this.annotationLinks = annotationLinks; } /**
/** * This version number is controlled by the database for optimisitic * locking. */ @javax.persistence.Column(name="version") // @javax.persistence.Version //TODO mark off #118 if this succeeds, otherwise, completely remove versions and test updateEvent @Override public Integer getVersion() { if (! _loaded ) errorIfUnloaded(); return this.version; }
/** * returns the size of detector. If less than zero, the Set was null. */ public int sizeOfDetector() { if (! _loaded ) errorIfUnloaded(); return this.detector == null ? -1 : this.detector.size(); }
/** * 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 lightSource. If less than zero, the Set was null. */ public int sizeOfLightSource() { if (! _loaded ) errorIfUnloaded(); return this.lightSource == null ? -1 : this.lightSource.size(); }
/** * returns the size of otf. If less than zero, the Set was null. */ public int sizeOfOtf() { if (! _loaded ) errorIfUnloaded(); return this.otf == null ? -1 : this.otf.size(); }
/** * 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.InstrumentAnnotationLink> toRemove = findInstrumentAnnotationLink( removal ); java.util.Iterator<ome.model.annotations.InstrumentAnnotationLink> it = toRemove.iterator(); while ( it.hasNext() ) { removeInstrumentAnnotationLink( it.next(), true ); } }
/** * Returns an unmodifiable collection-view */ public java.util.Collection<ome.model.acquisition.LightSource> unmodifiableLightSource() { if (! _loaded ) errorIfUnloaded(); if ( getLightSource() == null ) { return java.util.Collections.emptyList(); } return java.util.Collections.unmodifiableCollection( getLightSource() ); }
/** * Returns an unmodifiable collection-view */ public java.util.Collection<ome.model.annotations.InstrumentAnnotationLink> unmodifiableAnnotationLinks() { if (! _loaded ) errorIfUnloaded(); if ( getAnnotationLinks() == null ) { return java.util.Collections.emptyList(); } return java.util.Collections.unmodifiableCollection( getAnnotationLinks() ); }
/** * Returns an unmodifiable collection-view */ public java.util.Collection<ome.model.acquisition.Detector> unmodifiableDetector() { if (! _loaded ) errorIfUnloaded(); if ( getDetector() == null ) { return java.util.Collections.emptyList(); } return java.util.Collections.unmodifiableCollection( getDetector() ); }
/** * Returns an unmodifiable collection-view */ public java.util.Collection<ome.model.acquisition.OTF> unmodifiableOtf() { if (! _loaded ) errorIfUnloaded(); if ( getOtf() == null ) { return java.util.Collections.emptyList(); } return java.util.Collections.unmodifiableCollection( getOtf() ); }
/** * Adds a ome.model.annotations.InstrumentAnnotationLink to annotationLinks, allowing for recursion -- whether * or not addInstrumentAnnotationLink will be called on the addition <b>if it is loaded</b> */ public void addInstrumentAnnotationLink (ome.model.annotations.InstrumentAnnotationLink 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.Detector */ public void removeDetector(ome.model.acquisition.Detector target) { if (! _loaded ) errorIfUnloaded(); if (getDetector() == null) { throwNullCollectionException("Detector"); } getDetector().remove( target ); target.setInstrument ( null ); }
/** * removes a single element from this set and makes the inverse call on ome.model.acquisition.FilterSet */ public void removeFilterSet(ome.model.acquisition.FilterSet target) { if (! _loaded ) errorIfUnloaded(); if (getFilterSet() == null) { throwNullCollectionException("FilterSet"); } getFilterSet().remove( target ); target.setInstrument ( null ); }
/** * removes a single element from this set and makes the inverse call on ome.model.acquisition.Filter */ public void removeFilter(ome.model.acquisition.Filter target) { if (! _loaded ) errorIfUnloaded(); if (getFilter() == null) { throwNullCollectionException("Filter"); } getFilter().remove( target ); target.setInstrument ( null ); }
/** * removes a single element from this set and makes the inverse call on ome.model.acquisition.Objective */ public void removeObjective(ome.model.acquisition.Objective target) { if (! _loaded ) errorIfUnloaded(); if (getObjective() == null) { throwNullCollectionException("Objective"); } getObjective().remove( target ); target.setInstrument ( null ); }
/** * removes a single element from this set and makes the inverse call on ome.model.annotations.InstrumentAnnotationLink */ public void removeInstrumentAnnotationLink(ome.model.annotations.InstrumentAnnotationLink target) { if (! _loaded ) errorIfUnloaded(); if (getAnnotationLinks() == null) { throwNullCollectionException("AnnotationLinks"); } getAnnotationLinks().remove( target ); target.setParent ( null ); }