public enum MappingInheritanceStrategy extends Enum<MappingInheritanceStrategy>
Mapper.config()
.Enum Constant and Description |
---|
AUTO_INHERIT_ALL_FROM_CONFIG
Inherit the method-level forward and reverse configuration annotations automatically if source and target types
of the prototype method are assignable from the types of a given mapping method.
|
AUTO_INHERIT_FROM_CONFIG
Inherit the method-level forward configuration annotations automatically if source and target types of the
prototype method are assignable from the types of a given mapping method.
|
AUTO_INHERIT_REVERSE_FROM_CONFIG
Inherit the method-level reverse configuration annotations automatically if source and target types of the
prototype method are assignable from the target and source types of a given mapping method.
|
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(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 AUTO_INHERIT_REVERSE_FROM_CONFIG
public static final MappingInheritanceStrategy AUTO_INHERIT_ALL_FROM_CONFIG
public static MappingInheritanceStrategy[] values()
for (MappingInheritanceStrategy c : MappingInheritanceStrategy.values()) System.out.println(c);
public static MappingInheritanceStrategy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2012-2021 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.