Package org.mapstruct
Class MappingConstants
java.lang.Object
org.mapstruct.MappingConstants
Contains all constants defined in the mapping process.
- Author:
- Sjaak Derksen
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classSpecifies the component model constants to which the generated mapper should adhere. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringIn anValueMappingthis represents any source that is not already mapped by either a defined mapping or by means of name based mapping.static final StringIn anValueMappingthis represents any source that is not already mapped by a defined mapping.static final StringIn anEnumMappingthis represent the enum transformation strategy that applies case transformation at the source.static final StringIn anValueMappingthis represents anullsource or target.static final StringIn anEnumMappingthis represent the enum transformation strategy that adds a prefix to the source enum.static final StringIn anEnumMappingthis represent the enum transformation strategy that strips a prefix from the source enum.static final StringIn anEnumMappingthis represent the enum transformation strategy that strips a suffix from the source enum.static final StringIn anEnumMappingthis represent the enum transformation strategy that adds a suffix to the source enum.static final StringIn anValueMappingthis represents any target that will be mapped to anIllegalArgumentExceptionwhich will be thrown at runtime. -
Method Summary
-
Field Details
-
NULL
In anValueMappingthis represents anullsource or target.- See Also:
-
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:
-
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:
-
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:
-
SUFFIX_TRANSFORMATION
In anEnumMappingthis represent the enum transformation strategy that adds a suffix to the source enum.- Since:
- 1.4
- See Also:
-
STRIP_SUFFIX_TRANSFORMATION
In anEnumMappingthis represent the enum transformation strategy that strips a suffix from the source enum.- Since:
- 1.4
- See Also:
-
PREFIX_TRANSFORMATION
In anEnumMappingthis represent the enum transformation strategy that adds a prefix to the source enum.- Since:
- 1.4
- See Also:
-
STRIP_PREFIX_TRANSFORMATION
In anEnumMappingthis represent the enum transformation strategy that strips a prefix from the source enum.- Since:
- 1.4
- See Also:
-
CASE_TRANSFORMATION
In anEnumMappingthis represent the enum transformation strategy that applies case transformation at the source.- Since:
- 1.5
- See Also:
-