public interface MappingContext
| Modifier and Type | Method and Description |
|---|---|
@NotNull MappingContext |
createChild(@NotNull String name,
@NotNull TypeInformation typeInformation)
Creates a child context with the given path addition ("name") and type information.
|
@NotNull String |
createDescription() |
default @Nullable TypeInformation |
getGenericTypeInfoOrFail(int index)
Convenience method: gets the generic type info for the given index and ensures that the generic type information
exists and that it can be converted into a safe-to-write class.
|
@NotNull TypeInformation |
getTypeInformation() |
void |
registerError(@NotNull String reason)
Registers an error during the mapping process, which delegates to the supplied
ConvertErrorRecorder,
associated to the property this conversion is being performed for. |
@NotNull @NotNull MappingContext createChild(@NotNull @NotNull String name, @NotNull @NotNull TypeInformation typeInformation)
name - additional path element to append to this context's pathtypeInformation - the required type@NotNull @NotNull TypeInformation getTypeInformation()
@Nullable default @Nullable TypeInformation getGenericTypeInfoOrFail(int index)
index - the index to get generic type info for@NotNull @NotNull String createDescription()
void registerError(@NotNull
@NotNull String reason)
ConvertErrorRecorder,
associated to the property this conversion is being performed for.reason - the error reason (ignored by the default context implementation)Copyright © 2016–2023 The AuthMe Team. All rights reserved.