@Entity @Indexed(index="FullText") @ClassBridge(name="details", impl=DetailsFieldBridge.class, index=UN_TOKENIZED, store=NO) public class RenderingDef extends java.lang.Object implements java.io.Serializable, IObject, IMutable
Modifier and Type | Class and Description |
---|---|
static class |
RenderingDef.Details |
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
_dynamicFields |
protected boolean |
_loaded |
protected java.lang.Double |
compression |
static java.lang.String |
COMPRESSION |
protected java.lang.Integer |
defaultT |
static java.lang.String |
DEFAULTT |
protected java.lang.Integer |
defaultZ |
static java.lang.String |
DEFAULTZ |
protected Details |
details |
static java.lang.String |
DETAILS |
static java.lang.String |
EVENT_FILTER |
static java.lang.String |
EVENT_FILTER_PROJECTIONS |
static java.lang.String |
EVENT_FILTER_WAVERENDERING |
static java.util.Set<java.lang.String> |
FIELDS |
static java.lang.String |
GROUP_FILTER |
static java.lang.String |
GROUP_FILTER_PROJECTIONS |
static java.lang.String |
GROUP_FILTER_WAVERENDERING |
protected java.lang.Long |
id |
static java.lang.String |
ID |
protected RenderingModel |
model |
static java.lang.String |
MODEL |
protected java.lang.String |
name |
static java.lang.String |
NAME |
static java.lang.String |
OWNER_FILTER |
static java.lang.String |
OWNER_FILTER_PROJECTIONS |
static java.lang.String |
OWNER_FILTER_WAVERENDERING |
static java.lang.String |
PERMS_FILTER |
static java.lang.String |
PERMS_FILTER_PROJECTIONS |
static java.lang.String |
PERMS_FILTER_WAVERENDERING |
protected Pixels |
pixels |
static java.lang.String |
PIXELS |
protected java.util.List<ProjectionDef> |
projections |
static java.lang.String |
PROJECTIONS |
protected QuantumDef |
quantization |
static java.lang.String |
QUANTIZATION |
protected java.lang.Integer |
version |
static java.lang.String |
VERSION |
protected java.util.List<ChannelBinding> |
waveRendering |
static java.lang.String |
WAVERENDERING |
Modifier | Constructor and Description |
---|---|
|
RenderingDef() |
protected |
RenderingDef(java.lang.Long id) |
|
RenderingDef(java.lang.Long id,
boolean loaded)
Main constructor.
|
|
RenderingDef(Pixels _pixels,
java.lang.Integer _defaultZ,
java.lang.Integer _defaultT,
RenderingModel _model,
QuantumDef _quantization) |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptFilter(Filter __filter) |
void |
addChannelBinding(ChannelBinding target)
use instead of setWaveRendering .
|
void |
addChannelBindingSet(java.util.Collection<ChannelBinding> targets)
use like addChannelBinding.
|
void |
addProjectionDef(ProjectionDef target)
use instead of setProjections .
|
void |
addProjectionDefSet(java.util.Collection<ProjectionDef> targets)
use like addProjectionDef.
|
void |
clearProjections()
clears the set.
|
void |
clearWaveRendering()
clears the set.
|
<E> java.util.List<E> |
collectProjections(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.display.ProjectionDef while
collecting the results.
|
<E> java.util.List<E> |
collectWaveRendering(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.display.ChannelBinding 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
|
ChannelBinding |
getChannelBinding(int index)
Gets the ome.model.display.ChannelBinding at the given index.
|
java.lang.Double |
getCompression()
Simple field ome.model.display.RenderingDef.compression (java.lang.Double)
|
java.lang.Integer |
getDefaultT()
Simple field ome.model.display.RenderingDef.defaultT (java.lang.Integer)
|
java.lang.Integer |
getDefaultZ()
Simple field ome.model.display.RenderingDef.defaultZ (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.Long |
getId()
The DB unique identifier for this object.
|
RenderingModel |
getModel()
Many-to-one field ome.model.display.RenderingDef.model (ome.model.enums.RenderingModel)
|
java.lang.String |
getName()
Simple field ome.model.display.RenderingDef.name (java.lang.String)
|
Pixels |
getPixels()
Many-to-one field ome.model.display.RenderingDef.pixels (ome.model.core.Pixels)
|
ChannelBinding |
getPrimaryChannelBinding()
Gets the first element of waveRendering which can be interpreted as the
primary or default element in some situations.
|
ProjectionDef |
getPrimaryProjectionDef()
Gets the first element of projections which can be interpreted as the
primary or default element in some situations.
|
ProjectionDef |
getProjectionDef(int index)
Gets the ome.model.display.ProjectionDef at the given index.
|
protected java.util.List<ProjectionDef> |
getProjections()
returns projections .
|
QuantumDef |
getQuantization()
Many-to-one field ome.model.display.RenderingDef.quantization (ome.model.display.QuantumDef)
|
java.lang.Integer |
getVersion()
This version number is controlled by the database for optimisitic
locking.
|
protected java.util.List<ChannelBinding> |
getWaveRendering()
returns waveRendering .
|
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<ProjectionDef> |
iterateProjections()
should be used rather than accessing the projections set directly.
|
java.util.Iterator<ChannelBinding> |
iterateWaveRendering()
should be used rather than accessing the waveRendering set directly.
|
RenderingDef |
newInstance() |
RenderingDef |
proxy() |
void |
putAt(java.lang.String field,
java.lang.Object value)
stores a value in this instance.
|
void |
removeChannelBinding(ChannelBinding target)
removes a single element from this set and makes the inverse call on ome.model.display.ChannelBinding
|
void |
removeChannelBindingSet(java.util.Collection<ChannelBinding> targets)
use like removeChannelBinding
|
void |
removeProjectionDef(ProjectionDef target)
removes a single element from this set and makes the inverse call on ome.model.display.ProjectionDef
|
void |
removeProjectionDefSet(java.util.Collection<ProjectionDef> targets)
use like removeProjectionDef
|
java.lang.Object |
retrieve(java.lang.String field)
retrieves a value from this instance.
|
ChannelBinding |
setChannelBinding(int index,
ChannelBinding element)
Sets the ome.model.display.ChannelBinding at the given index.
|
void |
setCompression(java.lang.Double compression) |
void |
setDefaultT(java.lang.Integer defaultT) |
void |
setDefaultZ(java.lang.Integer defaultZ) |
protected void |
setDetails(Details details)
Use the
Details.copy(ome.model.internal.Details)
or Details.shallowCopy(ome.model.internal.Details)
methods to set the RenderingDef.Details instance instead. |
void |
setId(java.lang.Long id)
usually unneeded.
|
void |
setModel(RenderingModel model) |
void |
setName(java.lang.String name) |
void |
setPixels(Pixels pixels) |
ChannelBinding |
setPrimaryChannelBinding(ChannelBinding element)
Swaps the first element of waveRendering with the first instance of the
given element.
|
ProjectionDef |
setPrimaryProjectionDef(ProjectionDef element)
Swaps the first element of projections with the first instance of the
given element.
|
ProjectionDef |
setProjectionDef(int index,
ProjectionDef element)
Sets the ome.model.display.ProjectionDef at the given index.
|
protected void |
setProjections(java.util.List<ProjectionDef> projections)
setter for projections should be avoided.
|
void |
setQuantization(QuantumDef quantization) |
void |
setVersion(java.lang.Integer version)
use with caution.
|
protected void |
setWaveRendering(java.util.List<ChannelBinding> waveRendering)
setter for waveRendering should be avoided.
|
int |
sizeOfProjections()
returns the size of projections.
|
int |
sizeOfWaveRendering()
returns the size of waveRendering.
|
protected void |
throwNullCollectionException(java.lang.String propertyName) |
java.lang.String |
toString() |
void |
unload()
set the loaded field to false, and set all non-ID fields to null.
|
java.util.Collection<ProjectionDef> |
unmodifiableProjections()
Returns an unmodifiable collection-view
|
java.util.Collection<ChannelBinding> |
unmodifiableWaveRendering()
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 Pixels pixels
protected java.lang.Integer defaultZ
protected java.lang.Integer defaultT
protected RenderingModel model
protected java.util.List<ChannelBinding> waveRendering
public static final java.lang.String OWNER_FILTER_WAVERENDERING
public static final java.lang.String GROUP_FILTER_WAVERENDERING
public static final java.lang.String EVENT_FILTER_WAVERENDERING
public static final java.lang.String PERMS_FILTER_WAVERENDERING
protected java.lang.String name
protected java.lang.Double compression
protected QuantumDef quantization
protected java.util.List<ProjectionDef> projections
public static final java.lang.String OWNER_FILTER_PROJECTIONS
public static final java.lang.String GROUP_FILTER_PROJECTIONS
public static final java.lang.String EVENT_FILTER_PROJECTIONS
public static final java.lang.String PERMS_FILTER_PROJECTIONS
protected Details details
public static final java.lang.String PIXELS
public static final java.lang.String DEFAULTZ
public static final java.lang.String DEFAULTT
public static final java.lang.String MODEL
public static final java.lang.String WAVERENDERING
public static final java.lang.String NAME
public static final java.lang.String COMPRESSION
public static final java.lang.String QUANTIZATION
public static final java.lang.String PROJECTIONS
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 RenderingDef()
protected RenderingDef(java.lang.Long id)
public RenderingDef(java.lang.Long id, boolean loaded)
public RenderingDef(Pixels _pixels, java.lang.Integer _defaultZ, java.lang.Integer _defaultT, RenderingModel _model, QuantumDef _quantization)
@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 Pixels getPixels()
public void setPixels(Pixels pixels)
@Field(index=UN_TOKENIZED) @Field(index=UN_TOKENIZED,name="combined_fields") public java.lang.Integer getDefaultZ()
public void setDefaultZ(java.lang.Integer defaultZ)
@Field(index=UN_TOKENIZED) @Field(index=UN_TOKENIZED,name="combined_fields") public java.lang.Integer getDefaultT()
public void setDefaultT(java.lang.Integer defaultT)
public RenderingModel getModel()
public void setModel(RenderingModel model)
protected java.util.List<ChannelBinding> getWaveRendering()
protected void setWaveRendering(java.util.List<ChannelBinding> waveRendering)
public int sizeOfWaveRendering()
public java.util.Iterator<ChannelBinding> iterateWaveRendering()
EmptyIterator
. To test for a null collection,
see of sizeOfWaveRendering()
is less than zero.public java.util.Collection<ChannelBinding> unmodifiableWaveRendering()
public <E> java.util.List<E> collectWaveRendering(CBlock<E> block)
block == null
, then the
iterator values themselves are collected. This method uses
iterateWaveRendering()
internally and so will return a value
even if the underlying collection is null.public void addChannelBinding(ChannelBinding target)
public void addChannelBindingSet(java.util.Collection<ChannelBinding> targets)
public void removeChannelBinding(ChannelBinding target)
public void removeChannelBindingSet(java.util.Collection<ChannelBinding> targets)
public void clearWaveRendering()
public ChannelBinding getChannelBinding(int index) throws java.lang.IndexOutOfBoundsException
java.lang.IndexOutOfBoundsException
public ChannelBinding setChannelBinding(int index, ChannelBinding element) throws java.lang.IndexOutOfBoundsException
List.set(int, Object)
contract. To extend the list, use addChannelBinding(ChannelBinding)
.java.lang.IndexOutOfBoundsException
List.set(int, Object)
public ChannelBinding getPrimaryChannelBinding() throws java.lang.IndexOutOfBoundsException
IndexOutOfBoundsException
is throws. This method
will also throw an ApiUsageException
if the collection is
unloaded. See sizeOfWaveRendering()
for more information.java.lang.IndexOutOfBoundsException
public ChannelBinding setPrimaryChannelBinding(ChannelBinding element) throws java.lang.IndexOutOfBoundsException
IndexOutOfBoundsException
will be thrown. Returns the swapped
element. This method
will also throw an ApiUsageException
if the collection is
unloaded. See sizeOfWaveRendering()
for more information.java.lang.IndexOutOfBoundsException
@Field(index=TOKENIZED) @Field(index=TOKENIZED,name="combined_fields") public java.lang.String getName()
public void setName(java.lang.String name)
@Field(index=UN_TOKENIZED) @Field(index=UN_TOKENIZED,name="combined_fields") public java.lang.Double getCompression()
public void setCompression(java.lang.Double compression)
public QuantumDef getQuantization()
public void setQuantization(QuantumDef quantization)
protected java.util.List<ProjectionDef> getProjections()
protected void setProjections(java.util.List<ProjectionDef> projections)
public int sizeOfProjections()
public java.util.Iterator<ProjectionDef> iterateProjections()
EmptyIterator
. To test for a null collection,
see of sizeOfProjections()
is less than zero.public java.util.Collection<ProjectionDef> unmodifiableProjections()
public <E> java.util.List<E> collectProjections(CBlock<E> block)
block == null
, then the
iterator values themselves are collected. This method uses
iterateProjections()
internally and so will return a value
even if the underlying collection is null.public void addProjectionDef(ProjectionDef target)
public void addProjectionDefSet(java.util.Collection<ProjectionDef> targets)
public void removeProjectionDef(ProjectionDef target)
public void removeProjectionDefSet(java.util.Collection<ProjectionDef> targets)
public void clearProjections()
public ProjectionDef getProjectionDef(int index) throws java.lang.IndexOutOfBoundsException
java.lang.IndexOutOfBoundsException
public ProjectionDef setProjectionDef(int index, ProjectionDef element) throws java.lang.IndexOutOfBoundsException
List.set(int, Object)
contract. To extend the list, use addProjectionDef(ProjectionDef)
.java.lang.IndexOutOfBoundsException
List.set(int, Object)
public ProjectionDef getPrimaryProjectionDef() throws java.lang.IndexOutOfBoundsException
IndexOutOfBoundsException
is throws. This method
will also throw an ApiUsageException
if the collection is
unloaded. See sizeOfProjections()
for more information.java.lang.IndexOutOfBoundsException
public ProjectionDef setPrimaryProjectionDef(ProjectionDef element) throws java.lang.IndexOutOfBoundsException
IndexOutOfBoundsException
will be thrown. Returns the swapped
element. This method
will also throw an ApiUsageException
if the collection is
unloaded. See sizeOfProjections()
for more information.java.lang.IndexOutOfBoundsException
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 RenderingDef.Details
instance instead.public boolean isValid()
IObject
Validation.isValid()
public Validation validate()
IObject
Validation
object.public RenderingDef newInstance()
public RenderingDef 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.6-ice35-b87
Copyright © 2018 The University of Dundee & Open Microscopy Environment. All Rights Reserved.