Package ome.formats.model
Interface IObjectContainerStore
- 
- All Known Implementing Classes:
- OMEROMetadataStoreClient
 
 public interface IObjectContainerStoreAn object that handles the storage and manipulation of IObject containers and their references. This interface is generally used in tandem with the Bio-Formats defined MetadataStore.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddReference(ome.util.LSID source, ome.util.LSID target)Adds a reference to the reference cache.intcountCachedContainers(java.lang.Class<? extends IObject> klass, int... indexes)Counts the number of containers the MetadataStore has of a given class and at a given index of the hierarchy if specified.intcountCachedReferences(java.lang.Class<? extends IObject> source, java.lang.Class<? extends IObject> target)Counts the number of references the MetadataStore has between objects of two classes.java.util.Map<java.lang.Class<? extends IObject>,java.util.Map<java.lang.String,IObjectContainer>>getAuthoritativeContainerCache()Returns the current authoritative LSID container cache.java.util.Map<ome.util.LSID,IObjectContainer>getContainerCache()Returns the current container cache.IObjectContainergetIObjectContainer(java.lang.Class<? extends IObject> klass, java.util.LinkedHashMap<Index,java.lang.Integer> indexes)Retrieves an IObject container for a given class and location within the OME-XML data model.java.util.List<IObjectContainer>getIObjectContainers(java.lang.Class<? extends IObject> klass)Retrieves all IObject containers of a given class.loci.formats.IFormatReadergetReader()Returns the current Bio-Formats reader that has been used to populate the container store.java.util.Map<ome.util.LSID,java.util.List<ome.util.LSID>>getReferenceCache()Returns the current reference cache.java.util.Map<java.lang.String,java.lang.String[]>getReferenceStringCache()Returns the current string based reference cache.IObjectgetSourceObject(ome.util.LSID LSID)Retrieves an OMERO Blitz source object for a given LSID.<T extends IObject>
 java.util.List<T>getSourceObjects(java.lang.Class<T> klass)Retrieves all OMERO Blitz source objects of a given class.java.util.List<Annotation>getUserSpecifiedAnnotations()Returns the user specified annotations.java.lang.StringgetUserSpecifiedDescription()Returns the user specified image/plate description.java.lang.StringgetUserSpecifiedName()Returns the user specified image/plate name.java.lang.Double[]getUserSpecifiedPhysicalPixelSizes()Returns the user specified physical pixel sizes.IObjectgetUserSpecifiedTarget()Returns the user-specified linkage target (usually a Dataset for Images) and a Screen for Plates).booleanhasReference(ome.util.LSID source, ome.util.LSID target)Checks to see if there is currently an active reference for two LSIDs.voidremoveIObjectContainer(ome.util.LSID lsid)Removes an IObject container from within the OME-XML data model store.voidsetReader(loci.formats.IFormatReader reader)Sets the Bio-Formats reader that will be used to populate the container store.voidsetReferenceStringCache(java.util.Map<java.lang.String,java.lang.String[]> referenceStringCache)Sets the string based reference cache for this container store.voidsetUserSpecifiedAnnotations(java.util.List<Annotation> annotations)Sets the user specified image annotations.voidsetUserSpecifiedDescription(java.lang.String description)Sets the user specified image/plate description.voidsetUserSpecifiedName(java.lang.String name)Sets the user specified image/plate name.voidsetUserSpecifiedPhysicalPixelSizes(java.lang.Double physicalSizeX, java.lang.Double physicalSizeY, java.lang.Double physicalSizeZ)Sets the user specified physical pixel sizes.voidsetUserSpecifiedTarget(IObject target)Sets the user-specified linkage target (usually a Dataset for Images) and a Screen for Plates).
 
- 
- 
- 
Method Detail- 
getReaderloci.formats.IFormatReader getReader() Returns the current Bio-Formats reader that has been used to populate the container store.- Returns:
- See above.
 
 - 
setReadervoid setReader(loci.formats.IFormatReader reader) Sets the Bio-Formats reader that will be used to populate the container store.- Parameters:
- reader- Bio-Formats reader.
 
 - 
getUserSpecifiedAnnotationsjava.util.List<Annotation> getUserSpecifiedAnnotations() Returns the user specified annotations.- Returns:
- See above.
 
 - 
setUserSpecifiedAnnotationsvoid setUserSpecifiedAnnotations(java.util.List<Annotation> annotations) Sets the user specified image annotations.- Parameters:
- annotations- user specified annotations
 
 - 
getUserSpecifiedNamejava.lang.String getUserSpecifiedName() Returns the user specified image/plate name.- Returns:
- See above.
 
 - 
setUserSpecifiedNamevoid setUserSpecifiedName(java.lang.String name) Sets the user specified image/plate name.- Parameters:
- name- user specified image/plate name
 
 - 
getUserSpecifiedDescriptionjava.lang.String getUserSpecifiedDescription() Returns the user specified image/plate description.- Returns:
- See above.
 
 - 
setUserSpecifiedDescriptionvoid setUserSpecifiedDescription(java.lang.String description) Sets the user specified image/plate description.- Parameters:
- description- user-specified image/plate description
 
 - 
getUserSpecifiedTargetIObject getUserSpecifiedTarget() Returns the user-specified linkage target (usually a Dataset for Images) and a Screen for Plates).- Returns:
- See above.
 
 - 
