public abstract class AbstractMetadata extends AbstractHasSource implements TypedMetadata
Metadata implementations.Metadata,
Parser,
HasFormat,
Serialized Form| Constructor and Description |
|---|
AbstractMetadata() |
AbstractMetadata(List<ImageMetadata> list) |
AbstractMetadata(Metadata copy) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(ImageMetadata meta)
Adds the provided image metadata to this dataset metadata
|
void |
close(boolean fileOnly)
Closes the image source(s) associated with this component, with a toggle to
determine if the component itself is reset.
|
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() |
MetaTable |
getTable() |
boolean |
isFiltered()
Returns whether or not filterMetadata was set when parsing this Metadata
object.
|
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> source)
Sets the input source attached to this Metadata object.
|
void |
setSourceLocation(org.scijava.io.location.Location loc)
Sets the input source location.
|
void |
setTable(MetaTable table)
Sets the table for this component
|
closeasBrowsableLocation, asBrowsableLocation, getFormat, getFormatNamegetVersion, loggetInfo, getPriority, setInfo, setPriority, toStringcontext, getContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpopulateImageMetadatagetFormat, getFormatNamegetVersion, loggetIdentifiercontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationpublic AbstractMetadata()
public AbstractMetadata(Metadata copy)
public AbstractMetadata(List<ImageMetadata> list)
public void setSource(org.scijava.io.handle.DataHandle<org.scijava.io.location.Location> source)
Metadatapublic void setSourceLocation(org.scijava.io.location.Location loc)
MetadataMetadata.setSource(DataHandle) for Formats that operate on Locations
without a corresponding DataHandle.setSourceLocation in interface Metadataloc - the source locationpublic org.scijava.io.location.Location getSourceLocation()
getSourceLocation in interface MetadataMetadata.getSource().get()public org.scijava.io.location.Location getDestinationLocation()
getDestinationLocation in interface Metadatapublic void setDestinationLocation(org.scijava.io.location.Location loc)
MetadatasetDestinationLocation in interface Metadataloc - the destination locationpublic org.scijava.io.handle.DataHandle<org.scijava.io.location.Location> getSource()
Metadatapublic boolean isFiltered()
MetadataisFiltered in interface Metadatapublic String getDatasetName()
MetadatagetDatasetName in interface Metadatapublic ImageMetadata get(int imageIndex)
Metadatapublic List<ImageMetadata> getAll()
Metadatapublic int getImageCount()
MetadatagetImageCount in interface Metadatapublic long getDatasetSize()
MetadatagetDatasetSize in interface Metadatapublic void setDatasetName(String name)
MetadatasetDatasetName in interface Metadataname - - the dataset namepublic void setFiltered(boolean filtered)
MetadatasetFiltered in interface Metadatapublic void add(ImageMetadata meta)
Metadatapublic void createImageMetadata(int imageCount)
MetadatacreateImageMetadata in interface MetadataimageCount - - Number of ImageMetadata to create.public MetaTable getTable()
getTable in interface HasMetaTablepublic void setTable(MetaTable table)
HasMetaTablesetTable in interface HasMetaTabletable - - a MetaTable implementationpublic void close(boolean fileOnly)
throws IOException
HasSourceclose in interface HasSourcefileOnly - - If true, only the associated source(s) are closed.IOExceptionCopyright © 2011–2026 SCIFIO. All rights reserved.