public interface MetadataWrapper extends Metadata
Metadata. Used to create defensive copies of
metadata for manipulation by ReaderFilters, while
allowing for API modification if needed.
If a Reader-based Filter requires special functionality from its
Metadata, a companion MetadataWrapper can be implemented. Concrete
implementations of this interface should always be annotated with
Plugin so they can be dynamically found when constructing new
Filters.
NB: This interface duplicates the Metadata setter signatures, with the
addition of a passUp flag. If this flag is true, the wrapped metadata
will also have the corresponding value set. If not, only the wrapper will be
modified.
AbstractReaderFilter| Modifier and Type | Method and Description |
|---|---|
void |
add(ImageMetadata meta,
boolean passUp) |
Class<? extends Filter> |
filterType() |
void |
setTable(MetaTable table,
boolean passUp) |
Metadata |
unwrap() |
void |
wrap(Metadata meta)
Sets the
Metadata this wrapper will delegate to. |
add, createImageMetadata, get, getAll, getDatasetName, getDatasetSize, getDestinationLocation, getImageCount, getSource, getSourceLocation, isFiltered, populateImageMetadata, setDatasetName, setDestinationLocation, setFiltered, setSource, setSourceLocationgetFormat, getFormatNamegetVersion, loggetIdentifiercontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetTable, setTableMetadata unwrap()
Metadata used for delegation by this wrapper.void wrap(Metadata meta)
Metadata this wrapper will delegate to. Necessary for the
sake of a zero-parameter constructor to allow SezPoz discovery.meta - - The Metadata instance to wrapClass<? extends Filter> filterType()
Filter this MetadataWrapper is compatible
with.void setTable(MetaTable table, boolean passUp)
void add(ImageMetadata meta, boolean passUp)
Copyright © 2011–2026 SCIFIO. All rights reserved.