public enum MappingInheritanceStrategy extends java.lang.Enum<MappingInheritanceStrategy>
Mapper.config().| Enum Constant and Description |
|---|
AUTO_INHERIT_FROM_CONFIG
Inherit the method-level configuration annotations automatically if source and target types of the prototype
method are assignable from the types of a given mapping method.
|
DEFAULT
When given via
Mapper.mappingInheritanceStrategy(), the value specified via
MapperConfig.mappingInheritanceStrategy() will be applied, if present. |
EXPLICIT
Apply the method-level configuration annotations only if the prototype method is explicitly referenced using
InheritConfiguration. |
| Modifier and Type | Method and Description |
|---|---|
static MappingInheritanceStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MappingInheritanceStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MappingInheritanceStrategy EXPLICIT
InheritConfiguration.public static final MappingInheritanceStrategy AUTO_INHERIT_FROM_CONFIG
public static final MappingInheritanceStrategy DEFAULT
Mapper.mappingInheritanceStrategy(), the value specified via
MapperConfig.mappingInheritanceStrategy() will be applied, if present.
When given via MapperConfig.mappingInheritanceStrategy(), the strategy EXPLICIT will be applied.
public static MappingInheritanceStrategy[] values()
for (MappingInheritanceStrategy c : MappingInheritanceStrategy.values()) System.out.println(c);
public static MappingInheritanceStrategy 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.