@Entity @Indexed(index="FullText") @ClassBridge(name="details", impl=DetailsFieldBridge.class, index=UN_TOKENIZED, store=NO) public class FilterSet extends java.lang.Object implements java.io.Serializable, IObject, IMutable
Modifier and Type | Class and Description |
---|---|
static class |
FilterSet.Details |
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
_dynamicFields |
protected boolean |
_loaded |
protected Details |
details |
static java.lang.String |
DETAILS |
protected Dichroic |
dichroic |
static java.lang.String |
DICHROIC |
protected java.util.Set<FilterSetEmissionFilterLink> |
emissionFilterLink |
static java.lang.String |
EMISSIONFILTERLINK |
static java.lang.String |
EMISSIONFILTERLINKCOUNTPEROWNER |
static java.lang.String |
EVENT_FILTER |
static java.lang.String |
EVENT_FILTER_EMISSIONFILTERLINK |
static java.lang.String |
EVENT_FILTER_EXCITATIONFILTERLINK |
protected java.util.Set<FilterSetExcitationFilterLink> |
excitationFilterLink |
static java.lang.String |
EXCITATIONFILTERLINK |
static java.lang.String |
EXCITATIONFILTERLINKCOUNTPEROWNER |
static java.util.Set<java.lang.String> |
FIELDS |
static java.lang.String |
GROUP_FILTER |
static java.lang.String |
GROUP_FILTER_EMISSIONFILTERLINK |
static java.lang.String |
GROUP_FILTER_EXCITATIONFILTERLINK |
protected java.lang.Long |
id |
static java.lang.String |
ID |
protected Instrument |
instrument |
static java.lang.String |
INSTRUMENT |
protected java.lang.String |
lotNumber |
static java.lang.String |
LOTNUMBER |
protected java.lang.String |
manufacturer |
static java.lang.String |
MANUFACTURER |
protected java.lang.String |
model |
static java.lang.String |
MODEL |
static java.lang.String |
OWNER_FILTER |
static java.lang.String |
OWNER_FILTER_EMISSIONFILTERLINK |
static java.lang.String |
OWNER_FILTER_EXCITATIONFILTERLINK |
static java.lang.String |
PERMS_FILTER |
static java.lang.String |
PERMS_FILTER_EMISSIONFILTERLINK |
static java.lang.String |
PERMS_FILTER_EXCITATIONFILTERLINK |
protected java.lang.String |
serialNumber |
static java.lang.String |
SERIALNUMBER |
protected java.lang.Integer |
version |
static java.lang.String |
VERSION |
Modifier | Constructor and Description |
---|---|
|
FilterSet() |
|
FilterSet(Instrument _instrument) |
protected |
FilterSet(java.lang.Long id) |
|
FilterSet(java.lang.Long id,
boolean loaded)
Main constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
acceptFilter(Filter __filter) |
void |
addFilterSetEmissionFilterLink(FilterSetEmissionFilterLink target)
use instead of setEmissionFilterLink .
|
void |
addFilterSetEmissionFilterLink(FilterSetEmissionFilterLink link,
boolean bothSides)
Adds a ome.model.acquisition.FilterSetEmissionFilterLink to emissionFilterLink, allowing for recursion -- whether
or not addFilterSetEmissionFilterLink will be called on the addition if it is loaded
|
void |
addFilterSetEmissionFilterLinkSet(java.util.Collection<FilterSetEmissionFilterLink> targets)
use like addFilterSetEmissionFilterLink.
|
void |
addFilterSetExcitationFilterLink(FilterSetExcitationFilterLink target)
use instead of setExcitationFilterLink .
|
void |
addFilterSetExcitationFilterLink(FilterSetExcitationFilterLink link,
boolean bothSides)
Adds a ome.model.acquisition.FilterSetExcitationFilterLink to excitationFilterLink, allowing for recursion -- whether
or not addFilterSetExcitationFilterLink will be called on the addition if it is loaded
|
void |
addFilterSetExcitationFilterLinkSet(java.util.Collection<FilterSetExcitationFilterLink> targets)
use like addFilterSetExcitationFilterLink.
|
void |
clearEmissionFilterLinks()
clears the set.
|
void |
clearExcitationFilterLinks()
clears the set.
|
<E> java.util.List<E> |
collectEmissionFilterLink(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.acquisition.FilterSetEmissionFilterLink while
collecting the results.
|
<E> java.util.List<E> |
collectExcitationFilterLink(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.acquisition.FilterSetExcitationFilterLink while
collecting the results.
|
<E> java.util.List<E> |
eachLinkedEmissionFilter(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> |
eachLinkedExcitationFilter(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.acquisition.Filter 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<FilterSetEmissionFilterLink> |
findFilterSetEmissionFilterLink(Filter target)
find all ome.model.acquisition.FilterSetEmissionFilterLink which have the argument as their child.
|
java.util.Set<FilterSetExcitationFilterLink> |
findFilterSetExcitationFilterLink(Filter target)
find all ome.model.acquisition.FilterSetExcitationFilterLink which have the argument as their child.
|
Details |
getDetails()
The details of this object correspond to low-level system
information.
|
Dichroic |
getDichroic()
Many-to-one field ome.model.acquisition.FilterSet.dichroic (ome.model.acquisition.Dichroic)
|
protected java.util.Set<FilterSetEmissionFilterLink> |
getEmissionFilterLink()
returns emissionFilterLink .
|
java.util.Map<java.lang.Long,java.lang.Long> |
getEmissionFilterLinkCountPerOwner()
If fetched, returns the count(*) of ome.model.acquisition.FilterSetEmissionFilterLink that a user has.
|
protected java.util.Set<FilterSetExcitationFilterLink> |
getExcitationFilterLink()
returns excitationFilterLink .
|
java.util.Map<java.lang.Long,java.lang.Long> |
getExcitationFilterLinkCountPerOwner()
If fetched, returns the count(*) of ome.model.acquisition.FilterSetExcitationFilterLink that a user has.
|
GraphHolder |
getGraphHolder()
retrieves the
GraphHolder for this entity. |
java.lang.Long |
getId()
The DB unique identifier for this object.
|
Instrument |
getInstrument()
Many-to-one field ome.model.acquisition.FilterSet.instrument (ome.model.acquisition.Instrument)
|
java.lang.String |
getLotNumber()
Simple field ome.model.acquisition.FilterSet.lotNumber (java.lang.String)
|
java.lang.String |
getManufacturer()
Simple field ome.model.acquisition.FilterSet.manufacturer (java.lang.String)
|
java.lang.String |
getModel()
Simple field ome.model.acquisition.FilterSet.model (java.lang.String)
|
java.lang.String |
getSerialNumber()
Simple field ome.model.acquisition.FilterSet.serialNumber (java.lang.String)
|
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<FilterSetEmissionFilterLink> |
iterateEmissionFilterLink()
should be used rather than accessing the emissionFilterLink set directly.
|
java.util.Iterator<FilterSetExcitationFilterLink> |
iterateExcitationFilterLink()
should be used rather than accessing the excitationFilterLink set directly.
|
java.util.Iterator<Filter> |
linkedEmissionFilterIterator()
provides an iterator over the parent values of the emissionFilterLink.
|
java.util.List<Filter> |
linkedEmissionFilterList()
produces a
List -copy of the underlying collection. |
java.util.Iterator<Filter> |
linkedExcitationFilterIterator()
provides an iterator over the parent values of the excitationFilterLink.
|
java.util.List<Filter> |
linkedExcitationFilterList()
produces a
List -copy of the underlying collection. |
FilterSetEmissionFilterLink |
linkEmissionFilter(Filter addition)
Adds a ome.model.acquisition.FilterSetEmissionFilterLink to emissionFilterLink .
|
FilterSetExcitationFilterLink |
linkExcitationFilter(Filter addition)
Adds a ome.model.acquisition.FilterSetExcitationFilterLink to excitationFilterLink .
|
FilterSet |
newInstance() |
FilterSet |
proxy() |
void |
putAt(java.lang.String field,
java.lang.Object value)
stores a value in this instance.
|
void |
removeFilterSetEmissionFilterLink(FilterSetEmissionFilterLink target)
removes a single element from this set and makes the inverse call on ome.model.acquisition.FilterSetEmissionFilterLink
|
void |
removeFilterSetEmissionFilterLink(FilterSetEmissionFilterLink link,
boolean bothSides)
removes the given FilterSetEmissionFilterLink from emissionFilterLink, allowing for recursion -- whether
or not the removal will call unlinkFilterSet again if loaded.
|
void |
removeFilterSetEmissionFilterLinkSet(java.util.Collection<FilterSetEmissionFilterLink> targets)
use like removeFilterSetEmissionFilterLink
|
void |
removeFilterSetExcitationFilterLink(FilterSetExcitationFilterLink target)
removes a single element from this set and makes the inverse call on ome.model.acquisition.FilterSetExcitationFilterLink
|
void |
removeFilterSetExcitationFilterLink(FilterSetExcitationFilterLink link,
boolean bothSides)
removes the given FilterSetExcitationFilterLink from excitationFilterLink, allowing for recursion -- whether
or not the removal will call unlinkFilterSet again if loaded.
|
void |
removeFilterSetExcitationFilterLinkSet(java.util.Collection<FilterSetExcitationFilterLink> targets)
use like removeFilterSetExcitationFilterLink
|
java.lang.Object |
retrieve(java.lang.String field)
retrieves a value from this instance.
|
protected void |
setDetails(Details details)
Use the
Details.copy(ome.model.internal.Details)
or Details.shallowCopy(ome.model.internal.Details)
methods to set the FilterSet.Details instance instead. |
void |
setDichroic(Dichroic dichroic) |
protected void |
setEmissionFilterLink(java.util.Set<FilterSetEmissionFilterLink> emissionFilterLink)
setter for emissionFilterLink should be avoided.
|
protected void |
setEmissionFilterLinkCountPerOwner(java.util.Map<java.lang.Long,java.lang.Long> map) |
protected void |
setExcitationFilterLink(java.util.Set<FilterSetExcitationFilterLink> excitationFilterLink)
setter for excitationFilterLink should be avoided.
|
protected void |
setExcitationFilterLinkCountPerOwner(java.util.Map<java.lang.Long,java.lang.Long> map) |
void |
setId(java.lang.Long id)
usually unneeded.
|
void |
setInstrument(Instrument instrument) |
void |
setLotNumber(java.lang.String lotNumber) |
void |
setManufacturer(java.lang.String manufacturer) |
void |
setModel(java.lang.String model) |
void |
setSerialNumber(java.lang.String serialNumber) |
void |
setVersion(java.lang.Integer version)
use with caution.
|
int |
sizeOfEmissionFilterLink()
returns the size of emissionFilterLink.
|
int |
sizeOfExcitationFilterLink()
returns the size of excitationFilterLink.
|
protected void |
throwNullCollectionException(java.lang.String propertyName) |
java.lang.String |
toString() |
void |
unlinkEmissionFilter(Filter removal)
unlinks all ome.model.acquisition.Filter instances from this instance.
|
void |
unlinkExcitationFilter(Filter removal)
unlinks all ome.model.acquisition.Filter instances from this instance.
|
void |
unload()
set the loaded field to false, and set all non-ID fields to null.
|
java.util.Collection<FilterSetEmissionFilterLink> |
unmodifiableEmissionFilterLink()
Returns an unmodifiable collection-view
|
java.util.Collection<FilterSetExcitationFilterLink> |
unmodifiableExcitationFilterLink()
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 java.lang.String manufacturer
protected java.lang.String model
protected java.lang.String lotNumber
protected java.lang.String serialNumber
protected Instrument instrument
protected java.util.Set<FilterSetExcitationFilterLink> excitationFilterLink
public static final java.lang.String OWNER_FILTER_EXCITATIONFILTERLINK
public static final java.lang.String GROUP_FILTER_EXCITATIONFILTERLINK
public static final java.lang.String EVENT_FILTER_EXCITATIONFILTERLINK
public static final java.lang.String PERMS_FILTER_EXCITATIONFILTERLINK
protected Dichroic dichroic
protected java.util.Set<FilterSetEmissionFilterLink> emissionFilterLink
public static final java.lang.String OWNER_FILTER_EMISSIONFILTERLINK
public static final java.lang.String GROUP_FILTER_EMISSIONFILTERLINK
public static final java.lang.String EVENT_FILTER_EMISSIONFILTERLINK
public static final java.lang.String PERMS_FILTER_EMISSIONFILTERLINK
protected Details details
public static final java.lang.String MANUFACTURER
public static final java.lang.String MODEL
public static final java.lang.String LOTNUMBER
public static final java.lang.String SERIALNUMBER
public static final java.lang.String INSTRUMENT
public static final java.lang.String EXCITATIONFILTERLINKCOUNTPEROWNER
public static final java.lang.String EXCITATIONFILTERLINK
public static final java.lang.String DICHROIC
public static final java.lang.String EMISSIONFILTERLINKCOUNTPEROWNER
public static final java.lang.String EMISSIONFILTERLINK
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 FilterSet()
protected FilterSet(java.lang.Long id)
public FilterSet(java.lang.Long id, boolean loaded)
public FilterSet(Instrument _instrument)
@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.@Field(index=TOKENIZED) @Field(index=TOKENIZED,name="combined_fields") public java.lang.String getManufacturer()
public void setManufacturer(java.lang.String manufacturer)
@Field(index=TOKENIZED) @Field(index=TOKENIZED,name="combined_fields") public java.lang.String getModel()
public void setModel(java.lang.String model)
@Field(index=TOKENIZED) @Field(index=TOKENIZED,name="combined_fields") public java.lang.String getLotNumber()
public void setLotNumber(java.lang.String lotNumber)
@Field(index=TOKENIZED) @Field(index=TOKENIZED,name="combined_fields") public java.lang.String getSerialNumber()
public void setSerialNumber(java.lang.String serialNumber)
public Instrument getInstrument()
public void setInstrument(Instrument instrument)
protected java.util.Set<FilterSetExcitationFilterLink> getExcitationFilterLink()
protected void setExcitationFilterLink(java.util.Set<FilterSetExcitationFilterLink> excitationFilterLink)
public int sizeOfExcitationFilterLink()
public java.util.Iterator<FilterSetExcitationFilterLink> iterateExcitationFilterLink()
EmptyIterator
. To test for a null collection,
see of sizeOfExcitationFilterLink()
is less than zero.public java.util.Collection<FilterSetExcitationFilterLink> unmodifiableExcitationFilterLink()
public <E> java.util.List<E> collectExcitationFilterLink(CBlock<E> block)
block == null
, then the
iterator values themselves are collected. This method uses
iterateExcitationFilterLink()
internally and so will return a value
even if the underlying collection is null.public void addFilterSetExcitationFilterLink(FilterSetExcitationFilterLink target)
public void addFilterSetExcitationFilterLinkSet(java.util.Collection<FilterSetExcitationFilterLink> targets)
public void removeFilterSetExcitationFilterLink(FilterSetExcitationFilterLink target)
public void removeFilterSetExcitationFilterLinkSet(java.util.Collection<FilterSetExcitationFilterLink> targets)
public FilterSetExcitationFilterLink linkExcitationFilter(Filter addition)
public void addFilterSetExcitationFilterLink(FilterSetExcitationFilterLink link, boolean bothSides)
public java.util.Iterator<Filter> linkedExcitationFilterIterator()
ConcurrentModificationException
.
Use linkedExcitationFilterList()
instead.public java.util.Set<FilterSetExcitationFilterLink> findFilterSetExcitationFilterLink(Filter target)
public java.util.List<Filter> linkedExcitationFilterList()
List
-copy of the underlying collection. Unlike,
linkedExcitationFilterIterator()
, while using the returned List
,
modifications can be made to the underlying collection without throwing
ConcurrentModificationException
.public <E> java.util.List<E> eachLinkedExcitationFilter(CBlock<E> block)
block == null
, then the
iterator values themselves are collected.public void unlinkExcitationFilter(Filter removal)
public void removeFilterSetExcitationFilterLink(FilterSetExcitationFilterLink link, boolean bothSides)
public void clearExcitationFilterLinks()
protected void setExcitationFilterLinkCountPerOwner(java.util.Map<java.lang.Long,java.lang.Long> map)
public java.util.Map<java.lang.Long,java.lang.Long> getExcitationFilterLinkCountPerOwner()
public Dichroic getDichroic()
public void setDichroic(Dichroic dichroic)
protected java.util.Set<FilterSetEmissionFilterLink> getEmissionFilterLink()
protected void setEmissionFilterLink(java.util.Set<FilterSetEmissionFilterLink> emissionFilterLink)
public int sizeOfEmissionFilterLink()
public java.util.Iterator<FilterSetEmissionFilterLink> iterateEmissionFilterLink()
EmptyIterator
. To test for a null collection,
see of sizeOfEmissionFilterLink()
is less than zero.public java.util.Collection<FilterSetEmissionFilterLink> unmodifiableEmissionFilterLink()
public <E> java.util.List<E> collectEmissionFilterLink(CBlock<E> block)
block == null
, then the
iterator values themselves are collected. This method uses
iterateEmissionFilterLink()
internally and so will return a value
even if the underlying collection is null.public void addFilterSetEmissionFilterLink(FilterSetEmissionFilterLink target)
public void addFilterSetEmissionFilterLinkSet(java.util.Collection<FilterSetEmissionFilterLink> targets)
public void removeFilterSetEmissionFilterLink(FilterSetEmissionFilterLink target)
public void removeFilterSetEmissionFilterLinkSet(java.util.Collection<FilterSetEmissionFilterLink> targets)
public FilterSetEmissionFilterLink linkEmissionFilter(Filter addition)
public void addFilterSetEmissionFilterLink(FilterSetEmissionFilterLink link, boolean bothSides)
public java.util.Iterator<Filter> linkedEmissionFilterIterator()
ConcurrentModificationException
.
Use linkedEmissionFilterList()
instead.public java.util.Set<FilterSetEmissionFilterLink> findFilterSetEmissionFilterLink(Filter target)
public java.util.List<Filter> linkedEmissionFilterList()
List
-copy of the underlying collection. Unlike,
linkedEmissionFilterIterator()
, while using the returned List
,
modifications can be made to the underlying collection without throwing
ConcurrentModificationException
.public <E> java.util.List<E> eachLinkedEmissionFilter(CBlock<E> block)
block == null
, then the
iterator values themselves are collected.public void unlinkEmissionFilter(Filter removal)
public void removeFilterSetEmissionFilterLink(FilterSetEmissionFilterLink link, boolean bothSides)
public void clearEmissionFilterLinks()
protected void setEmissionFilterLinkCountPerOwner(java.util.Map<java.lang.Long,java.lang.Long> map)
public java.util.Map<java.lang.Long,java.lang.Long> getEmissionFilterLinkCountPerOwner()
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 FilterSet.Details
instance instead.public boolean isValid()
IObject
Validation.isValid()
public Validation validate()
IObject
Validation
object.public FilterSet newInstance()
public FilterSet 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.4-ice35-b82
Copyright © 2018 The University of Dundee & Open Microscopy Environment. All Rights Reserved.