public class ConvertErrorRecorder extends Object
This object is passed around during conversion to determine whether an error has occurred during the conversion that should trigger a rewrite. It is not necessary to register an error with this class if the return value of the conversion implies that the representation in the resource is wrong altogether. Instead, errors are typically registered with this recorder when an object can be created, but there is some error in the representation that should be corrected (e.g. a value is missing but there is a sensible fallback).
| Constructor and Description |
|---|
ConvertErrorRecorder() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isFullyValid()
Returns whether the value that was returned from the property or property type was fully valid and
therefore doesn't need a rewrite.
|
void |
setHasError(String reason)
Registers that some error occurred during the conversion of the value.
|
public void setHasError(String reason)
reason - the reason (not used in this implementation but may be extended for debugging)public boolean isFullyValid()
false in case
a recoverable error was detected. This method may return true if the return value of the conversion is
null or otherwise indicates that there is no proper representation of it in the property resource.Copyright © 2016–2021 The AuthMe Team. All rights reserved.