Package org.mapstruct
Class MappingConstants
- java.lang.Object
-
- org.mapstruct.MappingConstants
-
public final class MappingConstants extends Object
Contains all constants defined in the mapping process.- Author:
- Sjaak Derksen
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MappingConstants.ComponentModel
Specifies the component model constants to which the generated mapper should adhere.
-
Field Summary
Fields Modifier and Type Field Description static String
ANY_REMAINING
In anValueMapping
this represents any source that is not already mapped by either a defined mapping or by means of name based mapping.static String
ANY_UNMAPPED
In anValueMapping
this represents any source that is not already mapped by a defined mapping.static String
CASE_TRANSFORMATION
In anEnumMapping
this represent the enum transformation strategy that applies case transformation at the source.static String
NULL
In anValueMapping
this represents anull
source or target.static String
PREFIX_TRANSFORMATION
In anEnumMapping
this represent the enum transformation strategy that adds a prefix to the source enum.static String
STRIP_PREFIX_TRANSFORMATION
In anEnumMapping
this represent the enum transformation strategy that strips a prefix from the source enum.static String
STRIP_SUFFIX_TRANSFORMATION
In anEnumMapping
this represent the enum transformation strategy that strips a suffix from the source enum.static String
SUFFIX_TRANSFORMATION
In anEnumMapping
this represent the enum transformation strategy that adds a suffix to the source enum.static String
THROW_EXCEPTION
In anValueMapping
this represents any target that will be mapped to anIllegalArgumentException
which will be thrown at runtime.
-
-
-
Field Detail
-
NULL
public static final String NULL
In anValueMapping
this represents anull
source or target.- See Also:
- Constant Field Values
-
ANY_REMAINING
public static final String ANY_REMAINING
In anValueMapping
this represents any source that is not already mapped by either a defined mapping or by means of name based mapping. NOTE: The value is only applicable toValueMapping.source()
and not toValueMapping.target()
.- See Also:
- Constant Field Values
-
ANY_UNMAPPED
public static final String ANY_UNMAPPED
In anValueMapping
this represents any source that is not already mapped by a defined mapping. NOTE: The value is only applicable toValueMapping.source()
and not toValueMapping.target()
.- See Also:
- Constant Field Values
-
THROW_EXCEPTION
public static final String THROW_EXCEPTION
In anValueMapping
this represents any target that will be mapped to anIllegalArgumentException
which will be thrown at runtime.NOTE: The value is only applicable to
ValueMapping.target()
and not toValueMapping.source()
.- See Also:
- Constant Field Values
-
SUFFIX_TRANSFORMATION
public static final String SUFFIX_TRANSFORMATION
In anEnumMapping
this represent the enum transformation strategy that adds a suffix to the source enum.- Since:
- 1.4
- See Also:
- Constant Field Values
-
STRIP_SUFFIX_TRANSFORMATION
public static final String STRIP_SUFFIX_TRANSFORMATION
In anEnumMapping
this represent the enum transformation strategy that strips a suffix from the source enum.- Since:
- 1.4
- See Also:
- Constant Field Values
-
PREFIX_TRANSFORMATION
public static final String PREFIX_TRANSFORMATION
In anEnumMapping
this represent the enum transformation strategy that adds a prefix to the source enum.- Since:
- 1.4
- See Also:
- Constant Field Values
-
STRIP_PREFIX_TRANSFORMATION
public static final String STRIP_PREFIX_TRANSFORMATION
In anEnumMapping
this represent the enum transformation strategy that strips a prefix from the source enum.- Since:
- 1.4
- See Also:
- Constant Field Values
-
CASE_TRANSFORMATION
public static final String CASE_TRANSFORMATION
In anEnumMapping
this represent the enum transformation strategy that applies case transformation at the source.- Since:
- 1.5
- See Also:
- Constant Field Values
-
-