@Entity @Indexed(index="FullText") @ClassBridge(name="details", impl=DetailsFieldBridge.class, index=UN_TOKENIZED, store=NO) public class Instrument extends java.lang.Object implements java.io.Serializable, IObject, IMutable, IAnnotated
Modifier and Type | Class and Description |
---|---|
static class |
Instrument.Details |
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
_dynamicFields |
protected boolean |
_loaded |
protected java.util.Set<InstrumentAnnotationLink> |
annotationLinks |
static java.lang.String |
ANNOTATIONLINKS |
static java.lang.String |
ANNOTATIONLINKSCOUNTPEROWNER |
protected Details |
details |
static java.lang.String |
DETAILS |
protected java.util.Set<Detector> |
detector |
static java.lang.String |
DETECTOR |
protected java.util.Set<Dichroic> |
dichroic |
static java.lang.String |
DICHROIC |
static java.lang.String |
EVENT_FILTER |
static java.lang.String |
EVENT_FILTER_ANNOTATIONLINKS |
static java.lang.String |
EVENT_FILTER_DETECTOR |
static java.lang.String |
EVENT_FILTER_DICHROIC |
static java.lang.String |
EVENT_FILTER_FILTER |
static java.lang.String |
EVENT_FILTER_FILTERSET |
static java.lang.String |
EVENT_FILTER_LIGHTSOURCE |
static java.lang.String |
EVENT_FILTER_OBJECTIVE |
static java.lang.String |
EVENT_FILTER_OTF |
static java.util.Set<java.lang.String> |
FIELDS |
protected java.util.Set<Filter> |
filter |
static java.lang.String |
FILTER |
protected java.util.Set<FilterSet> |
filterSet |
static java.lang.String |
FILTERSET |
static java.lang.String |
GROUP_FILTER |
static java.lang.String |
GROUP_FILTER_ANNOTATIONLINKS |
static java.lang.String |
GROUP_FILTER_DETECTOR |
static java.lang.String |
GROUP_FILTER_DICHROIC |
static java.lang.String |
GROUP_FILTER_FILTER |
static java.lang.String |
GROUP_FILTER_FILTERSET |
static java.lang.String |
GROUP_FILTER_LIGHTSOURCE |
static java.lang.String |
GROUP_FILTER_OBJECTIVE |
static java.lang.String |
GROUP_FILTER_OTF |
protected java.lang.Long |
id |
static java.lang.String |
ID |
protected java.util.Set<LightSource> |
lightSource |
static java.lang.String |
LIGHTSOURCE |
protected Microscope |
microscope |
static java.lang.String |
MICROSCOPE |
protected java.util.Set<Objective> |
objective |
static java.lang.String |
OBJECTIVE |
protected java.util.Set<OTF> |
otf |
static java.lang.String |
OTF |
static java.lang.String |
OWNER_FILTER |
static java.lang.String |
OWNER_FILTER_ANNOTATIONLINKS |
static java.lang.String |
OWNER_FILTER_DETECTOR |
static java.lang.String |
OWNER_FILTER_DICHROIC |
static java.lang.String |
OWNER_FILTER_FILTER |
static java.lang.String |
OWNER_FILTER_FILTERSET |
static java.lang.String |
OWNER_FILTER_LIGHTSOURCE |
static java.lang.String |
OWNER_FILTER_OBJECTIVE |
static java.lang.String |
OWNER_FILTER_OTF |
static java.lang.String |
PERMS_FILTER |
static java.lang.String |
PERMS_FILTER_ANNOTATIONLINKS |
static java.lang.String |
PERMS_FILTER_DETECTOR |
static java.lang.String |
PERMS_FILTER_DICHROIC |
static java.lang.String |
PERMS_FILTER_FILTER |
static java.lang.String |
PERMS_FILTER_FILTERSET |
static java.lang.String |
PERMS_FILTER_LIGHTSOURCE |
static java.lang.String |
PERMS_FILTER_OBJECTIVE |
static java.lang.String |
PERMS_FILTER_OTF |
protected java.lang.Integer |
version |
static java.lang.String |
VERSION |
Modifier | Constructor and Description |
---|---|
|
Instrument() |
protected |
Instrument(java.lang.Long id) |
|
Instrument(java.lang.Long id,
boolean loaded)
Main constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
acceptFilter(Filter __filter) |
void |
addDetector(Detector target)
use instead of setDetector .
|
void |
addDetectorSet(java.util.Collection<Detector> targets)
use like addDetector.
|
void |
addDichroic(Dichroic target)
use instead of setDichroic .
|
void |
addDichroicSet(java.util.Collection<Dichroic> targets)
use like addDichroic.
|
void |
addFilter(Filter target)
use instead of setFilter .
|
void |
addFilterSet(java.util.Collection<Filter> targets)
use like addFilter.
|
void |
addFilterSet(FilterSet target)
use instead of setFilterSet .
|
void |
addFilterSetSet(java.util.Collection<FilterSet> targets)
use like addFilterSet.
|
void |
addInstrumentAnnotationLink(InstrumentAnnotationLink target)
use instead of setAnnotationLinks .
|
void |
addInstrumentAnnotationLink(InstrumentAnnotationLink link,
boolean bothSides)
Adds a ome.model.annotations.InstrumentAnnotationLink to annotationLinks, allowing for recursion -- whether
or not addInstrumentAnnotationLink will be called on the addition if it is loaded
|
void |
addInstrumentAnnotationLinkSet(java.util.Collection<InstrumentAnnotationLink> targets)
use like addInstrumentAnnotationLink.
|
void |
addLightSource(LightSource target)
use instead of setLightSource .
|
void |
addLightSourceSet(java.util.Collection<LightSource> targets)
use like addLightSource.
|
void |
addObjective(Objective target)
use instead of setObjective .
|
void |
addObjectiveSet(java.util.Collection<Objective> targets)
use like addObjective.
|
void |
addOTF(OTF target)
use instead of setOtf .
|
void |
addOTFSet(java.util.Collection<OTF> targets)
use like addOTF.
|
void |
clearAnnotationLinks()
clears the set.
|
void |
clearDetector()
clears the set.
|
void |
clearDichroic()
clears the set.
|
void |
clearFilter()
clears the set.
|
void |
clearFilterSet()
clears the set.
|
void |
clearLightSource()
clears the set.
|
void |
clearObjective()
clears the set.
|
void |
clearOtf()
clears the set.
|
<E> java.util.List<E> |
collectAnnotationLinks(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.annotations.InstrumentAnnotationLink while
collecting the results.
|
<E> java.util.List<E> |
collectDetector(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.acquisition.Detector while
collecting the results.
|
<E> java.util.List<E> |
collectDichroic(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.acquisition.Dichroic while
collecting the results.
|
<E> java.util.List<E> |
collectFilter(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.acquisition.Filter while
collecting the results.
|
<E> java.util.List<E> |
collectFilterSet(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.acquisition.FilterSet while
collecting the results.
|
<E> java.util.List<E> |
collectLightSource(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.acquisition.LightSource while
collecting the results.
|
<E> java.util.List<E> |
collectObjective(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.acquisition.Objective while
collecting the results.
|
<E> java.util.List<E> |
collectOtf(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.acquisition.OTF while
collecting the results.
|
<E> java.util.List<E> |
eachLinkedAnnotation(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.annotations.Annotation while
collecting the results.
|
protected void |
errorIfUnloaded() |
java.util.Set<java.lang.String> |
fields()
returns a Set of field names that belong to this class
|
java.util.Set<InstrumentAnnotationLink> |
findInstrumentAnnotationLink(Annotation target)
find all ome.model.annotations.InstrumentAnnotationLink which have the argument as their child.
|
protected java.util.Set<InstrumentAnnotationLink> |
getAnnotationLinks()
returns annotationLinks .
|
java.util.Map<java.lang.Long,java.lang.Long> |
getAnnotationLinksCountPerOwner()
If fetched, returns the count(*) of ome.model.annotations.InstrumentAnnotationLink that a user has.
|
Details |
getDetails()
The details of this object correspond to low-level system
information.
|
protected java.util.Set<Detector> |
getDetector()
returns detector .
|
protected java.util.Set<Dichroic> |
getDichroic()
returns dichroic .
|
protected java.util.Set<Filter> |
getFilter()
returns filter .
|
protected java.util.Set<FilterSet> |
getFilterSet()
returns filterSet .
|
GraphHolder |
getGraphHolder()
retrieves the
GraphHolder for this entity. |
java.lang.Long |
getId()
The DB unique identifier for this object.
|
protected java.util.Set<LightSource> |
getLightSource()
returns lightSource .
|
Microscope |
getMicroscope()
Many-to-one field ome.model.acquisition.Instrument.microscope (ome.model.acquisition.Microscope)
|
protected java.util.Set<Objective> |
getObjective()
returns objective .
|
protected java.util.Set<OTF> |
getOtf()
returns otf .
|
java.lang.Integer |
getVersion()
This version number is controlled by the database for optimisitic
locking.
|
boolean |
isLoaded()
transient field (not stored in the DB) which specifies whether this
object has been loaded from the DB or is only a wrapper around the ID.
|
boolean |
isValid()
calls the class-specific validator for this instance and returns the
value from
Validation.isValid() |
java.util.Iterator<InstrumentAnnotationLink> |
iterateAnnotationLinks()
should be used rather than accessing the annotationLinks set directly.
|
java.util.Iterator<Detector> |
iterateDetector()
should be used rather than accessing the detector set directly.
|
java.util.Iterator<Dichroic> |
iterateDichroic()
should be used rather than accessing the dichroic set directly.
|
java.util.Iterator<Filter> |
iterateFilter()
should be used rather than accessing the filter set directly.
|
java.util.Iterator<FilterSet> |
iterateFilterSet()
should be used rather than accessing the filterSet set directly.
|
java.util.Iterator<LightSource> |
iterateLightSource()
should be used rather than accessing the lightSource set directly.
|
java.util.Iterator<Objective> |
iterateObjective()
should be used rather than accessing the objective set directly.
|
java.util.Iterator<OTF> |
iterateOtf()
should be used rather than accessing the otf set directly.
|
InstrumentAnnotationLink |
linkAnnotation(Annotation addition)
Adds a ome.model.annotations.InstrumentAnnotationLink to annotationLinks .
|
java.util.Iterator<Annotation> |
linkedAnnotationIterator()
provides an iterator over the parent values of the annotationLinks.
|
java.util.List<Annotation> |
linkedAnnotationList()
produces a
List -copy of the underlying collection. |
Instrument |
newInstance() |
Instrument |
proxy() |
void |
putAt(java.lang.String field,
java.lang.Object value)
stores a value in this instance.
|
void |
removeDetector(Detector target)
removes a single element from this set and makes the inverse call on ome.model.acquisition.Detector
|
void |
removeDetectorSet(java.util.Collection<Detector> targets)
use like removeDetector
|
void |
removeDichroic(Dichroic target)
removes a single element from this set and makes the inverse call on ome.model.acquisition.Dichroic
|
void |
removeDichroicSet(java.util.Collection<Dichroic> targets)
use like removeDichroic
|
void |
removeFilter(Filter target)
removes a single element from this set and makes the inverse call on ome.model.acquisition.Filter
|
void |
removeFilterSet(java.util.Collection<Filter> targets)
use like removeFilter
|
void |
removeFilterSet(FilterSet target)
removes a single element from this set and makes the inverse call on ome.model.acquisition.FilterSet
|
void |
removeFilterSetSet(java.util.Collection<FilterSet> targets)
use like removeFilterSet
|
void |
removeInstrumentAnnotationLink(InstrumentAnnotationLink target)
removes a single element from this set and makes the inverse call on ome.model.annotations.InstrumentAnnotationLink
|
void |
removeInstrumentAnnotationLink(InstrumentAnnotationLink link,
boolean bothSides)
removes the given InstrumentAnnotationLink from annotationLinks, allowing for recursion -- whether
or not the removal will call unlinkInstrument again if loaded.
|
void |
removeInstrumentAnnotationLinkSet(java.util.Collection<InstrumentAnnotationLink> targets)
use like removeInstrumentAnnotationLink
|
void |
removeLightSource(LightSource target)
removes a single element from this set and makes the inverse call on ome.model.acquisition.LightSource
|
void |
removeLightSourceSet(java.util.Collection<LightSource> targets)
use like removeLightSource
|
void |
removeObjective(Objective target)
removes a single element from this set and makes the inverse call on ome.model.acquisition.Objective
|
void |
removeObjectiveSet(java.util.Collection<Objective> targets)
use like removeObjective
|
void |
removeOTF(OTF target)
removes a single element from this set and makes the inverse call on ome.model.acquisition.OTF
|
void |
removeOTFSet(java.util.Collection<OTF> targets)
use like removeOTF
|
java.lang.Object |
retrieve(java.lang.String field)
retrieves a value from this instance.
|
protected void |
setAnnotationLinks(java.util.Set<InstrumentAnnotationLink> annotationLinks)
setter for annotationLinks should be avoided.
|
protected void |
setAnnotationLinksCountPerOwner(java.util.Map<java.lang.Long,java.lang.Long> map) |
protected void |
setDetails(Details details)
Use the
Details.copy(ome.model.internal.Details)
or Details.shallowCopy(ome.model.internal.Details)
methods to set the Instrument.Details instance instead. |
protected void |
setDetector(java.util.Set<Detector> detector)
setter for detector should be avoided.
|
protected void |
setDichroic(java.util.Set<Dichroic> dichroic)
setter for dichroic should be avoided.
|
protected void |
setFilter(java.util.Set<Filter> filter)
setter for filter should be avoided.
|
protected void |
setFilterSet(java.util.Set<FilterSet> filterSet)
setter for filterSet should be avoided.
|
void |
setId(java.lang.Long id)
usually unneeded.
|
protected void |
setLightSource(java.util.Set<LightSource> lightSource)
setter for lightSource should be avoided.
|
void |
setMicroscope(Microscope microscope) |
protected void |
setObjective(java.util.Set<Objective> objective)
setter for objective should be avoided.
|
protected void |
setOtf(java.util.Set<OTF> otf)
setter for otf should be avoided.
|
void |
setVersion(java.lang.Integer version)
use with caution.
|
int |
sizeOfAnnotationLinks()
returns the size of annotationLinks.
|
int |
sizeOfDetector()
returns the size of detector.
|
int |
sizeOfDichroic()
returns the size of dichroic.
|
int |
sizeOfFilter()
returns the size of filter.
|
int |
sizeOfFilterSet()
returns the size of filterSet.
|
int |
sizeOfLightSource()
returns the size of lightSource.
|
int |
sizeOfObjective()
returns the size of objective.
|
int |
sizeOfOtf()
returns the size of otf.
|
protected void |
throwNullCollectionException(java.lang.String propertyName) |
java.lang.String |
toString() |
void |
unlinkAnnotation(Annotation removal)
unlinks all ome.model.annotations.Annotation instances from this instance.
|
void |
unload()
set the loaded field to false, and set all non-ID fields to null.
|
java.util.Collection<InstrumentAnnotationLink> |
unmodifiableAnnotationLinks()
Returns an unmodifiable collection-view
|
java.util.Collection<Detector> |
unmodifiableDetector()
Returns an unmodifiable collection-view
|
java.util.Collection<Dichroic> |
unmodifiableDichroic()
Returns an unmodifiable collection-view
|
java.util.Collection<Filter> |
unmodifiableFilter()
Returns an unmodifiable collection-view
|
java.util.Collection<FilterSet> |
unmodifiableFilterSet()
Returns an unmodifiable collection-view
|
java.util.Collection<LightSource> |
unmodifiableLightSource()
Returns an unmodifiable collection-view
|
java.util.Collection<Objective> |
unmodifiableObjective()
Returns an unmodifiable collection-view
|
java.util.Collection<OTF> |
unmodifiableOtf()
Returns an unmodifiable collection-view
|
Validation |
validate()
calls the class-specific validator for this instance and returns the
Validation object. |
public static final java.lang.String OWNER_FILTER
public static final java.lang.String GROUP_FILTER
public static final java.lang.String EVENT_FILTER
public static final java.lang.String PERMS_FILTER
public static final java.lang.String ID
protected java.lang.Long id
public static final java.lang.String VERSION
protected java.lang.Integer version
protected Microscope microscope
protected java.util.Set<Detector> detector
public static final java.lang.String OWNER_FILTER_DETECTOR
public static final java.lang.String GROUP_FILTER_DETECTOR
public static final java.lang.String EVENT_FILTER_DETECTOR
public static final java.lang.String PERMS_FILTER_DETECTOR
protected java.util.Set<Objective> objective
public static final java.lang.String OWNER_FILTER_OBJECTIVE
public static final java.lang.String GROUP_FILTER_OBJECTIVE
public static final java.lang.String EVENT_FILTER_OBJECTIVE
public static final java.lang.String PERMS_FILTER_OBJECTIVE
protected java.util.Set<LightSource> lightSource
public static final java.lang.String OWNER_FILTER_LIGHTSOURCE
public static final java.lang.String GROUP_FILTER_LIGHTSOURCE
public static final java.lang.String EVENT_FILTER_LIGHTSOURCE
public static final java.lang.String PERMS_FILTER_LIGHTSOURCE
protected java.util.Set<Filter> filter
public static final java.lang.String OWNER_FILTER_FILTER
public static final java.lang.String GROUP_FILTER_FILTER
public static final java.lang.String EVENT_FILTER_FILTER
public static final java.lang.String PERMS_FILTER_FILTER
protected java.util.Set<Dichroic> dichroic
public static final java.lang.String OWNER_FILTER_DICHROIC
public static final java.lang.String GROUP_FILTER_DICHROIC
public static final java.lang.String EVENT_FILTER_DICHROIC
public static final java.lang.String PERMS_FILTER_DICHROIC
protected java.util.Set<FilterSet> filterSet
public static final java.lang.String OWNER_FILTER_FILTERSET
public static final java.lang.String GROUP_FILTER_FILTERSET
public static final java.lang.String EVENT_FILTER_FILTERSET
public static final java.lang.String PERMS_FILTER_FILTERSET
protected java.util.Set<OTF> otf
public static final java.lang.String OWNER_FILTER_OTF
public static final java.lang.String GROUP_FILTER_OTF
public static final java.lang.String EVENT_FILTER_OTF
public static final java.lang.String PERMS_FILTER_OTF
protected java.util.Set<InstrumentAnnotationLink> annotationLinks
public static final java.lang.String OWNER_FILTER_ANNOTATIONLINKS
public static final java.lang.String GROUP_FILTER_ANNOTATIONLINKS
public static final java.lang.String EVENT_FILTER_ANNOTATIONLINKS
public static final java.lang.String PERMS_FILTER_ANNOTATIONLINKS
protected Details details
public static final java.lang.String MICROSCOPE
public static final java.lang.String DETECTOR
public static final java.lang.String OBJECTIVE
public static final java.lang.String LIGHTSOURCE
public static final java.lang.String FILTER
public static final java.lang.String DICHROIC
public static final java.lang.String FILTERSET
public static final java.lang.String OTF
public static final java.lang.String ANNOTATIONLINKSCOUNTPEROWNER
public static final java.lang.String ANNOTATIONLINKS
public static final java.lang.String DETAILS
public static final java.util.Set<java.lang.String> FIELDS
protected java.util.Map<java.lang.String,java.lang.Object> _dynamicFields
protected boolean _loaded
public Instrument()
protected Instrument(java.lang.Long id)
public Instrument(java.lang.Long id, boolean loaded)
@DocumentId public java.lang.Long getId()
public void setId(java.lang.Long id)
IObject
public java.lang.Integer getVersion()
getVersion
in interface IMutable
public void setVersion(java.lang.Integer version)
IMutable
setVersion
in interface IMutable
version
- Value for this objects version.public Microscope getMicroscope()
public void setMicroscope(Microscope microscope)
protected java.util.Set<Detector> getDetector()
protected void setDetector(java.util.Set<Detector> detector)
public int sizeOfDetector()
public java.util.Iterator<Detector> iterateDetector()
EmptyIterator
. To test for a null collection,
see of sizeOfDetector()
is less than zero.public java.util.Collection<Detector> unmodifiableDetector()
public <E> java.util.List<E> collectDetector(CBlock<E> block)
block == null
, then the
iterator values themselves are collected. This method uses
iterateDetector()
internally and so will return a value
even if the underlying collection is null.public void addDetector(Detector target)
public void addDetectorSet(java.util.Collection<Detector> targets)
public void removeDetector(Detector target)
public void removeDetectorSet(java.util.Collection<Detector> targets)
public void clearDetector()
protected java.util.Set<Objective> getObjective()
protected void setObjective(java.util.Set<Objective> objective)
public int sizeOfObjective()
public java.util.Iterator<Objective> iterateObjective()
EmptyIterator
. To test for a null collection,
see of sizeOfObjective()
is less than zero.public java.util.Collection<Objective> unmodifiableObjective()
public <E> java.util.List<E> collectObjective(CBlock<E> block)
block == null
, then the
iterator values themselves are collected. This method uses
iterateObjective()
internally and so will return a value
even if the underlying collection is null.public void addObjective(Objective target)
public void addObjectiveSet(java.util.Collection<Objective> targets)
public void removeObjective(Objective target)
public void removeObjectiveSet(java.util.Collection<Objective> targets)
public void clearObjective()
protected java.util.Set<LightSource> getLightSource()
protected void setLightSource(java.util.Set<LightSource> lightSource)
public int sizeOfLightSource()
public java.util.Iterator<LightSource> iterateLightSource()
EmptyIterator
. To test for a null collection,
see of sizeOfLightSource()
is less than zero.public java.util.Collection<LightSource> unmodifiableLightSource()
public <E> java.util.List<E> collectLightSource(CBlock<E> block)
block == null
, then the
iterator values themselves are collected. This method uses
iterateLightSource()
internally and so will return a value
even if the underlying collection is null.public void addLightSource(LightSource target)
public void addLightSourceSet(java.util.Collection<LightSource> targets)
public void removeLightSource(LightSource target)
public void removeLightSourceSet(java.util.Collection<LightSource> targets)
public void clearLightSource()
protected java.util.Set<Filter> getFilter()
protected void setFilter(java.util.Set<Filter> filter)
public int sizeOfFilter()
public java.util.Iterator<Filter> iterateFilter()
EmptyIterator
. To test for a null collection,
see of sizeOfFilter()
is less than zero.public java.util.Collection<Filter> unmodifiableFilter()
public <E> java.util.List<E> collectFilter(CBlock<E> block)
block == null
, then the
iterator values themselves are collected. This method uses
iterateFilter()
internally and so will return a value
even if the underlying collection is null.public void addFilter(Filter target)
public void addFilterSet(java.util.Collection<Filter> targets)
public void removeFilter(Filter target)
public void removeFilterSet(java.util.Collection<Filter> targets)
public void clearFilter()
protected java.util.Set<Dichroic> getDichroic()
protected void setDichroic(java.util.Set<Dichroic> dichroic)
public int sizeOfDichroic()
public java.util.Iterator<Dichroic> iterateDichroic()
EmptyIterator
. To test for a null collection,
see of sizeOfDichroic()
is less than zero.public java.util.Collection<Dichroic> unmodifiableDichroic()
public <E> java.util.List<E> collectDichroic(CBlock<E> block)
block == null
, then the
iterator values themselves are collected. This method uses
iterateDichroic()
internally and so will return a value
even if the underlying collection is null.public void addDichroic(Dichroic target)
public void addDichroicSet(java.util.Collection<Dichroic> targets)
public void removeDichroic(Dichroic target)
public void removeDichroicSet(java.util.Collection<Dichroic> targets)
public void clearDichroic()
protected java.util.Set<FilterSet> getFilterSet()
protected void setFilterSet(java.util.Set<FilterSet> filterSet)
public int sizeOfFilterSet()
public java.util.Iterator<FilterSet> iterateFilterSet()
EmptyIterator
. To test for a null collection,
see of sizeOfFilterSet()
is less than zero.public java.util.Collection<FilterSet> unmodifiableFilterSet()
public <E> java.util.List<E> collectFilterSet(CBlock<E> block)
block == null
, then the
iterator values themselves are collected. This method uses
iterateFilterSet()
internally and so will return a value
even if the underlying collection is null.public void addFilterSet(FilterSet target)
public void addFilterSetSet(java.util.Collection<FilterSet> targets)
public void removeFilterSet(FilterSet target)
public void removeFilterSetSet(java.util.Collection<FilterSet> targets)
public void clearFilterSet()
protected java.util.Set<OTF> getOtf()
protected void setOtf(java.util.Set<OTF> otf)
public int sizeOfOtf()
public java.util.Iterator<OTF> iterateOtf()
EmptyIterator
. To test for a null collection,
see of sizeOfOtf()
is less than zero.public java.util.Collection<OTF> unmodifiableOtf()
public <E> java.util.List<E> collectOtf(CBlock<E> block)
block == null
, then the
iterator values themselves are collected. This method uses
iterateOtf()
internally and so will return a value
even if the underlying collection is null.public void addOTF(OTF target)
public void addOTFSet(java.util.Collection<OTF> targets)
public void removeOTF(OTF target)
public void removeOTFSet(java.util.Collection<OTF> targets)
public void clearOtf()
protected java.util.Set<InstrumentAnnotationLink> getAnnotationLinks()
protected void setAnnotationLinks(java.util.Set<InstrumentAnnotationLink> annotationLinks)
public int sizeOfAnnotationLinks()
sizeOfAnnotationLinks
in interface IAnnotated
public java.util.Iterator<InstrumentAnnotationLink> iterateAnnotationLinks()
EmptyIterator
. To test for a null collection,
see of sizeOfAnnotationLinks()
is less than zero.iterateAnnotationLinks
in interface IAnnotated
public java.util.Collection<InstrumentAnnotationLink> unmodifiableAnnotationLinks()
unmodifiableAnnotationLinks
in interface IAnnotated
public <E> java.util.List<E> collectAnnotationLinks(CBlock<E> block)
block == null
, then the
iterator values themselves are collected. This method uses
iterateAnnotationLinks()
internally and so will return a value
even if the underlying collection is null.collectAnnotationLinks
in interface IAnnotated
public void addInstrumentAnnotationLink(InstrumentAnnotationLink target)
public void addInstrumentAnnotationLinkSet(java.util.Collection<InstrumentAnnotationLink> targets)
public void removeInstrumentAnnotationLink(InstrumentAnnotationLink target)
public void removeInstrumentAnnotationLinkSet(java.util.Collection<InstrumentAnnotationLink> targets)
public InstrumentAnnotationLink linkAnnotation(Annotation addition)
linkAnnotation
in interface IAnnotated
public void addInstrumentAnnotationLink(InstrumentAnnotationLink link, boolean bothSides)
public java.util.Iterator<Annotation> linkedAnnotationIterator()
ConcurrentModificationException
.
Use linkedAnnotationList()
instead.linkedAnnotationIterator
in interface IAnnotated
public java.util.Set<InstrumentAnnotationLink> findInstrumentAnnotationLink(Annotation target)
public java.util.List<Annotation> linkedAnnotationList()
List
-copy of the underlying collection. Unlike,
linkedAnnotationIterator()
, while using the returned List
,
modifications can be made to the underlying collection without throwing
ConcurrentModificationException
.linkedAnnotationList
in interface IAnnotated
public <E> java.util.List<E> eachLinkedAnnotation(CBlock<E> block)
block == null
, then the
iterator values themselves are collected.eachLinkedAnnotation
in interface IAnnotated
public void unlinkAnnotation(Annotation removal)
unlinkAnnotation
in interface IAnnotated
public void removeInstrumentAnnotationLink(InstrumentAnnotationLink link, boolean bothSides)
public void clearAnnotationLinks()
clearAnnotationLinks
in interface IAnnotated
protected void setAnnotationLinksCountPerOwner(java.util.Map<java.lang.Long,java.lang.Long> map)
public java.util.Map<java.lang.Long,java.lang.Long> getAnnotationLinksCountPerOwner()
public Details getDetails()
Details
type.getDetails
in interface IObject
protected void setDetails(Details details)
Details.copy(ome.model.internal.Details)
or Details.shallowCopy(ome.model.internal.Details)
methods to set the Instrument.Details
instance instead.public boolean isValid()
IObject
Validation.isValid()
public Validation validate()
IObject
Validation
object.public Instrument newInstance()
public Instrument proxy()
public boolean acceptFilter(Filter __filter)
acceptFilter
in interface Filterable
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Set<java.lang.String> fields()
IObject
public java.lang.Object retrieve(java.lang.String field)
IObject
field
which match a field of this instance will be delegated to the accessors.
Otherwise, values will be retrieved from a lazy-loaded map filled by
calls to IObject.putAt(String, Object)
public void putAt(java.lang.String field, java.lang.Object value)
IObject
field
which
match a field of this instance will be delegated to the accessors.
Otherwise, values will be stored in a lazy-loaded map.public boolean isLoaded()
IObject
protected void errorIfUnloaded()
public void unload()
IObject
public final GraphHolder getGraphHolder()
IObject
GraphHolder
for this entity. If the GraphHolder has
not been actively set, a new one will be instatiated.getGraphHolder
in interface IObject
protected void throwNullCollectionException(java.lang.String propertyName)
Version: 5.4.10-ice35-b105
Copyright © 2019 The University of Dundee & Open Microscopy Environment. All Rights Reserved.