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 StringARRAY_CONTEXT
-
Constructor Summary
Constructors Modifier Constructor Description protectedYamlParser(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> Eparse()static <E> Eparse(Path path, BlockContext<E> initialContext)protected ObjectparseMapping()Parses a mapping node inside the current context.protected ObjectparseNode()protected ObjectparseScalar(org.snakeyaml.engine.v2.events.ScalarEvent se)Parses a scalar node inside the current context.protected ObjectparseSequence()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:
-
-