public class InputFormatReader extends YamlJsonReader
Modifier and Type | Class and Description |
---|---|
static interface |
InputFormatReader.BaseFormatFinder |
Modifier and Type | Field and Description |
---|---|
protected static org.apache.logging.log4j.Logger |
logger |
Constructor and Description |
---|
InputFormatReader() |
Modifier and Type | Method and Description |
---|---|
static String |
fixedStringToXpath(String s)
Convert a fixed string value to an XPath expression yielding that value.
|
static void |
read(File file,
ConfigInputFormat cfg,
Function<String,Optional<ConfigInputFormat>> finder) |
protected static void |
read(com.fasterxml.jackson.databind.JsonNode root,
ConfigInputFormat cfg,
Function<String,Optional<ConfigInputFormat>> finder) |
static void |
read(Reader r,
boolean isJson,
ConfigInputFormat cfg,
Function<String,Optional<ConfigInputFormat>> finder) |
protected static ConfigAnnotation |
readAnnotation(ConfigAnnotation parentAnnot,
com.fasterxml.jackson.databind.JsonNode a) |
protected static void |
readInputFormat(ConfigLinkedDocument ld,
Map.Entry<String,com.fasterxml.jackson.databind.JsonNode> e) |
public static void read(Reader r, boolean isJson, ConfigInputFormat cfg, Function<String,Optional<ConfigInputFormat>> finder) throws IOException
r
- isJson
- cfg
- finder
- responsible for getting (optionally locating/loading) other
configs that this config depends on. (for config keys "baseFormat"
and "inputFormat")IOException
InvalidInputFormatConfig
- if the file is not a valid configpublic static void read(File file, ConfigInputFormat cfg, Function<String,Optional<ConfigInputFormat>> finder) throws IOException
file
- cfg
- finder
- responsible for getting (optionally locating/loading) other
configs that this config depends on. ("baseFormat" and
"inputFormat")IOException
InvalidInputFormatConfig
- if the file is not a valid configprotected static void read(com.fasterxml.jackson.databind.JsonNode root, ConfigInputFormat cfg, Function<String,Optional<ConfigInputFormat>> finder)
protected static ConfigAnnotation readAnnotation(ConfigAnnotation parentAnnot, com.fasterxml.jackson.databind.JsonNode a)
public static String fixedStringToXpath(String s)
s
- fixed string the XPath should evaluate toprotected static void readInputFormat(ConfigLinkedDocument ld, Map.Entry<String,com.fasterxml.jackson.databind.JsonNode> e)
Copyright © 2020 Instituut voor Nederlandse Taal (INT). All rights reserved.