public interface Metadata extends Serializable, HasFormat, HasSource, HasMetaTable
NB: When defining a new Metadata implementation, you will likely want to
create a corresponding Format implementation. Also, at a
minimum, a Translator should be implemented that can convert
between Metadata and the new Metadata.
Translator,
AbstractFormat| Modifier and Type | Method and Description |
|---|---|
void |
add(ImageMetadata meta)
Adds the provided image metadata to this dataset metadata
|
void |
createImageMetadata(int imageCount)
Creates the specified number of blank ImageMetadata.
|
ImageMetadata |
get(int imageIndex)
Returns the ImageMetadata at the specified image within this dataset.
|
List<ImageMetadata> |
getAll()
Returns the list of ImageMetadata associated with this dataset.
|
String |
getDatasetName()
Returns a String representation of this Dataset's name
|
long |
getDatasetSize()
Returns the size, in bytes, of the current dataset.
|
org.scijava.io.location.Location |
getDestinationLocation() |
int |
getImageCount()
Returns the number of images in this dataset.
|
org.scijava.io.handle.DataHandle<org.scijava.io.location.Location> |
getSource()
Returns the source used to generate this Metadata object.
|
org.scijava.io.location.Location |
getSourceLocation() |
boolean |
isFiltered()
Returns whether or not filterMetadata was set when parsing this Metadata
object.
|
void |
populateImageMetadata()
Generates format-agnostic image metadata structures based on this
instance's format-specific metadata.
|
void |
setDatasetName(String name)
Sets the name for this dataset.
|
void |
setDestinationLocation(org.scijava.io.location.Location loc)
Sets the output location.
|
void |
setFiltered(boolean filtered)
Sets whether this metadata was filtered when parsed.
|
void |
setSource(org.scijava.io.handle.DataHandle<org.scijava.io.location.Location> in)
Sets the input source attached to this Metadata object.
|
void |
setSourceLocation(org.scijava.io.location.Location loc)
Sets the input source location.
|
getFormat, getFormatNamegetVersion, loggetIdentifiercontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetTable, setTablevoid setSource(org.scijava.io.handle.DataHandle<org.scijava.io.location.Location> in)
in - - Input source for this Metadataorg.scijava.io.handle.DataHandle<org.scijava.io.location.Location> getSource()
void setSourceLocation(org.scijava.io.location.Location loc)
setSource(DataHandle) for Formats that operate on Locations
without a corresponding DataHandle.loc - the source locationvoid setDestinationLocation(org.scijava.io.location.Location loc)
loc - the destination locationorg.scijava.io.location.Location getDestinationLocation()
org.scijava.io.location.Location getSourceLocation()
getSource().get()boolean isFiltered()
void populateImageMetadata()
String getDatasetName()
ImageMetadata get(int imageIndex)
List<ImageMetadata> getAll()
int getImageCount()
long getDatasetSize()
void setDatasetName(String name)
name - - the dataset namevoid setFiltered(boolean filtered)
void add(ImageMetadata meta)
void createImageMetadata(int imageCount)
imageCount - - Number of ImageMetadata to create.Copyright © 2011–2026 SCIFIO. All rights reserved.