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