Class MapEntityContext.MapEntitySequenceYamlContext<T>
- java.lang.Object
-
- org.keycloak.models.map.storage.file.common.BlockContext.DefaultListContext<T>
-
- org.keycloak.models.map.storage.file.common.MapEntityContext.MapEntitySequenceYamlContext<T>
-
- All Implemented Interfaces:
BlockContext<Collection<T>>
- Enclosing class:
- MapEntityContext<T>
public static class MapEntityContext.MapEntitySequenceYamlContext<T> extends BlockContext.DefaultListContext<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.keycloak.models.map.storage.file.common.BlockContext
BlockContext.DefaultListContext<T>, BlockContext.DefaultMapContext<T>, BlockContext.DefaultObjectContext<T>
-
-
Field Summary
-
Fields inherited from class org.keycloak.models.map.storage.file.common.BlockContext.DefaultListContext
itemClass
-
-
Constructor Summary
Constructors Constructor Description MapEntitySequenceYamlContext(Class<T> itemClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(String name, Object value)
Modifies theresult returned
from within this context by providing the read mapping entryname
to givenvalue
.BlockContext<?>
getContext(String nameOfSubcontext)
Called after reading a key of map entry in YAML file and before reading its value.-
Methods inherited from class org.keycloak.models.map.storage.file.common.BlockContext.DefaultListContext
add, getResult, getScalarType, newDefaultListContext, writeValue
-
-
-
-
Method Detail
-
getContext
public BlockContext<?> getContext(String nameOfSubcontext)
Description copied from interface:BlockContext
Called after reading a key of map entry in YAML file and before reading its value. The key of the entry is represented asnameOfSubcontext
parameter, and provides means to specify aYamlContext
for transforming the mapping value into appropriate Java object.- Specified by:
getContext
in interfaceBlockContext<T>
- Overrides:
getContext
in classBlockContext.DefaultListContext<T>
- Parameters:
nameOfSubcontext
- Key of the map entry- Returns:
- Context used for transforming the value,
or
null
if the default primitive / sequence / mapping context should be used instead. - See Also:
BlockContext.DefaultObjectContext
,BlockContext.DefaultListContext
,BlockContext.DefaultMapContext
-
add
public void add(String name, Object value)
Description copied from interface:BlockContext
Modifies theresult returned
from within this context by providing the read mapping entryname
to givenvalue
.Called after reading a map entry (both key and value) from the YAML file is finished. The entry is represented as
name
parameter (key part of the entry) andvalue
(value part of the entry).The method is called in the same order as the mapping items appear in the source YAML mapping.
-
-