Class BlockContext.DefaultObjectContext<T>
java.lang.Object
org.keycloak.models.map.storage.file.common.BlockContext.DefaultObjectContext<T>
- All Implemented Interfaces:
- BlockContext<T>
- Enclosing interface:
- BlockContext<V>
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.keycloak.models.map.storage.file.common.BlockContextBlockContext.DefaultListContext<T>, BlockContext.DefaultMapContext<T>, BlockContext.DefaultObjectContext<T>
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidModifies theresult returnedfrom within this context by providing the read primitive value or a single sequence item in thevalueparameter.BlockContext<?>getContext(String nameOfSubcontext) Called after reading a key of map entry in YAML file and before reading its value.Returns the result of parsing the given part of YAML file.voidwriteValue(Object value, WritingMechanism mech) Writes the given value usingWritingMechanism.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.models.map.storage.file.common.BlockContextadd
- 
Constructor Details- 
DefaultObjectContext
 
- 
- 
Method Details- 
newDefaultObjectContext
- 
getScalarType- Specified by:
- getScalarTypein interface- BlockContext<T>
 
- 
addDescription copied from interface:BlockContextModifies theresult returnedfrom within this context by providing the read primitive value or a single sequence item in thevalueparameter.Called after reading a primitive value or a single sequence item from the YAML file is finished. If the parsed YAML part was a sequence, this method is called in the same order as the sequence items appear in the source YAML sequence. - Specified by:
- addin interface- BlockContext<T>
 
- 
getResultDescription copied from interface:BlockContextReturns the result of parsing the given part of YAML file.- Specified by:
- getResultin interface- BlockContext<T>
- Returns:
 
- 
writeValueDescription copied from interface:BlockContextWrites the given value usingWritingMechanism.- Specified by:
- writeValuein interface- BlockContext<T>
 
- 
getContextDescription 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 interface- BlockContext<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:
 
 
-