@Entity @Indexed(index="FullText") @ClassBridge(name="details", impl=DetailsFieldBridge.class, index=UN_TOKENIZED, store=NO) public class Objective extends java.lang.Object implements java.io.Serializable, IObject, IMutable, IAnnotated
Modifier and Type | Class and Description |
---|---|
static class |
Objective.Details |
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
_dynamicFields |
protected boolean |
_loaded |
protected java.util.Set<ObjectiveAnnotationLink> |
annotationLinks |
static java.lang.String |
ANNOTATIONLINKS |
static java.lang.String |
ANNOTATIONLINKSCOUNTPEROWNER |
protected java.lang.Double |
calibratedMagnification |
static java.lang.String |
CALIBRATEDMAGNIFICATION |
protected Correction |
correction |
static java.lang.String |
CORRECTION |
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 |
static java.lang.String |
GROUP_FILTER |
static java.lang.String |
GROUP_FILTER_ANNOTATIONLINKS |
protected java.lang.Long |
id |
static java.lang.String |
ID |
protected Immersion |
immersion |
static java.lang.String |
IMMERSION |
protected Instrument |
instrument |
static java.lang.String |
INSTRUMENT |
protected java.lang.Boolean |
iris |
static java.lang.String |
IRIS |
protected java.lang.Double |
lensNA |
static java.lang.String |
LENSNA |
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 |
protected java.lang.Double |
nominalMagnification |
static java.lang.String |
NOMINALMAGNIFICATION |
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 java.lang.String |
serialNumber |
static java.lang.String |
SERIALNUMBER |
protected java.lang.Integer |
version |
static java.lang.String |
VERSION |
protected Length |
workingDistance |
static java.lang.String |
WORKINGDISTANCE |
Modifier | Constructor and Description |
---|---|
|
Objective() |
|
Objective(Immersion _immersion,
Correction _correction,
Instrument _instrument) |
protected |
Objective(java.lang.Long id) |
|
Objective(java.lang.Long id,
boolean loaded)
Main constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
acceptFilter(Filter __filter) |
void |
addObjectiveAnnotationLink(ObjectiveAnnotationLink target)
use instead of setAnnotationLinks .
|
void |
addObjectiveAnnotationLink(ObjectiveAnnotationLink link,
boolean bothSides)
Adds a ome.model.annotations.ObjectiveAnnotationLink to annotationLinks, allowing for recursion -- whether
or not addObjectiveAnnotationLink will be called on the addition if it is loaded
|
void |
addObjectiveAnnotationLinkSet(java.util.Collection<ObjectiveAnnotationLink> targets)
use like addObjectiveAnnotationLink.
|
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.ObjectiveAnnotationLink 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<ObjectiveAnnotationLink> |
findObjectiveAnnotationLink(Annotation target)
find all ome.model.annotations.ObjectiveAnnotationLink which have the argument as their child.
|
protected java.util.Set<ObjectiveAnnotationLink> |
getAnnotationLinks()
returns annotationLinks .
|
java.util.Map<java.lang.Long,java.lang.Long> |
getAnnotationLinksCountPerOwner()
If fetched, returns the count(*) of ome.model.annotations.ObjectiveAnnotationLink that a user has.
|
java.lang.Double |
getCalibratedMagnification()
Simple field ome.model.acquisition.Objective.calibratedMagnification (java.lang.Double)
|
Correction |
getCorrection()
Many-to-one field ome.model.acquisition.Objective.correction (ome.model.enums.Correction)
|
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.
|
Immersion |
getImmersion()
Many-to-one field ome.model.acquisition.Objective.immersion (ome.model.enums.Immersion)
|
Instrument |
getInstrument()
Many-to-one field ome.model.acquisition.Objective.instrument (ome.model.acquisition.Instrument)
|
java.lang.Boolean |
getIris()
Simple field ome.model.acquisition.Objective.iris (java.lang.Boolean)
|
java.lang.Double |
getLensNA()
Simple field ome.model.acquisition.Objective.lensNA (java.lang.Double)
|
java.lang.String |
getLotNumber()
Simple field ome.model.acquisition.Objective.lotNumber (java.lang.String)
|
java.lang.String |
getManufacturer()
Simple field ome.model.acquisition.Objective.manufacturer (java.lang.String)
|
java.lang.String |
getModel()
Simple field ome.model.acquisition.Objective.model (java.lang.String)
|
java.lang.Double |
getNominalMagnification()
Simple field ome.model.acquisition.Objective.nominalMagnification (java.lang.Double)
|
java.lang.String |
getSerialNumber()
Simple field ome.model.acquisition.Objective.serialNumber (java.lang.String)
|
java.lang.Integer |
getVersion()
This version number is controlled by the database for optimisitic
locking.
|
Length |
getWorkingDistance()
Enum-mapped unit-based field ome.model.acquisition.Objective.workingDistance (ome.model.units.Length)
|
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<ObjectiveAnnotationLink> |
iterateAnnotationLinks()
should be used rather than accessing the annotationLinks set directly.
|
ObjectiveAnnotationLink |
linkAnnotation(Annotation addition)
Adds a ome.model.annotations.ObjectiveAnnotationLink 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. |
Objective |
newInstance() |
Objective |
proxy() |
void |
putAt(java.lang.String field,
java.lang.Object value)
stores a value in this instance.
|
void |
removeObjectiveAnnotationLink(ObjectiveAnnotationLink target)
removes a single element from this set and makes the inverse call on ome.model.annotations.ObjectiveAnnotationLink
|
void |
removeObjectiveAnnotationLink(ObjectiveAnnotationLink link,
boolean bothSides)
removes the given ObjectiveAnnotationLink from annotationLinks, allowing for recursion -- whether
or not the removal will call unlinkObjective again if loaded.
|
void |
removeObjectiveAnnotationLinkSet(java.util.Collection<ObjectiveAnnotationLink> targets)
use like removeObjectiveAnnotationLink
|
java.lang.Object |
retrieve(java.lang.String field)
retrieves a value from this instance.
|
protected void |
setAnnotationLinks(java.util.Set<ObjectiveAnnotationLink> annotationLinks)
setter for annotationLinks should be avoided.
|
protected void |
setAnnotationLinksCountPerOwner(java.util.Map<java.lang.Long,java.lang.Long> map) |
void |
setCalibratedMagnification(java.lang.Double calibratedMagnification) |
void |
setCorrection(Correction correction) |
protected void |
setDetails(Details details)
Use the
Details.copy(ome.model.internal.Details)
or Details.shallowCopy(ome.model.internal.Details)
methods to set the Objective.Details instance instead. |
void |
setId(java.lang.Long id)
usually unneeded.
|
void |
setImmersion(Immersion immersion) |
void |
setInstrument(Instrument instrument) |
void |
setIris(java.lang.Boolean iris) |
void |
setLensNA(java.lang.Double lensNA) |
void |
setLotNumber(java.lang.String lotNumber) |
void |
setManufacturer(java.lang.String manufacturer) |
void |
setModel(java.lang.String model) |
void |
setNominalMagnification(java.lang.Double nominalMagnification) |
void |
setSerialNumber(java.lang.String serialNumber) |
void |
setVersion(java.lang.Integer version)
use with caution.
|
void |
setWorkingDistance(Length workingDistance) |
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<ObjectiveAnnotationLink> |
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 java.lang.String manufacturer
protected java.lang.String model
protected java.lang.String lotNumber
protected java.lang.String serialNumber
protected java.lang.Double nominalMagnification
protected java.lang.Double calibratedMagnification
protected java.lang.Double lensNA
protected Immersion immersion
protected Correction correction
protected Length workingDistance
protected java.lang.Boolean iris
protected Instrument instrument
protected java.util.Set<ObjectiveAnnotationLink> 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 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 NOMINALMAGNIFICATION
public static final java.lang.String CALIBRATEDMAGNIFICATION
public static final java.lang.String LENSNA
public static final java.lang.String IMMERSION
public static final java.lang.String CORRECTION
public static final java.lang.String WORKINGDISTANCE
public static final java.lang.String IRIS
public static final java.lang.String INSTRUMENT
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 Objective()
protected Objective(java.lang.Long id)
public Objective(java.lang.Long id, boolean loaded)
public Objective(Immersion _immersion, Correction _correction, 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)
@Field(index=UN_TOKENIZED) @Field(index=UN_TOKENIZED,name="combined_fields") public java.lang.Double getNominalMagnification()
public void setNominalMagnification(java.lang.Double nominalMagnification)
@Field(index=UN_TOKENIZED) @Field(index=UN_TOKENIZED,name="combined_fields") public java.lang.Double getCalibratedMagnification()
public void setCalibratedMagnification(java.lang.Double calibratedMagnification)
@Field(index=UN_TOKENIZED) @Field(index=UN_TOKENIZED,name="combined_fields") public java.lang.Double getLensNA()
public void setLensNA(java.lang.Double lensNA)
public Immersion getImmersion()
public void setImmersion(Immersion immersion)
public Correction getCorrection()
public void setCorrection(Correction correction)
public Length getWorkingDistance()
public void setWorkingDistance(Length workingDistance)
public java.lang.Boolean getIris()
public void setIris(java.lang.Boolean iris)
public Instrument getInstrument()
public void setInstrument(Instrument instrument)
protected java.util.Set<ObjectiveAnnotationLink> getAnnotationLinks()
protected void setAnnotationLinks(java.util.Set<ObjectiveAnnotationLink> annotationLinks)
public int sizeOfAnnotationLinks()
sizeOfAnnotationLinks
in interface IAnnotated
public java.util.Iterator<ObjectiveAnnotationLink> iterateAnnotationLinks()
EmptyIterator
. To test for a null collection,
see of sizeOfAnnotationLinks()
is less than zero.iterateAnnotationLinks
in interface IAnnotated
public java.util.Collection<ObjectiveAnnotationLink> 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 addObjectiveAnnotationLink(ObjectiveAnnotationLink target)
public void addObjectiveAnnotationLinkSet(java.util.Collection<ObjectiveAnnotationLink> targets)
public void removeObjectiveAnnotationLink(ObjectiveAnnotationLink target)
public void removeObjectiveAnnotationLinkSet(java.util.Collection<ObjectiveAnnotationLink> targets)
public ObjectiveAnnotationLink linkAnnotation(Annotation addition)
linkAnnotation
in interface IAnnotated
public void addObjectiveAnnotationLink(ObjectiveAnnotationLink link, boolean bothSides)
public java.util.Iterator<Annotation> linkedAnnotationIterator()
ConcurrentModificationException
.
Use linkedAnnotationList()
instead.linkedAnnotationIterator
in interface IAnnotated
public java.util.Set<ObjectiveAnnotationLink> findObjectiveAnnotationLink(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 removeObjectiveAnnotationLink(ObjectiveAnnotationLink 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 Objective.Details
instance instead.public boolean isValid()
IObject
Validation.isValid()
public Validation validate()
IObject
Validation
object.public Objective newInstance()
public Objective 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.