Package org.mapstruct
Class MappingConstants
- java.lang.Object
-
- org.mapstruct.MappingConstants
-
public final class MappingConstants extends java.lang.ObjectContains all constants defined in the mapping process.
-
-
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 java.lang.StringANY_REMAININGIn anValueMappingthis represents any source that is not already mapped by either a defined mapping or by means of name based mapping.static java.lang.StringANY_UNMAPPEDIn anValueMappingthis represents any source that is not already mapped by a defined mapping.static java.lang.StringCASE_TRANSFORMATIONIn anEnumMappingthis represent the enum transformation strategy that applies case transformation at the source.static java.lang.StringNULLIn anValueMappingthis represents anullsource or target.static java.lang.StringPREFIX_TRANSFORMATIONIn anEnumMappingthis represent the enum transformation strategy that adds a prefix to the source enum.static java.lang.StringSTRIP_PREFIX_TRANSFORMATIONIn anEnumMappingthis represent the enum transformation strategy that strips a prefix from the source enum.static java.lang.StringSTRIP_SUFFIX_TRANSFORMATIONIn anEnumMappingthis represent the enum transformation strategy that strips a suffix from the source enum.static java.lang.StringSUFFIX_TRANSFORMATIONIn anEnumMappingthis represent the enum transformation strategy that adds a suffix to the source enum.static java.lang.StringTHROW_EXCEPTIONIn anValueMappingthis represents any target that will be mapped to anIllegalArgumentExceptionwhich will be thrown at runtime.
-
Constructor Summary
Constructors Modifier Constructor Description privateMappingConstants()
-
-
-
Field Detail
-
NULL
public static final java.lang.String NULL
In anValueMappingthis represents anullsource or target.- See Also:
- Constant Field Values
-
ANY_REMAINING
public static final java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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
-
-