public abstract class AbstractMetadataWrapper extends AbstractMetadata implements MetadataWrapper
MetadataWrapper.
To create a MetadataWrapper that is paired with a specific
Filter, simply extend this class, override any methods as desired,
and annotate the class using Plugin as appropriate. The wrapper will
automatically be discovered and applied when a new instance of its
Filter is instantiated, assuming the Filter is a subclass of
AbstractReaderFilter
Plugin,
MetadataWrapper,
AbstractReaderFilter,
Serialized Form| Constructor and Description |
|---|
AbstractMetadataWrapper() |
AbstractMetadataWrapper(Metadata metadata) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(ImageMetadata meta)
Adds the provided image metadata to this dataset metadata
|
void |
add(ImageMetadata meta,
boolean passUp) |
void |
close(boolean fileOnly)
Closes the image source(s) associated with this component, with a toggle to
determine if the component itself is reset.
|
Format |
getFormat()
Provides a link back to the format associated with this component.
|
String |
getFormatName()
Helper method for accessing
Format.getFormatName(). |
MetaTable |
getTable() |
void |
populateImageMetadata()
Generates format-agnostic image metadata structures based on this
instance's format-specific metadata.
|
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,
boolean passUp) |
Metadata |
unwrap() |
void |
wrap(Metadata meta)
Sets the
Metadata this wrapper will delegate to. |
createImageMetadata, get, getAll, getDatasetName, getDatasetSize, getDestinationLocation, getImageCount, getSource, getSourceLocation, isFiltered, setDatasetName, setDestinationLocation, setFiltered, setTablecloseasBrowsableLocation, asBrowsableLocationgetVersion, loggetInfo, getPriority, setInfo, setPriority, toStringcontext, getContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfilterTypecreateImageMetadata, get, getAll, getDatasetName, getDatasetSize, getDestinationLocation, getImageCount, getSource, getSourceLocation, isFiltered, setDatasetName, setDestinationLocation, setFilteredgetVersion, loggetIdentifiercontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationsetTablepublic AbstractMetadataWrapper()
public AbstractMetadataWrapper(Metadata metadata)
public Metadata unwrap()
unwrap in interface MetadataWrapperMetadata used for delegation by this wrapper.public void wrap(Metadata meta)
MetadataWrapperMetadata this wrapper will delegate to. Necessary for the
sake of a zero-parameter constructor to allow SezPoz discovery.wrap in interface MetadataWrappermeta - - The Metadata instance to wrappublic MetaTable getTable()
getTable in interface HasMetaTablegetTable in class AbstractMetadatapublic void setTable(MetaTable table, boolean passUp)
setTable in interface MetadataWrapperpublic void add(ImageMetadata meta, boolean passUp)
add in interface MetadataWrapperpublic void add(ImageMetadata meta)
Metadataadd in interface Metadataadd in class AbstractMetadatapublic void setSource(org.scijava.io.handle.DataHandle<org.scijava.io.location.Location> source)
MetadatasetSource in interface MetadatasetSource in class AbstractMetadatasource - - Input source for this 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 MetadatasetSourceLocation in class AbstractMetadataloc - the source locationpublic void populateImageMetadata()
MetadatapopulateImageMetadata in interface Metadatapublic Format getFormat()
HasFormatgetFormat in interface HasFormatgetFormat in class AbstractHasFormatpublic String getFormatName()
HasFormatFormat.getFormatName(). Some
Formats may be polymorphic and wish to provide additional name
information based on the specific dataset open - this method allows
overriding of that behavior.getFormatName in interface HasFormatgetFormatName in class AbstractHasFormatpublic void close(boolean fileOnly)
throws IOException
HasSourceclose in interface HasSourceclose in class AbstractMetadatafileOnly - - If true, only the associated source(s) are closed.IOExceptionCopyright © 2011–2026 SCIFIO. All rights reserved.