Class MapEntityContext.MapEntityMappingYamlContext<T>
- java.lang.Object
-
- org.keycloak.models.map.storage.file.common.BlockContext.DefaultMapContext<T>
-
- org.keycloak.models.map.storage.file.common.MapEntityContext.MapEntityMappingYamlContext<T>
-
- All Implemented Interfaces:
BlockContext<Map<String,T>>
- Enclosing class:
- MapEntityContext<T>
public static class MapEntityContext.MapEntityMappingYamlContext<T> extends BlockContext.DefaultMapContext<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.DefaultMapContext
itemClass
-
-
Constructor Summary
Constructors Constructor Description MapEntityMappingYamlContext(Class<T> mapValueClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlockContext<T>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.DefaultMapContext
add, getResult, getScalarType, newDefaultMapContext, writeValue
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.keycloak.models.map.storage.file.common.BlockContext
add
-
-
-
-
Method Detail
-
getContext
public BlockContext<T> getContext(String nameOfSubcontext)
Description copied from interface:BlockContextCalled after reading a key of map entry in YAML file and before reading its value. The key of the entry is represented asnameOfSubcontextparameter, and provides means to specify aYamlContextfor transforming the mapping value into appropriate Java object.- Specified by:
getContextin interfaceBlockContext<T>- Overrides:
getContextin classBlockContext.DefaultMapContext<T>- Parameters:
nameOfSubcontext- Key of the map entry- Returns:
- Context used for transforming the value,
or
nullif the default primitive / sequence / mapping context should be used instead. - See Also:
BlockContext.DefaultObjectContext,BlockContext.DefaultListContext,BlockContext.DefaultMapContext
-
-