@Entity @Indexed(index="FullText") @ClassBridge(name="details", impl=DetailsFieldBridge.class, index=UN_TOKENIZED, store=NO) public class Image extends Object implements Serializable, IObject, IMutable, IAnnotated
Modifier and Type | Class and Description |
---|---|
static class |
Image.Details |
Modifier | Constructor and Description |
---|---|
|
Image() |
protected |
Image(Long id) |
|
Image(Long id,
boolean loaded)
Main constructor.
|
|
Image(String _name) |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptFilter(Filter __filter) |
void |
addDatasetImageLink(DatasetImageLink target)
use instead of setDatasetLinks .
|
void |
addDatasetImageLink(DatasetImageLink link,
boolean bothSides)
Adds a ome.model.containers.DatasetImageLink to datasetLinks, allowing for recursion -- whether
or not addDatasetImageLink will be called on the addition if it is loaded
|
void |
addDatasetImageLinkSet(Collection<DatasetImageLink> targets)
use like addDatasetImageLink.
|
void |
addFolderImageLink(FolderImageLink target)
use instead of setFolderLinks .
|
void |
addFolderImageLink(FolderImageLink link,
boolean bothSides)
Adds a ome.model.containers.FolderImageLink to folderLinks, allowing for recursion -- whether
or not addFolderImageLink will be called on the addition if it is loaded
|
void |
addFolderImageLinkSet(Collection<FolderImageLink> targets)
use like addFolderImageLink.
|
void |
addImageAnnotationLink(ImageAnnotationLink target)
use instead of setAnnotationLinks .
|
void |
addImageAnnotationLink(ImageAnnotationLink link,
boolean bothSides)
Adds a ome.model.annotations.ImageAnnotationLink to annotationLinks, allowing for recursion -- whether
or not addImageAnnotationLink will be called on the addition if it is loaded
|
void |
addImageAnnotationLinkSet(Collection<ImageAnnotationLink> targets)
use like addImageAnnotationLink.
|
void |
addPixels(Pixels target)
use instead of setPixels .
|
void |
addPixelsSet(Collection<Pixels> targets)
use like addPixels.
|
void |
addRoi(Roi target)
use instead of setRois .
|
void |
addRoiSet(Collection<Roi> targets)
use like addRoi.
|
void |
addWellSample(WellSample target)
use instead of setWellSamples .
|
void |
addWellSampleSet(Collection<WellSample> targets)
use like addWellSample.
|
void |
clearAnnotationLinks()
clears the set.
|
void |
clearDatasetLinks()
clears the set.
|
void |
clearFolderLinks()
clears the set.
|
void |
clearPixels()
clears the set.
|
void |
clearRois()
clears the set.
|
void |
clearWellSamples()
clears the set.
|
<E> List<E> |
collectAnnotationLinks(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.annotations.ImageAnnotationLink while
collecting the results.
|
<E> List<E> |
collectDatasetLinks(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.containers.DatasetImageLink while
collecting the results.
|
<E> List<E> |
collectFolderLinks(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.containers.FolderImageLink while
collecting the results.
|
<E> List<E> |
collectPixels(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.core.Pixels while
collecting the results.
|
<E> List<E> |
collectRois(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.roi.Roi while
collecting the results.
|
<E> List<E> |
collectWellSamples(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.screen.WellSample 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> |
eachLinkedDataset(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.containers.Dataset while
collecting the results.
|
<E> List<E> |
eachLinkedFolder(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.containers.Folder while
collecting the results.
|
protected void |
errorIfUnloaded() |
Set<String> |
fields()
returns a Set of field names that belong to this class
|
Set<DatasetImageLink> |
findDatasetImageLink(Dataset target)
find all ome.model.containers.DatasetImageLink which have the argument as their parent.
|
Set<FolderImageLink> |
findFolderImageLink(Folder target)
find all ome.model.containers.FolderImageLink which have the argument as their parent.
|
Set<ImageAnnotationLink> |
findImageAnnotationLink(Annotation target)
find all ome.model.annotations.ImageAnnotationLink which have the argument as their child.
|
Timestamp |
getAcquisitionDate()
Simple field ome.model.core.Image.acquisitionDate (java.sql.Timestamp)
|
protected Set<ImageAnnotationLink> |
getAnnotationLinks()
returns annotationLinks .
|
Map<Long,Long> |
getAnnotationLinksCountPerOwner()
If fetched, returns the count(*) of ome.model.annotations.ImageAnnotationLink that a user has.
|
Boolean |
getArchived()
Simple field ome.model.core.Image.archived (java.lang.Boolean)
|
protected Set<DatasetImageLink> |
getDatasetLinks()
returns datasetLinks .
|
Map<Long,Long> |
getDatasetLinksCountPerOwner()
If fetched, returns the count(*) of ome.model.containers.DatasetImageLink that a user has.
|
String |
getDescription()
Simple field ome.model.core.Image.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.core.Image.experiment (ome.model.experiment.Experiment)
|
Fileset |
getFileset()
Many-to-one field ome.model.core.Image.fileset (ome.model.fs.Fileset)
|
protected Set<FolderImageLink> |
getFolderLinks()
returns folderLinks .
|
Map<Long,Long> |
getFolderLinksCountPerOwner()
If fetched, returns the count(*) of ome.model.containers.FolderImageLink that a user has.
|
Format |
getFormat()
Many-to-one field ome.model.core.Image.format (ome.model.enums.Format)
|
GraphHolder |
getGraphHolder()
retrieves the
GraphHolder for this entity. |
Long |
getId()
The DB unique identifier for this object.
|
ImagingEnvironment |
getImagingEnvironment()
Many-to-one field ome.model.core.Image.imagingEnvironment (ome.model.acquisition.ImagingEnvironment)
|
Instrument |
getInstrument()
Many-to-one field ome.model.core.Image.instrument (ome.model.acquisition.Instrument)
|
String |
getName()
Simple field ome.model.core.Image.name (java.lang.String)
|
ObjectiveSettings |
getObjectiveSettings()
Many-to-one field ome.model.core.Image.objectiveSettings (ome.model.acquisition.ObjectiveSettings)
|
Boolean |
getPartial()
Simple field ome.model.core.Image.partial (java.lang.Boolean)
|
protected List<Pixels> |
getPixels()
returns pixels .
|
Pixels |
getPixels(int index)
Gets the ome.model.core.Pixels at the given index.
|
Pixels |
getPrimaryPixels()
Gets the first element of pixels which can be interpreted as the
primary or default element in some situations.
|
protected Set<Roi> |
getRois()
returns rois .
|
Integer |
getSeries()
Simple field ome.model.core.Image.series (java.lang.Integer)
|
StageLabel |
getStageLabel()
Many-to-one field ome.model.core.Image.stageLabel (ome.model.acquisition.StageLabel)
|
Integer |
getVersion()
This version number is controlled by the database for optimisitic
locking.
|
protected Set<WellSample> |
getWellSamples()
returns wellSamples .
|
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<ImageAnnotationLink> |
iterateAnnotationLinks()
should be used rather than accessing the annotationLinks set directly.
|
Iterator<DatasetImageLink> |
iterateDatasetLinks()
should be used rather than accessing the datasetLinks set directly.
|
Iterator<FolderImageLink> |
iterateFolderLinks()
should be used rather than accessing the folderLinks set directly.
|
Iterator<Pixels> |
iteratePixels()
should be used rather than accessing the pixels set directly.
|
Iterator<Roi> |
iterateRois()
should be used rather than accessing the rois set directly.
|
Iterator<WellSample> |
iterateWellSamples()
should be used rather than accessing the wellSamples set directly.
|
ImageAnnotationLink |
linkAnnotation(Annotation addition)
Adds a ome.model.annotations.ImageAnnotationLink to annotationLinks .
|
DatasetImageLink |
linkDataset(Dataset addition)
Adds a ome.model.containers.DatasetImageLink to datasetLinks .
|
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<Dataset> |
linkedDatasetIterator()
provides an iterator over the child values of the datasetLinks.
|
List<Dataset> |
linkedDatasetList()
produces a
List -copy of the underlying collection. |
Iterator<Folder> |
linkedFolderIterator()
provides an iterator over the child values of the folderLinks.
|
List<Folder> |
linkedFolderList()
produces a
List -copy of the underlying collection. |
FolderImageLink |
linkFolder(Folder addition)
Adds a ome.model.containers.FolderImageLink to folderLinks .
|
Image |
newInstance() |
Image |
proxy() |
void |
putAt(String field,
Object value)
stores a value in this instance.
|
void |
removeDatasetImageLink(DatasetImageLink target)
removes a single element from this set and makes the inverse call on ome.model.containers.DatasetImageLink
|
void |
removeDatasetImageLink(DatasetImageLink link,
boolean bothSides)
removes the given DatasetImageLink from datasetLinks, allowing for recursion -- whether
or not the removal will call unlinkImage again if loaded.
|
void |
removeDatasetImageLinkSet(Collection<DatasetImageLink> targets)
use like removeDatasetImageLink
|
void |
removeFolderImageLink(FolderImageLink target)
removes a single element from this set and makes the inverse call on ome.model.containers.FolderImageLink
|
void |
removeFolderImageLink(FolderImageLink link,
boolean bothSides)
removes the given FolderImageLink from folderLinks, allowing for recursion -- whether
or not the removal will call unlinkImage again if loaded.
|
void |
removeFolderImageLinkSet(Collection<FolderImageLink> targets)
use like removeFolderImageLink
|
void |
removeImageAnnotationLink(ImageAnnotationLink target)
removes a single element from this set and makes the inverse call on ome.model.annotations.ImageAnnotationLink
|
void |
removeImageAnnotationLink(ImageAnnotationLink link,
boolean bothSides)
removes the given ImageAnnotationLink from annotationLinks, allowing for recursion -- whether
or not the removal will call unlinkImage again if loaded.
|
void |
removeImageAnnotationLinkSet(Collection<ImageAnnotationLink> targets)
use like removeImageAnnotationLink
|
void |
removePixels(Pixels target)
removes a single element from this set and makes the inverse call on ome.model.core.Pixels
|
void |
removePixelsSet(Collection<Pixels> targets)
use like removePixels
|
void |
removeRoi(Roi target)
removes a single element from this set and makes the inverse call on ome.model.roi.Roi
|
void |
removeRoiSet(Collection<Roi> targets)
use like removeRoi
|
void |
removeWellSample(WellSample target)
removes a single element from this set and makes the inverse call on ome.model.screen.WellSample
|
void |
removeWellSampleSet(Collection<WellSample> targets)
use like removeWellSample
|
Object |
retrieve(String field)
retrieves a value from this instance.
|
void |
setAcquisitionDate(Timestamp acquisitionDate) |
protected void |
setAnnotationLinks(Set<ImageAnnotationLink> annotationLinks)
setter for annotationLinks should be avoided.
|
protected void |
setAnnotationLinksCountPerOwner(Map<Long,Long> map) |
void |
setArchived(Boolean archived) |
protected void |
setDatasetLinks(Set<DatasetImageLink> datasetLinks)
setter for datasetLinks should be avoided.
|
protected void |
setDatasetLinksCountPerOwner(Map<Long,Long> map) |
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 Image.Details instance instead. |
void |
setExperiment(Experiment experiment) |
void |
setFileset(Fileset fileset) |
protected void |
setFolderLinks(Set<FolderImageLink> folderLinks)
setter for folderLinks should be avoided.
|
protected void |
setFolderLinksCountPerOwner(Map<Long,Long> map) |
void |
setFormat(Format format) |
void |
setId(Long id)
usually unneeded.
|
void |
setImagingEnvironment(ImagingEnvironment imagingEnvironment) |
void |
setInstrument(Instrument instrument) |
void |
setName(String name) |
void |
setObjectiveSettings(ObjectiveSettings objectiveSettings) |
void |
setPartial(Boolean partial) |
Pixels |
setPixels(int index,
Pixels element)
Sets the ome.model.core.Pixels at the given index.
|
protected void |
setPixels(List<Pixels> pixels)
setter for pixels should be avoided.
|
Pixels |
setPrimaryPixels(Pixels element)
Swaps the first element of pixels with the first instance of the
given element.
|
protected void |
setRois(Set<Roi> rois)
setter for rois should be avoided.
|
void |
setSeries(Integer series) |
void |
setStageLabel(StageLabel stageLabel) |
void |
setVersion(Integer version)
use with caution.
|
protected void |
setWellSamples(Set<WellSample> wellSamples)
setter for wellSamples should be avoided.
|
int |
sizeOfAnnotationLinks()
returns the size of annotationLinks.
|
int |
sizeOfDatasetLinks()
returns the size of datasetLinks.
|
int |
sizeOfFolderLinks()
returns the size of folderLinks.
|
int |
sizeOfPixels()
returns the size of pixels.
|
int |
sizeOfRois()
returns the size of rois.
|
int |
sizeOfWellSamples()
returns the size of wellSamples.
|
protected void |
throwNullCollectionException(String propertyName) |
String |
toString() |
void |
unlinkAnnotation(Annotation removal)
unlinks all ome.model.annotations.Annotation instances from this instance.
|
void |
unlinkDataset(Dataset removal)
unlinks all ome.model.containers.Dataset instances from this instance.
|
void |
unlinkFolder(Folder removal)
unlinks all ome.model.containers.Folder instances from this instance.
|
void |
unload()
set the loaded field to false, and set all non-ID fields to null.
|
Collection<ImageAnnotationLink> |
unmodifiableAnnotationLinks()
Returns an unmodifiable collection-view
|
Collection<DatasetImageLink> |
unmodifiableDatasetLinks()
Returns an unmodifiable collection-view
|
Collection<FolderImageLink> |
unmodifiableFolderLinks()
Returns an unmodifiable collection-view
|
Collection<Pixels> |
unmodifiablePixels()
Returns an unmodifiable collection-view
|
Collection<Roi> |
unmodifiableRois()
Returns an unmodifiable collection-view
|
Collection<WellSample> |
unmodifiableWellSamples()
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 Integer series
protected Timestamp acquisitionDate
protected Boolean archived
protected Boolean partial
protected Format format
protected ImagingEnvironment imagingEnvironment
protected ObjectiveSettings objectiveSettings
protected Instrument instrument
protected StageLabel stageLabel
protected Experiment experiment
public static final String OWNER_FILTER_PIXELS
public static final String GROUP_FILTER_PIXELS
public static final String EVENT_FILTER_PIXELS
public static final String PERMS_FILTER_PIXELS
protected Set<WellSample> wellSamples
public static final String OWNER_FILTER_WELLSAMPLES
public static final String GROUP_FILTER_WELLSAMPLES
public static final String EVENT_FILTER_WELLSAMPLES
public static final String PERMS_FILTER_WELLSAMPLES
public static final String OWNER_FILTER_ROIS
public static final String GROUP_FILTER_ROIS
public static final String EVENT_FILTER_ROIS
public static final String PERMS_FILTER_ROIS
protected Set<DatasetImageLink> datasetLinks
public static final String OWNER_FILTER_DATASETLINKS
public static final String GROUP_FILTER_DATASETLINKS
public static final String EVENT_FILTER_DATASETLINKS
public static final String PERMS_FILTER_DATASETLINKS
protected Set<FolderImageLink> folderLinks
public static final String OWNER_FILTER_FOLDERLINKS
public static final String GROUP_FILTER_FOLDERLINKS
public static final String EVENT_FILTER_FOLDERLINKS
public static final String PERMS_FILTER_FOLDERLINKS
protected Fileset fileset
protected Set<ImageAnnotationLink> 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 String name
protected String description
protected Details details
public static final String SERIES
public static final String ACQUISITIONDATE
public static final String ARCHIVED
public static final String PARTIAL
public static final String FORMAT
public static final String IMAGINGENVIRONMENT
public static final String OBJECTIVESETTINGS
public static final String INSTRUMENT
public static final String STAGELABEL
public static final String EXPERIMENT
public static final String PIXELS
public static final String WELLSAMPLES
public static final String ROIS
public static final String DATASETLINKSCOUNTPEROWNER
public static final String DATASETLINKS
public static final String FOLDERLINKSCOUNTPEROWNER
public static final String FOLDERLINKS
public static final String FILESET
public static final String ANNOTATIONLINKSCOUNTPEROWNER
public static final String ANNOTATIONLINKS
public static final String NAME
public static final String DESCRIPTION
public static final String DETAILS
protected boolean _loaded
public Image()
protected Image(Long id)
public Image(Long id, boolean loaded)
public Image(String _name)
@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=UN_TOKENIZED) @Field(index=UN_TOKENIZED,name="combined_fields") public Integer getSeries()
public void setSeries(Integer series)
@DateBridge(resolution=MINUTE) @Field(index=UN_TOKENIZED) @Field(index=UN_TOKENIZED,name="combined_fields") public Timestamp getAcquisitionDate()
public void setAcquisitionDate(Timestamp acquisitionDate)
public Boolean getArchived()
public void setArchived(Boolean archived)
public Boolean getPartial()
public void setPartial(Boolean partial)
public Format getFormat()
public void setFormat(Format format)
public ImagingEnvironment getImagingEnvironment()
public void setImagingEnvironment(ImagingEnvironment imagingEnvironment)
public ObjectiveSettings getObjectiveSettings()
public void setObjectiveSettings(ObjectiveSettings objectiveSettings)
public Instrument getInstrument()
public void setInstrument(Instrument instrument)
public StageLabel getStageLabel()
public void setStageLabel(StageLabel stageLabel)
public Experiment getExperiment()
public void setExperiment(Experiment experiment)
protected List<Pixels> getPixels()
protected void setPixels(List<Pixels> pixels)
public int sizeOfPixels()
public Iterator<Pixels> iteratePixels()
EmptyIterator
. To test for a null collection,
see of sizeOfPixels()
is less than zero.public Collection<Pixels> unmodifiablePixels()
public <E> List<E> collectPixels(CBlock<E> block)
block == null
, then the
iterator values themselves are collected. This method uses
iteratePixels()
internally and so will return a value
even if the underlying collection is null.public void addPixels(Pixels target)
public void addPixelsSet(Collection<Pixels> targets)
public void removePixels(Pixels target)
public void removePixelsSet(Collection<Pixels> targets)
public void clearPixels()
public Pixels getPixels(int index) throws IndexOutOfBoundsException
IndexOutOfBoundsException
public Pixels setPixels(int index, Pixels element) throws IndexOutOfBoundsException
List.set(int, Object)
contract. To extend the list, use addPixels(Pixels)
.IndexOutOfBoundsException
List.set(int, Object)
public Pixels getPrimaryPixels() throws IndexOutOfBoundsException
IndexOutOfBoundsException
is throws. This method
will also throw an ApiUsageException
if the collection is
unloaded. See sizeOfPixels()
for more information.IndexOutOfBoundsException
public Pixels setPrimaryPixels(Pixels element) throws IndexOutOfBoundsException
IndexOutOfBoundsException
will be thrown. Returns the swapped
element. This method
will also throw an ApiUsageException
if the collection is
unloaded. See sizeOfPixels()
for more information.IndexOutOfBoundsException
protected Set<WellSample> getWellSamples()
protected void setWellSamples(Set<WellSample> wellSamples)
public int sizeOfWellSamples()
public Iterator<WellSample> iterateWellSamples()
EmptyIterator
. To test for a null collection,
see of sizeOfWellSamples()
is less than zero.public Collection<WellSample> unmodifiableWellSamples()
public <E> List<E> collectWellSamples(CBlock<E> block)
block == null
, then the
iterator values themselves are collected. This method uses
iterateWellSamples()
internally and so will return a value
even if the underlying collection is null.public void addWellSample(WellSample target)
public void addWellSampleSet(Collection<WellSample> targets)
public void removeWellSample(WellSample target)
public void removeWellSampleSet(Collection<WellSample> targets)
public void clearWellSamples()
protected Set<Roi> getRois()
protected void setRois(Set<Roi> rois)
public int sizeOfRois()
public Iterator<Roi> iterateRois()
EmptyIterator
. To test for a null collection,
see of sizeOfRois()
is less than zero.public Collection<Roi> unmodifiableRois()
public <E> List<E> collectRois(CBlock<E> block)
block == null
, then the
iterator values themselves are collected. This method uses
iterateRois()
internally and so will return a value
even if the underlying collection is null.public void addRoi(Roi target)
public void addRoiSet(Collection<Roi> targets)
public void removeRoi(Roi target)
public void removeRoiSet(Collection<Roi> targets)
public void clearRois()
protected Set<DatasetImageLink> getDatasetLinks()
protected void setDatasetLinks(Set<DatasetImageLink> datasetLinks)
public int sizeOfDatasetLinks()
public Iterator<DatasetImageLink> iterateDatasetLinks()
EmptyIterator
. To test for a null collection,
see of sizeOfDatasetLinks()
is less than zero.public Collection<DatasetImageLink> unmodifiableDatasetLinks()
public <E> List<E> collectDatasetLinks(CBlock<E> block)
block == null
, then the
iterator values themselves are collected. This method uses
iterateDatasetLinks()
internally and so will return a value
even if the underlying collection is null.public void addDatasetImageLink(DatasetImageLink target)
public void addDatasetImageLinkSet(Collection<DatasetImageLink> targets)
public void removeDatasetImageLink(DatasetImageLink target)
public void removeDatasetImageLinkSet(Collection<DatasetImageLink> targets)
public DatasetImageLink linkDataset(Dataset addition)
public void addDatasetImageLink(DatasetImageLink link, boolean bothSides)
public Iterator<Dataset> linkedDatasetIterator()
ConcurrentModificationException
.
Use linkedDatasetList()
instead.public Set<DatasetImageLink> findDatasetImageLink(Dataset target)
public List<Dataset> linkedDatasetList()
List
-copy of the underlying collection. Unlike,
linkedDatasetIterator()
, while using the returned List
,
modifications can be made to the underlying collection without throwing
ConcurrentModificationException
.public <E> List<E> eachLinkedDataset(CBlock<E> block)
block == null
, then the
iterator values themselves are collected.public void unlinkDataset(Dataset removal)
public void removeDatasetImageLink(DatasetImageLink link, boolean bothSides)
public void clearDatasetLinks()
public Map<Long,Long> getDatasetLinksCountPerOwner()
protected Set<FolderImageLink> getFolderLinks()
protected void setFolderLinks(Set<FolderImageLink> folderLinks)
public int sizeOfFolderLinks()
public Iterator<FolderImageLink> iterateFolderLinks()
EmptyIterator
. To test for a null collection,
see of sizeOfFolderLinks()
is less than zero.public Collection<FolderImageLink> unmodifiableFolderLinks()
public <E> List<E> collectFolderLinks(CBlock<E> block)
block == null
, then the
iterator values themselves are collected. This method uses
iterateFolderLinks()
internally and so will return a value
even if the underlying collection is null.public void addFolderImageLink(FolderImageLink target)
public void addFolderImageLinkSet(Collection<FolderImageLink> targets)
public void removeFolderImageLink(FolderImageLink target)
public void removeFolderImageLinkSet(Collection<FolderImageLink> targets)
public FolderImageLink linkFolder(Folder addition)
public void addFolderImageLink(FolderImageLink link, boolean bothSides)
public Iterator<Folder> linkedFolderIterator()
ConcurrentModificationException
.
Use linkedFolderList()
instead.public Set<FolderImageLink> findFolderImageLink(Folder target)
public List<Folder> linkedFolderList()
List
-copy of the underlying collection. Unlike,
linkedFolderIterator()
, while using the returned List
,
modifications can be made to the underlying collection without throwing
ConcurrentModificationException
.public <E> List<E> eachLinkedFolder(CBlock<E> block)
block == null
, then the
iterator values themselves are collected.public void unlinkFolder(Folder removal)
public void removeFolderImageLink(FolderImageLink link, boolean bothSides)
public void clearFolderLinks()
public Map<Long,Long> getFolderLinksCountPerOwner()
public Fileset getFileset()
public void setFileset(Fileset fileset)
protected Set<ImageAnnotationLink> getAnnotationLinks()
protected void setAnnotationLinks(Set<ImageAnnotationLink> annotationLinks)
public int sizeOfAnnotationLinks()
sizeOfAnnotationLinks
in interface IAnnotated
public Iterator<ImageAnnotationLink> iterateAnnotationLinks()
EmptyIterator
. To test for a null collection,
see of sizeOfAnnotationLinks()
is less than zero.iterateAnnotationLinks
in interface IAnnotated
public Collection<ImageAnnotationLink> 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 addImageAnnotationLink(ImageAnnotationLink target)
public void addImageAnnotationLinkSet(Collection<ImageAnnotationLink> targets)
public void removeImageAnnotationLink(ImageAnnotationLink target)
public void removeImageAnnotationLinkSet(Collection<ImageAnnotationLink> targets)
public ImageAnnotationLink linkAnnotation(Annotation addition)
linkAnnotation
in interface IAnnotated
public void addImageAnnotationLink(ImageAnnotationLink link, boolean bothSides)
public Iterator<Annotation> linkedAnnotationIterator()
ConcurrentModificationException
.
Use linkedAnnotationList()
instead.linkedAnnotationIterator
in interface IAnnotated
public Set<ImageAnnotationLink> findImageAnnotationLink(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 removeImageAnnotationLink(ImageAnnotationLink link, boolean bothSides)
public void clearAnnotationLinks()
clearAnnotationLinks
in interface IAnnotated
public Map<Long,Long> getAnnotationLinksCountPerOwner()
@Field(index=TOKENIZED) @Field(index=TOKENIZED,name="combined_fields") public String getName()
public void setName(String name)
@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 Image.Details
instance instead.public boolean isValid()
IObject
Validation.isValid()
public Validation validate()
IObject
Validation
object.public Image newInstance()
public Image 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.5-ice35-b73
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.