public class MappingContextImpl extends Object implements MappingContext
MappingContext.| Modifier | Constructor and Description |
|---|---|
protected |
MappingContextImpl(@NotNull String path,
@NotNull TypeInformation typeInformation,
@NotNull ConvertErrorRecorder errorRecorder) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull MappingContext |
createChild(@NotNull String subPath,
@NotNull TypeInformation typeInformation)
Creates a child context with the given path addition ("name") and type information.
|
@NotNull String |
createDescription() |
static @NotNull MappingContextImpl |
createRoot(@NotNull TypeInformation typeInformation,
@NotNull ConvertErrorRecorder errorRecorder)
Creates an initial context (used at the start of a mapping process).
|
@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 String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetGenericTypeInfoOrFailprotected MappingContextImpl(@NotNull
@NotNull String path,
@NotNull
@NotNull TypeInformation typeInformation,
@NotNull
@NotNull ConvertErrorRecorder errorRecorder)
@NotNull public static @NotNull MappingContextImpl createRoot(@NotNull @NotNull TypeInformation typeInformation, @NotNull @NotNull ConvertErrorRecorder errorRecorder)
typeInformation - the required typeerrorRecorder - error recorder to register errors even if a valid value is returned@NotNull public @NotNull MappingContext createChild(@NotNull @NotNull String subPath, @NotNull @NotNull TypeInformation typeInformation)
MappingContextcreateChild in interface MappingContextsubPath - additional path element to append to this context's pathtypeInformation - the required type@NotNull public @NotNull TypeInformation getTypeInformation()
getTypeInformation in interface MappingContext@NotNull public @NotNull String createDescription()
createDescription in interface MappingContextpublic void registerError(@NotNull
@NotNull String reason)
MappingContextConvertErrorRecorder,
associated to the property this conversion is being performed for.registerError in interface MappingContextreason - the error reason (ignored by the default context implementation)Copyright © 2016–2023 The AuthMe Team. All rights reserved.