public enum ReportingPolicy extends java.lang.Enum<ReportingPolicy>
| Enum Constant and Description |
|---|
DEFAULT
When given as value for
Mapper.unmappedTargetPolicy(), the setting from the configuration source
referenced via Mapper.config() will be applied. |
ERROR
A report with
Diagnostic.Kind.ERROR will be created for the given issue,
causing the compilation to fail. |
IGNORE
No report will be created for the given issue.
|
WARN
A report with
Diagnostic.Kind.WARNING will be created for the given issue. |
| Modifier and Type | Method and Description |
|---|---|
static ReportingPolicy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ReportingPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReportingPolicy IGNORE
public static final ReportingPolicy WARN
Diagnostic.Kind.WARNING will be created for the given issue.public static final ReportingPolicy ERROR
Diagnostic.Kind.ERROR will be created for the given issue,
causing the compilation to fail.public static final ReportingPolicy DEFAULT
Mapper.unmappedTargetPolicy(), the setting from the configuration source
referenced via Mapper.config() will be applied.
Otherwise (no configuration source is referenced, or this value is given via
MapperConfig.unmappedTargetPolicy()), a report with Diagnostic.Kind.WARNING will be created for the given
issue.
public static ReportingPolicy[] values()
for (ReportingPolicy c : ReportingPolicy.values()) System.out.println(c);
public static ReportingPolicy valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullCopyright © 2012-2015. All Rights Reserved.