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 classMappingConstants.ComponentModelSpecifies the component model constants to which the generated mapper should adhere.
-
Field Summary
Fields Modifier and Type Field Description static StringANY_REMAININGIn anValueMappingthis represents any source that is not already mapped by either a defined mapping or by means of name based mapping.static StringANY_UNMAPPEDIn anValueMappingthis represents any source that is not already mapped by a defined mapping.static StringCASE_TRANSFORMATIONIn anEnumMappingthis represent the enum transformation strategy that applies case transformation at the source.static StringNULLIn anValueMappingthis represents anullsource or target.static StringPREFIX_TRANSFORMATIONIn anEnumMappingthis represent the enum transformation strategy that adds a prefix to the source enum.static StringSTRIP_PREFIX_TRANSFORMATIONIn anEnumMappingthis represent the enum transformation strategy that strips a prefix from the source enum.static StringSTRIP_SUFFIX_TRANSFORMATIONIn anEnumMappingthis represent the enum transformation strategy that strips a suffix from the source enum.static StringSUFFIX_TRANSFORMATIONIn anEnumMappingthis represent the enum transformation strategy that adds a suffix to the source enum.static StringTHROW_EXCEPTIONIn anValueMappingthis represents any target that will be mapped to anIllegalArgumentExceptionwhich will be thrown at runtime.
-
-
-
Field Detail
-
NULL
public static final String NULL
In anValueMappingthis represents anullsource or target.- See Also:
- Constant Field Values
-
ANY_REMAINING
public static final String ANY_REMAINING
In anValueMappingthis 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 anValueMappingthis 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 anValueMappingthis represents any target that will be mapped to anIllegalArgumentExceptionwhich 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 anEnumMappingthis 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 anEnumMappingthis 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 anEnumMappingthis 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 anEnumMappingthis 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 anEnumMappingthis represent the enum transformation strategy that applies case transformation at the source.- Since:
- 1.5
- See Also:
- Constant Field Values
-
-