public interface MetadataService extends SCIFIOService
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
parse(String data)
Parses key/value pairs from the given string, using the default separator
regex of
"[&\n]" (i.e., ampersand or newline). |
Map<String,Object> |
parse(String data,
String regex)
Parses key/value pairs from the given string, using the specified separator
regex.
|
void |
populate(Object metadata,
Map<String,Object> map)
Populates fields of the given metadata object with information from the
given map.
|
initialize, registerEventHandlersgetIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersiondisposestatic final String NAME_KEY
Map<String,Object> parse(String data)
"[&\n]" (i.e., ampersand or newline). Each key/value pair
is assumed to be separated with an equals sign character ('='). The value
can also be a list of values if each value is separated by a comma
character (',').Map<String,Object> parse(String data, String regex)
String.split(String)void populate(Object metadata, Map<String,Object> map)
Metadata object), but its instance fields
must be marked with the @Field annotation.metadata - The metadata object with annotated fields to populate.map - The map defining the values to use when populating the metadata.Copyright © 2011–2026 SCIFIO. All rights reserved.