@Entity @Indexed(index="FullText") @ClassBridge(name="details", impl=DetailsFieldBridge.class, index=UN_TOKENIZED, store=NO) public class Channel extends java.lang.Object implements java.io.Serializable, IObject, IMutable, IAnnotated
Modifier and Type | Class and Description |
---|---|
static class |
Channel.Details |
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
_dynamicFields |
protected boolean |
_loaded |
protected java.lang.Integer |
alpha |
static java.lang.String |
ALPHA |
protected java.util.Set<ChannelAnnotationLink> |
annotationLinks |
static java.lang.String |
ANNOTATIONLINKS |
static java.lang.String |
ANNOTATIONLINKSCOUNTPEROWNER |
protected java.lang.Integer |
blue |
static java.lang.String |
BLUE |
protected Details |
details |
static java.lang.String |
DETAILS |
static java.lang.String |
EVENT_FILTER |
static java.lang.String |
EVENT_FILTER_ANNOTATIONLINKS |
static java.util.Set<java.lang.String> |
FIELDS |
protected java.lang.Integer |
green |
static java.lang.String |
GREEN |
static java.lang.String |
GROUP_FILTER |
static java.lang.String |
GROUP_FILTER_ANNOTATIONLINKS |
protected java.lang.Long |
id |
static java.lang.String |
ID |
protected LogicalChannel |
logicalChannel |
static java.lang.String |
LOGICALCHANNEL |
protected java.lang.String |
lookupTable |
static java.lang.String |
LOOKUPTABLE |
static java.lang.String |
OWNER_FILTER |
static java.lang.String |
OWNER_FILTER_ANNOTATIONLINKS |
static java.lang.String |
PERMS_FILTER |
static java.lang.String |
PERMS_FILTER_ANNOTATIONLINKS |
protected Pixels |
pixels |
static java.lang.String |
PIXELS |
protected java.lang.Integer |
red |
static java.lang.String |
RED |
protected StatsInfo |
statsInfo |
static java.lang.String |
STATSINFO |
protected java.lang.Integer |
version |
static java.lang.String |
VERSION |
Modifier | Constructor and Description |
---|---|
|
Channel() |
|
Channel(LogicalChannel _logicalChannel,
Pixels _pixels) |
protected |
Channel(java.lang.Long id) |
|
Channel(java.lang.Long id,
boolean loaded)
Main constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
acceptFilter(Filter __filter) |
void |
addChannelAnnotationLink(ChannelAnnotationLink target)
use instead of setAnnotationLinks .
|
void |
addChannelAnnotationLink(ChannelAnnotationLink link,
boolean bothSides)
Adds a ome.model.annotations.ChannelAnnotationLink to annotationLinks, allowing for recursion -- whether
or not addChannelAnnotationLink will be called on the addition if it is loaded
|
void |
addChannelAnnotationLinkSet(java.util.Collection<ChannelAnnotationLink> targets)
use like addChannelAnnotationLink.
|
void |
clearAnnotationLinks()
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.ChannelAnnotationLink 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<ChannelAnnotationLink> |
findChannelAnnotationLink(Annotation target)
find all ome.model.annotations.ChannelAnnotationLink which have the argument as their child.
|
java.lang.Integer |
getAlpha()
Simple field ome.model.core.Channel.alpha (java.lang.Integer)
|
protected java.util.Set<ChannelAnnotationLink> |
getAnnotationLinks()
returns annotationLinks .
|
java.util.Map<java.lang.Long,java.lang.Long> |
getAnnotationLinksCountPerOwner()
If fetched, returns the count(*) of ome.model.annotations.ChannelAnnotationLink that a user has.
|
java.lang.Integer |
getBlue()
Simple field ome.model.core.Channel.blue (java.lang.Integer)
|
Details |
getDetails()
The details of this object correspond to low-level system
information.
|
GraphHolder |
getGraphHolder()
retrieves the
GraphHolder for this entity. |
java.lang.Integer |
getGreen()
Simple field ome.model.core.Channel.green (java.lang.Integer)
|
java.lang.Long |
getId()
The DB unique identifier for this object.
|
LogicalChannel |
getLogicalChannel()
Many-to-one field ome.model.core.Channel.logicalChannel (ome.model.core.LogicalChannel)
|
java.lang.String |
getLookupTable()
Simple field ome.model.core.Channel.lookupTable (java.lang.String)
|
Pixels |
getPixels()
Many-to-one field ome.model.core.Channel.pixels (ome.model.core.Pixels)
|
java.lang.Integer |
getRed()
Simple field ome.model.core.Channel.red (java.lang.Integer)
|
StatsInfo |
getStatsInfo()
Many-to-one field ome.model.core.Channel.statsInfo (ome.model.stats.StatsInfo)
|
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<ChannelAnnotationLink> |
iterateAnnotationLinks()
should be used rather than accessing the annotationLinks set directly.
|
ChannelAnnotationLink |
linkAnnotation(Annotation addition)
Adds a ome.model.annotations.ChannelAnnotationLink 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. |
Channel |
newInstance() |
Channel |
proxy() |
void |
putAt(java.lang.String field,
java.lang.Object value)
stores a value in this instance.
|
void |
removeChannelAnnotationLink(ChannelAnnotationLink target)
removes a single element from this set and makes the inverse call on ome.model.annotations.ChannelAnnotationLink
|
void |
removeChannelAnnotationLink(ChannelAnnotationLink link,
boolean bothSides)
removes the given ChannelAnnotationLink from annotationLinks, allowing for recursion -- whether
or not the removal will call unlinkChannel again if loaded.
|
void |
removeChannelAnnotationLinkSet(java.util.Collection<ChannelAnnotationLink> targets)
use like removeChannelAnnotationLink
|
java.lang.Object |
retrieve(java.lang.String field)
retrieves a value from this instance.
|
void |
setAlpha(java.lang.Integer alpha) |
protected void |
setAnnotationLinks(java.util.Set<ChannelAnnotationLink> annotationLinks)
setter for annotationLinks should be avoided.
|
protected void |
setAnnotationLinksCountPerOwner(java.util.Map<java.lang.Long,java.lang.Long> map) |
void |
setBlue(java.lang.Integer blue) |
protected void |
setDetails(Details details)
Use the
Details.copy(ome.model.internal.Details)
or Details.shallowCopy(ome.model.internal.Details)
methods to set the Channel.Details instance instead. |
void |
setGreen(java.lang.Integer green) |
void |
setId(java.lang.Long id)
usually unneeded.
|
void |
setLogicalChannel(LogicalChannel logicalChannel) |
void |
setLookupTable(java.lang.String lookupTable) |
void |
setPixels(Pixels pixels) |
void |
setRed(java.lang.Integer red) |
void |
setStatsInfo(StatsInfo statsInfo) |
void |
setVersion(java.lang.Integer version)
use with caution.
|
int |
sizeOfAnnotationLinks()
returns the size of annotationLinks.
|
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<ChannelAnnotationLink> |
unmodifiableAnnotationLinks()
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 StatsInfo statsInfo
protected java.lang.Integer red
protected java.lang.Integer green
protected java.lang.Integer blue
protected java.lang.Integer alpha
protected java.lang.String lookupTable
protected LogicalChannel logicalChannel
protected Pixels pixels
protected java.util.Set<ChannelAnnotationLink> 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 STATSINFO
public static final java.lang.String RED
public static final java.lang.String GREEN
public static final java.lang.String BLUE
public static final java.lang.String ALPHA
public static final java.lang.String LOOKUPTABLE
public static final java.lang.String LOGICALCHANNEL
public static final java.lang.String PIXELS
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 Channel()
protected Channel(java.lang.Long id)
public Channel(java.lang.Long id, boolean loaded)
public Channel(LogicalChannel _logicalChannel, Pixels _pixels)
@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 StatsInfo getStatsInfo()
public void setStatsInfo(StatsInfo statsInfo)
@Field(index=UN_TOKENIZED) @Field(index=UN_TOKENIZED,name="combined_fields") public java.lang.Integer getRed()
public void setRed(java.lang.Integer red)
@Field(index=UN_TOKENIZED) @Field(index=UN_TOKENIZED,name="combined_fields") public java.lang.Integer getGreen()
public void setGreen(java.lang.Integer green)
@Field(index=UN_TOKENIZED) @Field(index=UN_TOKENIZED,name="combined_fields") public java.lang.Integer getBlue()
public void setBlue(java.lang.Integer blue)
@Field(index=UN_TOKENIZED) @Field(index=UN_TOKENIZED,name="combined_fields") public java.lang.Integer getAlpha()
public void setAlpha(java.lang.Integer alpha)
@Field(index=TOKENIZED) @Field(index=TOKENIZED,name="combined_fields") public java.lang.String getLookupTable()
public void setLookupTable(java.lang.String lookupTable)
public LogicalChannel getLogicalChannel()
public void setLogicalChannel(LogicalChannel logicalChannel)
public Pixels getPixels()
public void setPixels(Pixels pixels)
protected java.util.Set<ChannelAnnotationLink> getAnnotationLinks()
protected void setAnnotationLinks(java.util.Set<ChannelAnnotationLink> annotationLinks)
public int sizeOfAnnotationLinks()
sizeOfAnnotationLinks
in interface IAnnotated
public java.util.Iterator<ChannelAnnotationLink> iterateAnnotationLinks()
EmptyIterator
. To test for a null collection,
see of sizeOfAnnotationLinks()
is less than zero.iterateAnnotationLinks
in interface IAnnotated
public java.util.Collection<ChannelAnnotationLink> 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 addChannelAnnotationLink(ChannelAnnotationLink target)
public void addChannelAnnotationLinkSet(java.util.Collection<ChannelAnnotationLink> targets)
public void removeChannelAnnotationLink(ChannelAnnotationLink target)
public void removeChannelAnnotationLinkSet(java.util.Collection<ChannelAnnotationLink> targets)
public ChannelAnnotationLink linkAnnotation(Annotation addition)
linkAnnotation
in interface IAnnotated
public void addChannelAnnotationLink(ChannelAnnotationLink link, boolean bothSides)
public java.util.Iterator<Annotation> linkedAnnotationIterator()
ConcurrentModificationException
.
Use linkedAnnotationList()
instead.linkedAnnotationIterator
in interface IAnnotated
public java.util.Set<ChannelAnnotationLink> findChannelAnnotationLink(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 removeChannelAnnotationLink(ChannelAnnotationLink 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 Channel.Details
instance instead.public boolean isValid()
IObject
Validation.isValid()
public Validation validate()
IObject
Validation
object.public Channel newInstance()
public Channel 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.