@Entity @Indexed(index="FullText") @ClassBridge(name="details", impl=DetailsFieldBridge.class, index=UN_TOKENIZED, store=NO) public class MicrobeamManipulation extends Object implements Serializable, IObject, IMutable
Modifier and Type | Class and Description |
---|---|
static class |
MicrobeamManipulation.Details |
Modifier and Type | Field and Description |
---|---|
protected Map<String,Object> |
_dynamicFields |
protected boolean |
_loaded |
protected String |
description |
static String |
DESCRIPTION |
protected Details |
details |
static String |
DETAILS |
static String |
EVENT_FILTER |
static String |
EVENT_FILTER_LIGHTSOURCESETTINGS |
protected Experiment |
experiment |
static String |
EXPERIMENT |
static Set<String> |
FIELDS |
static String |
GROUP_FILTER |
static String |
GROUP_FILTER_LIGHTSOURCESETTINGS |
protected Long |
id |
static String |
ID |
protected Set<LightSettings> |
lightSourceSettings |
static String |
LIGHTSOURCESETTINGS |
static String |
OWNER_FILTER |
static String |
OWNER_FILTER_LIGHTSOURCESETTINGS |
static String |
PERMS_FILTER |
static String |
PERMS_FILTER_LIGHTSOURCESETTINGS |
protected MicrobeamManipulationType |
type |
static String |
TYPE |
protected Integer |
version |
static String |
VERSION |
Modifier | Constructor and Description |
---|---|
|
MicrobeamManipulation() |
protected |
MicrobeamManipulation(Long id) |
|
MicrobeamManipulation(Long id,
boolean loaded)
Main constructor.
|
|
MicrobeamManipulation(MicrobeamManipulationType _type,
Experiment _experiment) |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptFilter(Filter __filter) |
void |
addLightSettings(LightSettings target)
use instead of setLightSourceSettings .
|
void |
addLightSettingsSet(Collection<LightSettings> targets)
use like addLightSettings.
|
void |
clearLightSourceSettings()
clears the set.
|
<E> List<E> |
collectLightSourceSettings(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.acquisition.LightSettings while
collecting the results.
|
protected void |
errorIfUnloaded() |
Set<String> |
fields()
returns a Set of field names that belong to this class
|
String |
getDescription()
Simple field ome.model.experiment.MicrobeamManipulation.description (java.lang.String)
|
Details |
getDetails()
The details of this object correspond to low-level system
information.
|
Experiment |
getExperiment()
Many-to-one field ome.model.experiment.MicrobeamManipulation.experiment (ome.model.experiment.Experiment)
|
GraphHolder |
getGraphHolder()
retrieves the
GraphHolder for this entity. |
Long |
getId()
The DB unique identifier for this object.
|
protected Set<LightSettings> |
getLightSourceSettings()
returns lightSourceSettings .
|
MicrobeamManipulationType |
getType()
Many-to-one field ome.model.experiment.MicrobeamManipulation.type (ome.model.enums.MicrobeamManipulationType)
|
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<LightSettings> |
iterateLightSourceSettings()
should be used rather than accessing the lightSourceSettings set directly.
|
MicrobeamManipulation |
newInstance() |
MicrobeamManipulation |
proxy() |
void |
putAt(String field,
Object value)
stores a value in this instance.
|
void |
removeLightSettings(LightSettings target)
removes a single element from this set and makes the inverse call on ome.model.acquisition.LightSettings
|
void |
removeLightSettingsSet(Collection<LightSettings> targets)
use like removeLightSettings
|
Object |
retrieve(String field)
retrieves a value from this instance.
|
void |
setDescription(String description) |
protected void |
setDetails(Details details)
Use the
Details.copy(ome.model.internal.Details)
or Details.shallowCopy(ome.model.internal.Details)
methods to set the MicrobeamManipulation.Details instance instead. |
void |
setExperiment(Experiment experiment) |
void |
setId(Long id)
usually unneeded.
|
protected void |
setLightSourceSettings(Set<LightSettings> lightSourceSettings)
setter for lightSourceSettings should be avoided.
|
void |
setType(MicrobeamManipulationType type) |
void |
setVersion(Integer version)
use with caution.
|
int |
sizeOfLightSourceSettings()
returns the size of lightSourceSettings.
|
protected void |
throwNullCollectionException(String propertyName) |
String |
toString() |
void |
unload()
set the loaded field to false, and set all non-ID fields to null.
|
Collection<LightSettings> |
unmodifiableLightSourceSettings()
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 MicrobeamManipulationType type
protected Set<LightSettings> lightSourceSettings
public static final String OWNER_FILTER_LIGHTSOURCESETTINGS
public static final String GROUP_FILTER_LIGHTSOURCESETTINGS
public static final String EVENT_FILTER_LIGHTSOURCESETTINGS
public static final String PERMS_FILTER_LIGHTSOURCESETTINGS
protected Experiment experiment
protected String description
protected Details details
public static final String TYPE
public static final String LIGHTSOURCESETTINGS
public static final String EXPERIMENT
public static final String DESCRIPTION
public static final String DETAILS
protected boolean _loaded
public MicrobeamManipulation()
protected MicrobeamManipulation(Long id)
public MicrobeamManipulation(Long id, boolean loaded)
public MicrobeamManipulation(MicrobeamManipulationType _type, Experiment _experiment)
@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.public MicrobeamManipulationType getType()
public void setType(MicrobeamManipulationType type)
protected Set<LightSettings> getLightSourceSettings()
protected void setLightSourceSettings(Set<LightSettings> lightSourceSettings)
public int sizeOfLightSourceSettings()
public Iterator<LightSettings> iterateLightSourceSettings()
EmptyIterator
. To test for a null collection,
see of sizeOfLightSourceSettings()
is less than zero.public Collection<LightSettings> unmodifiableLightSourceSettings()
public <E> List<E> collectLightSourceSettings(CBlock<E> block)
block == null
, then the
iterator values themselves are collected. This method uses
iterateLightSourceSettings()
internally and so will return a value
even if the underlying collection is null.public void addLightSettings(LightSettings target)
public void addLightSettingsSet(Collection<LightSettings> targets)
public void removeLightSettings(LightSettings target)
public void removeLightSettingsSet(Collection<LightSettings> targets)
public void clearLightSourceSettings()
public Experiment getExperiment()
public void setExperiment(Experiment experiment)
@Field(index=TOKENIZED) @Field(index=TOKENIZED,name="combined_fields") public String getDescription()
public void setDescription(String description)
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 MicrobeamManipulation.Details
instance instead.public boolean isValid()
IObject
Validation.isValid()
public Validation validate()
IObject
Validation
object.public MicrobeamManipulation newInstance()
public MicrobeamManipulation 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.4.0-ice35-b74
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.