Module io.annot8.components.files
Class JsonExtractor.Settings
- java.lang.Object
-
- io.annot8.components.files.processors.RemoveSourceContentSettings
-
- io.annot8.components.files.processors.JsonExtractor.Settings
-
- All Implemented Interfaces:
io.annot8.api.settings.Settings
- Enclosing class:
- JsonExtractor
public static class JsonExtractor.Settings extends RemoveSourceContentSettings
-
-
Constructor Summary
Constructors Constructor Description Settings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getContentFields()List<String>getJsonExtension()List<String>getJsonlExtension()voidsetContentFields(List<String> contentFields)voidsetJsonExtension(List<String> jsonExtension)voidsetJsonlExtension(List<String> jsonlExtension)booleanvalidate()-
Methods inherited from class io.annot8.components.files.processors.RemoveSourceContentSettings
isRemoveSourceContent, setRemoveSourceContent
-
-
-
-
Method Detail
-
validate
public boolean validate()
- Specified by:
validatein interfaceio.annot8.api.settings.Settings- Overrides:
validatein classRemoveSourceContentSettings
-
getContentFields
@Description("List of JSON fields to extract as Content, with other fields will be treated as Item properties. If null, all fields will be extracted as Content.") public List<String> getContentFields()
-
getJsonExtension
@Description("List of file extensions to treat as JSON files") public List<String> getJsonExtension()
-
getJsonlExtension
@Description("List of file extensions to treat as JSONL (JSON Lines) files") public List<String> getJsonlExtension()
-
-