setUserSpecifiedTargetvoid setUserSpecifiedTarget(IObject target) Sets the user-specified linkage target (usually a Dataset for Images) and a Screen for Plates).- Parameters:
- target- user-specified linkage target
 
 - 
getUserSpecifiedPhysicalPixelSizesjava.lang.Double[] getUserSpecifiedPhysicalPixelSizes() Returns the user specified physical pixel sizes.- Returns:
- An array of double[] { physicalSizeX, physicalSizeY,
 physicalSizeZ } as specified by the user. A value of nullfor any one index states the user has not made a choice for the size of that particular dimension.
 
 - 
setUserSpecifiedPhysicalPixelSizesvoid setUserSpecifiedPhysicalPixelSizes(java.lang.Double physicalSizeX, java.lang.Double physicalSizeY, java.lang.Double physicalSizeZ)Sets the user specified physical pixel sizes. A value ofnullstates the original file physical size for that dimension should be used.- Parameters:
- physicalSizeX- Physical pixel size width.
- physicalSizeY- Physical pixel height.
- physicalSizeZ- Physical pixel depth.
 
 - 
getAuthoritativeContainerCachejava.util.Map<java.lang.Class<? extends IObject>,java.util.Map<java.lang.String,IObjectContainer>> getAuthoritativeContainerCache() Returns the current authoritative LSID container cache. This container cache records the explicitly set LSID to container references.- Returns:
- See above.
 
 - 
getContainerCachejava.util.Map<ome.util.LSID,IObjectContainer> getContainerCache() Returns the current container cache.- Returns:
- See above.
 
 - 
getReferenceCachejava.util.Map<ome.util.LSID,java.util.List<ome.util.LSID>> getReferenceCache() Returns the current reference cache.- Returns:
- See above.
 
 - 
addReferencevoid addReference(ome.util.LSID source, ome.util.LSID target)Adds a reference to the reference cache.- Parameters:
- source- Source LSID to add.
- target- Target LSID to add.
 
 - 
getReferenceStringCachejava.util.Map<java.lang.String,java.lang.String[]> getReferenceStringCache() Returns the current string based reference cache. This is usually populated by a ReferenceProcessor instance.- Returns:
- See above.
 
 - 
setReferenceStringCachevoid setReferenceStringCache(java.util.Map<java.lang.String,java.lang.String[]> referenceStringCache) Sets the string based reference cache for this container store. This is usually called by a ReferenceProcessor instance.- Parameters:
- referenceStringCache- String based reference cache to use.
 
 - 
getSourceObjectIObject getSourceObject(ome.util.LSID LSID) Retrieves an OMERO Blitz source object for a given LSID.- Parameters:
- LSID- LSID to retrieve a source object for.
- Returns:
- See above.
 
 - 
getSourceObjects<T extends IObject> java.util.List<T> getSourceObjects(java.lang.Class<T> klass) Retrieves all OMERO Blitz source objects of a given class.- Parameters:
- klass- Class to retrieve source objects for.
- Returns:
- See above.
 
 - 
getIObjectContainerIObjectContainer getIObjectContainer(java.lang.Class<? extends IObject> klass, java.util.LinkedHashMap<Index,java.lang.Integer> indexes) Retrieves an IObject container for a given class and location within the OME-XML data model. NOTE: The container will be created if it does not already exist.- Parameters:
- klass- Class to retrieve a container for.
- indexes- Indexes into the OME-XML data model.
- Returns:
- See above.
 
 - 
removeIObjectContainervoid removeIObjectContainer(ome.util.LSID lsid) Removes an IObject container from within the OME-XML data model store.- Parameters:
- lsid- LSID of the container to remove.
 
 - 
getIObjectContainersjava.util.List<IObjectContainer> getIObjectContainers(java.lang.Class<? extends IObject> klass) Retrieves all IObject containers of a given class. NOTE: this will only return existing containers.- Parameters:
- klass- Class to retrieve containers for.
- Returns:
- See above.
 
 - 
countCachedContainersint countCachedContainers(java.lang.Class<? extends IObject> klass, int... indexes) Counts the number of containers the MetadataStore has of a given class and at a given index of the hierarchy if specified.- Parameters:
- klass- Class to count containers of.
- indexes- Indexes to use in the container count. For example, if- klassis- Imageand indexes is- int[] { 0 };only containers that have an LSID of type- Imageand a first index of- 0will be counted.
- Returns:
- See above.
 
 - 
countCachedReferencesint countCachedReferences(java.lang.Class<? extends IObject> source, java.lang.Class<? extends IObject> target) Counts the number of references the MetadataStore has between objects of two classes.- Parameters:
- source- Class of the source object. If- nullit is treated as a wild card, all references whose target match- targetwill be counted.
- target- Class of the target object. If- nullit is treated as a wild card, all references whose source match- sourcewill be counted.
- Returns:
- See above.
 
 - 
hasReferenceboolean hasReference(ome.util.LSID source, ome.util.LSID target)Checks to see if there is currently an active reference for two LSIDs.- Parameters:
- source- LSID of the source object.
- target- LSID of the target object.
- Returns:
- trueif a reference exists,- falseotherwise.
 
 
- 
 
-