@Entity @Indexed(index="FullText") @ClassBridge(name="details", impl=DetailsFieldBridge.class, index=UN_TOKENIZED, store=NO) public class Filter extends Object implements Serializable, IObject, IMutable, IAnnotated
Modifier and Type | Class and Description |
---|---|
static class |
Filter.Details |
Modifier | Constructor and Description |
---|---|
|
Filter() |
|
Filter(Instrument _instrument) |
protected |
Filter(Long id) |
|
Filter(Long id,
boolean loaded)
Main constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
acceptFilter(Filter __filter) |
void |
addFilterAnnotationLink(FilterAnnotationLink target)
use instead of setAnnotationLinks .
|
void |
addFilterAnnotationLink(FilterAnnotationLink link,
boolean bothSides)
Adds a ome.model.annotations.FilterAnnotationLink to annotationLinks, allowing for recursion -- whether
or not addFilterAnnotationLink will be called on the addition if it is loaded
|
void |
addFilterAnnotationLinkSet(Collection<FilterAnnotationLink> targets)
use like addFilterAnnotationLink.
|
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(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(Collection<FilterSetExcitationFilterLink> targets)
use like addFilterSetExcitationFilterLink.
|
void |
clearAnnotationLinks()
clears the set.
|
void |
clearEmissionFilterLinks()
clears the set.
|
void |
clearExcitationFilterLinks()
clears the set.
|
<E> List<E> |
collectAnnotationLinks(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.annotations.FilterAnnotationLink while
collecting the results.
|
<E> 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> 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> List<E> |
eachLinkedAnnotation(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.annotations.Annotation while
collecting the results.
|
<E> List<E> |
eachLinkedEmissionFilter(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.acquisition.FilterSet while
collecting the results.
|
<E> List<E> |
eachLinkedExcitationFilter(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.acquisition.FilterSet while
collecting the results.
|
protected void |
errorIfUnloaded() |
Set<String> |
fields()
returns a Set of field names that belong to this class
|
Set<FilterAnnotationLink> |
findFilterAnnotationLink(Annotation target)
find all ome.model.annotations.FilterAnnotationLink which have the argument as their child.
|
Set<FilterSetEmissionFilterLink> |
findFilterSetEmissionFilterLink(FilterSet target)
find all ome.model.acquisition.FilterSetEmissionFilterLink which have the argument as their parent.
|
Set<FilterSetExcitationFilterLink> |
findFilterSetExcitationFilterLink(FilterSet target)
find all ome.model.acquisition.FilterSetExcitationFilterLink which have the argument as their parent.
|
protected Set<FilterAnnotationLink> |
getAnnotationLinks()
returns annotationLinks .
|
Map<Long,Long> |
getAnnotationLinksCountPerOwner()
If fetched, returns the count(*) of ome.model.annotations.FilterAnnotationLink that a user has.
|
Details |
getDetails()
The details of this object correspond to low-level system
information.
|
protected Set<FilterSetEmissionFilterLink> |
getEmissionFilterLink()
returns emissionFilterLink .
|
Map<Long,Long> |
getEmissionFilterLinkCountPerOwner()
If fetched, returns the count(*) of ome.model.acquisition.FilterSetEmissionFilterLink that a user has.
|
protected Set<FilterSetExcitationFilterLink> |
getExcitationFilterLink()
returns excitationFilterLink .
|
Map<Long,Long> |
getExcitationFilterLinkCountPerOwner()
If fetched, returns the count(*) of ome.model.acquisition.FilterSetExcitationFilterLink that a user has.
|
String |
getFilterWheel()
Simple field ome.model.acquisition.Filter.filterWheel (java.lang.String)
|
GraphHolder |
getGraphHolder()
retrieves the
GraphHolder for this entity. |
Long |
getId()
The DB unique identifier for this object.
|
Instrument |
getInstrument()
Many-to-one field ome.model.acquisition.Filter.instrument (ome.model.acquisition.Instrument)
|
String |
getLotNumber()
Simple field ome.model.acquisition.Filter.lotNumber (java.lang.String)
|
String |
getManufacturer()
Simple field ome.model.acquisition.Filter.manufacturer (java.lang.String)
|
String |
getModel()
Simple field ome.model.acquisition.Filter.model (java.lang.String)
|
String |
getSerialNumber()
Simple field ome.model.acquisition.Filter.serialNumber (java.lang.String)
|
TransmittanceRange |
getTransmittanceRange()
Many-to-one field ome.model.acquisition.Filter.transmittanceRange (ome.model.acquisition.TransmittanceRange)
|
FilterType |
getType()
Many-to-one field ome.model.acquisition.Filter.type (ome.model.enums.FilterType)
|
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() |
Iterator<FilterAnnotationLink> |
iterateAnnotationLinks()
should be used rather than accessing the annotationLinks set directly.
|
Iterator<FilterSetEmissionFilterLink> |
iterateEmissionFilterLink()
should be used rather than accessing the emissionFilterLink set directly.
|
Iterator<FilterSetExcitationFilterLink> |
iterateExcitationFilterLink()
should be used rather than accessing the excitationFilterLink set directly.
|
FilterAnnotationLink |
linkAnnotation(Annotation addition)
Adds a ome.model.annotations.FilterAnnotationLink to annotationLinks .
|
Iterator<Annotation> |
linkedAnnotationIterator()
provides an iterator over the parent values of the annotationLinks.
|
List<Annotation> |
linkedAnnotationList()
produces a
List -copy of the underlying collection. |
Iterator<FilterSet> |
linkedEmissionFilterIterator()
provides an iterator over the child values of the emissionFilterLink.
|
List<FilterSet> |
linkedEmissionFilterList()
produces a
List -copy of the underlying collection. |
Iterator<FilterSet> |
linkedExcitationFilterIterator()
provides an iterator over the child values of the excitationFilterLink.
|
List<FilterSet> |
linkedExcitationFilterList()
produces a
List -copy of the underlying collection. |
FilterSetEmissionFilterLink |
linkEmissionFilter(FilterSet addition)
Adds a ome.model.acquisition.FilterSetEmissionFilterLink to emissionFilterLink .
|
FilterSetExcitationFilterLink |
linkExcitationFilter(FilterSet addition)
Adds a ome.model.acquisition.FilterSetExcitationFilterLink to excitationFilterLink .
|
Filter |
newInstance() |
Filter |
proxy() |
void |
putAt(String field,
Object value)
stores a value in this instance.
|
void |
removeFilterAnnotationLink(FilterAnnotationLink target)
removes a single element from this set and makes the inverse call on ome.model.annotations.FilterAnnotationLink
|
void |
removeFilterAnnotationLink(FilterAnnotationLink link,
boolean bothSides)
removes the given FilterAnnotationLink from annotationLinks, allowing for recursion -- whether
or not the removal will call unlinkFilter again if loaded.
|
void |
removeFilterAnnotationLinkSet(Collection<FilterAnnotationLink> targets)
use like removeFilterAnnotationLink
|
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 unlinkFilter again if loaded.
|
void |
removeFilterSetEmissionFilterLinkSet(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 unlinkFilter again if loaded.
|
void |
removeFilterSetExcitationFilterLinkSet(Collection<FilterSetExcitationFilterLink> targets)
use like removeFilterSetExcitationFilterLink
|
Object |
retrieve(String field)
retrieves a value from this instance.
|
protected void |
setAnnotationLinks(Set<FilterAnnotationLink> annotationLinks)
setter for annotationLinks should be avoided.
|
protected void |
setAnnotationLinksCountPerOwner(Map<Long,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 Filter.Details instance instead. |
protected void |
setEmissionFilterLink(Set<FilterSetEmissionFilterLink> emissionFilterLink)
setter for emissionFilterLink should be avoided.
|
protected void |
setEmissionFilterLinkCountPerOwner(Map<Long,Long> map) |
protected void |
setExcitationFilterLink(Set<FilterSetExcitationFilterLink> excitationFilterLink)
setter for excitationFilterLink should be avoided.
|
protected void |
setExcitationFilterLinkCountPerOwner(Map<Long,Long> map) |
void |
setFilterWheel(String filterWheel) |
void |
setId(Long id)
usually unneeded.
|
void |
setInstrument(Instrument instrument) |
void |
setLotNumber(String lotNumber) |
void |
setManufacturer(String manufacturer) |
void |
setModel(String model) |
void |
setSerialNumber(String serialNumber) |
void |
setTransmittanceRange(TransmittanceRange transmittanceRange) |
void |
setType(FilterType type) |
void |
setVersion(Integer version)
use with caution.
|
int |
sizeOfAnnotationLinks()
returns the size of annotationLinks.
|
int |
sizeOfEmissionFilterLink()
returns the size of emissionFilterLink.
|
int |
sizeOfExcitationFilterLink()
returns the size of excitationFilterLink.
|
protected void |
throwNullCollectionException(String propertyName) |
String |
toString() |
void |
unlinkAnnotation(Annotation removal)
unlinks all ome.model.annotations.Annotation instances from this instance.
|
void |
unlinkEmissionFilter(FilterSet removal)
unlinks all ome.model.acquisition.FilterSet instances from this instance.
|
void |
unlinkExcitationFilter(FilterSet removal)
unlinks all ome.model.acquisition.FilterSet instances from this instance.
|
void |
unload()
set the loaded field to false, and set all non-ID fields to null.
|
Collection<FilterAnnotationLink> |
unmodifiableAnnotationLinks()
Returns an unmodifiable collection-view
|
Collection<FilterSetEmissionFilterLink> |
unmodifiableEmissionFilterLink()
Returns an unmodifiable collection-view
|
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 String OWNER_FILTER
public static final String GROUP_FILTER
public static final String EVENT_FILTER
public static final String PERMS_FILTER
public static final String ID
protected Long id
public static final String VERSION
protected Integer version
protected String manufacturer
protected String model
protected String lotNumber
protected String serialNumber
protected String filterWheel
protected FilterType type
protected TransmittanceRange transmittanceRange
protected Instrument instrument
protected Set<FilterSetExcitationFilterLink> excitationFilterLink
public static final String OWNER_FILTER_EXCITATIONFILTERLINK
public static final String GROUP_FILTER_EXCITATIONFILTERLINK
public static final String EVENT_FILTER_EXCITATIONFILTERLINK
public static final String PERMS_FILTER_EXCITATIONFILTERLINK
protected Set<FilterSetEmissionFilterLink> emissionFilterLink
public static final String OWNER_FILTER_EMISSIONFILTERLINK
public static final String GROUP_FILTER_EMISSIONFILTERLINK
public static final String EVENT_FILTER_EMISSIONFILTERLINK
public static final String PERMS_FILTER_EMISSIONFILTERLINK
protected Set<FilterAnnotationLink> annotationLinks
public static final String OWNER_FILTER_ANNOTATIONLINKS
public static final String GROUP_FILTER_ANNOTATIONLINKS
public static final String EVENT_FILTER_ANNOTATIONLINKS
public static final String PERMS_FILTER_ANNOTATIONLINKS
protected Details details
public static final String MANUFACTURER
public static final String MODEL
public static final String LOTNUMBER
public static final String SERIALNUMBER
public static final String FILTERWHEEL
public static final String TYPE
public static final String TRANSMITTANCERANGE
public static final String INSTRUMENT
public static final String EXCITATIONFILTERLINKCOUNTPEROWNER
public static final String EXCITATIONFILTERLINK
public static final String EMISSIONFILTERLINKCOUNTPEROWNER
public static final String EMISSIONFILTERLINK
public static final String ANNOTATIONLINKSCOUNTPEROWNER
public static final String ANNOTATIONLINKS
public static final String DETAILS
protected boolean _loaded
public Filter()
protected Filter(Long id)
public Filter(Long id, boolean loaded)
public Filter(Instrument _instrument)
@DocumentId public Long getId()
public void setId(Long id)
IObject
public Integer getVersion()
getVersion
in interface IMutable
public void setVersion(Integer version)
IMutable
setVersion
in interface IMutable
version
- Value for this objects version.@Field(index=TOKENIZED) @Field(index=TOKENIZED,name="combined_fields") public String getManufacturer()
public void setManufacturer(String manufacturer)
@Field(index=TOKENIZED) @Field(index=TOKENIZED,name="combined_fields") public String getModel()
public void setModel(String model)
@Field(index=TOKENIZED) @Field(index=TOKENIZED,name="combined_fields") public String getLotNumber()
public void setLotNumber(String lotNumber)
@Field(index=TOKENIZED) @Field(index=TOKENIZED,name="combined_fields") public String getSerialNumber()
public void setSerialNumber(String serialNumber)
@Field(index=TOKENIZED) @Field(index=TOKENIZED,name="combined_fields") public String getFilterWheel()
public void setFilterWheel(String filterWheel)
public FilterType getType()
public void setType(FilterType type)
public TransmittanceRange getTransmittanceRange()
public void setTransmittanceRange(TransmittanceRange transmittanceRange)
public Instrument getInstrument()
public void setInstrument(Instrument instrument)
protected Set<FilterSetExcitationFilterLink> getExcitationFilterLink()
protected void setExcitationFilterLink(Set<FilterSetExcitationFilterLink> excitationFilterLink)
public int sizeOfExcitationFilterLink()
public Iterator<FilterSetExcitationFilterLink> iterateExcitationFilterLink()
EmptyIterator
. To test for a null collection,
see of sizeOfExcitationFilterLink()
is less than zero.public Collection<FilterSetExcitationFilterLink> unmodifiableExcitationFilterLink()
public <E> 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(Collection<FilterSetExcitationFilterLink> targets)
public void removeFilterSetExcitationFilterLink(FilterSetExcitationFilterLink target)
public void removeFilterSetExcitationFilterLinkSet(Collection<FilterSetExcitationFilterLink> targets)
public FilterSetExcitationFilterLink linkExcitationFilter(FilterSet addition)
public void addFilterSetExcitationFilterLink(FilterSetExcitationFilterLink link, boolean bothSides)
public Iterator<FilterSet> linkedExcitationFilterIterator()
ConcurrentModificationException
.
Use linkedExcitationFilterList()
instead.public Set<FilterSetExcitationFilterLink> findFilterSetExcitationFilterLink(FilterSet target)
public List<FilterSet> 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> List<E> eachLinkedExcitationFilter(CBlock<E> block)
block == null
, then the
iterator values themselves are collected.public void unlinkExcitationFilter(FilterSet removal)
public void removeFilterSetExcitationFilterLink(FilterSetExcitationFilterLink link, boolean bothSides)
public void clearExcitationFilterLinks()
protected void setExcitationFilterLinkCountPerOwner(Map<Long,Long> map)
public Map<Long,Long> getExcitationFilterLinkCountPerOwner()
protected Set<FilterSetEmissionFilterLink> getEmissionFilterLink()
protected void setEmissionFilterLink(Set<FilterSetEmissionFilterLink> emissionFilterLink)
public int sizeOfEmissionFilterLink()
public Iterator<FilterSetEmissionFilterLink> iterateEmissionFilterLink()
EmptyIterator
. To test for a null collection,
see of sizeOfEmissionFilterLink()
is less than zero.public Collection<FilterSetEmissionFilterLink> unmodifiableEmissionFilterLink()
public <E> 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(Collection<FilterSetEmissionFilterLink> targets)
public void removeFilterSetEmissionFilterLink(FilterSetEmissionFilterLink target)
public void removeFilterSetEmissionFilterLinkSet(Collection<FilterSetEmissionFilterLink> targets)
public FilterSetEmissionFilterLink linkEmissionFilter(FilterSet addition)
public void addFilterSetEmissionFilterLink(FilterSetEmissionFilterLink link, boolean bothSides)
public Iterator<FilterSet> linkedEmissionFilterIterator()
ConcurrentModificationException
.
Use linkedEmissionFilterList()
instead.public Set<FilterSetEmissionFilterLink> findFilterSetEmissionFilterLink(FilterSet target)
public List<FilterSet> 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> List<E> eachLinkedEmissionFilter(CBlock<E> block)
block == null
, then the
iterator values themselves are collected.public void unlinkEmissionFilter(FilterSet removal)
public void removeFilterSetEmissionFilterLink(FilterSetEmissionFilterLink link, boolean bothSides)
public void clearEmissionFilterLinks()
protected void setEmissionFilterLinkCountPerOwner(Map<Long,Long> map)
public Map<Long,Long> getEmissionFilterLinkCountPerOwner()
protected Set<FilterAnnotationLink> getAnnotationLinks()
protected void setAnnotationLinks(Set<FilterAnnotationLink> annotationLinks)
public int sizeOfAnnotationLinks()
sizeOfAnnotationLinks
in interface IAnnotated
public Iterator<FilterAnnotationLink> iterateAnnotationLinks()
EmptyIterator
. To test for a null collection,
see of sizeOfAnnotationLinks()
is less than zero.iterateAnnotationLinks
in interface IAnnotated
public Collection<FilterAnnotationLink> unmodifiableAnnotationLinks()
unmodifiableAnnotationLinks
in interface IAnnotated
public <E> 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 addFilterAnnotationLink(FilterAnnotationLink target)
public void addFilterAnnotationLinkSet(Collection<FilterAnnotationLink> targets)
public void removeFilterAnnotationLink(FilterAnnotationLink target)
public void removeFilterAnnotationLinkSet(Collection<FilterAnnotationLink> targets)
public FilterAnnotationLink linkAnnotation(Annotation addition)
linkAnnotation
in interface IAnnotated
public void addFilterAnnotationLink(FilterAnnotationLink link, boolean bothSides)
public Iterator<Annotation> linkedAnnotationIterator()
ConcurrentModificationException
.
Use linkedAnnotationList()
instead.linkedAnnotationIterator
in interface IAnnotated
public Set<FilterAnnotationLink> findFilterAnnotationLink(Annotation target)
public 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> 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 removeFilterAnnotationLink(FilterAnnotationLink link, boolean bothSides)
public void clearAnnotationLinks()
clearAnnotationLinks
in interface IAnnotated
public Map<Long,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 Filter.Details
instance instead.public boolean isValid()
IObject
Validation.isValid()
public Validation validate()
IObject
Validation
object.public Filter newInstance()
public Filter proxy()
public boolean acceptFilter(Filter __filter)
acceptFilter
in interface Filterable
public Set<String> fields()
IObject
public Object retrieve(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(String field, 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(String propertyName)
Version: 5.3.3-ice35-b63
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.