Class YamlParser<E>
- java.lang.Object
-
- org.keycloak.models.map.storage.file.yaml.YamlParser<E>
-
public class YamlParser<E> extends Object
- Author:
- hmlnarik
-
-
Field Summary
Fields Modifier and Type Field Description static String
ARRAY_CONTEXT
-
Constructor Summary
Constructors Modifier Constructor Description protected
YamlParser(org.snakeyaml.engine.v2.parser.Parser p, BlockContext<E> initialContext)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <E> E
parse()
static <E> E
parse(Path path, BlockContext<E> initialContext)
protected Object
parseMapping()
Parses a mapping node inside the current context.protected Object
parseNode()
protected Object
parseScalar(org.snakeyaml.engine.v2.events.ScalarEvent se)
Parses a scalar node inside the current context.protected Object
parseSequence()
Parses a sequence node inside the current context.
-
-
-
Field Detail
-
ARRAY_CONTEXT
public static final String ARRAY_CONTEXT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
YamlParser
protected YamlParser(org.snakeyaml.engine.v2.parser.Parser p, BlockContext<E> initialContext)
-
-
Method Detail
-
parse
public static <E> E parse(Path path, BlockContext<E> initialContext)
-
parse
protected <E> E parse()
-
parseNode
protected Object parseNode()
-
parseSequence
protected Object parseSequence()
Parses a sequence node inside the current context. Each sequence item is parsed in the context supplied by the current- Returns:
-
parseMapping
protected Object parseMapping()
Parses a mapping node inside the current context. Each mapping value is parsed in the context supplied by the current context for the mapping key.- Returns:
-
parseScalar
protected Object parseScalar(org.snakeyaml.engine.v2.events.ScalarEvent se)
Parses a scalar node inside the current context.- Returns:
-
-