Package org.mapstruct

Class MappingConstants


  • public final class MappingConstants
    extends java.lang.Object
    Contains all constants defined in the mapping process.
    • 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 java.lang.String ANY_REMAINING
      In an ValueMapping this represents any source that is not already mapped by either a defined mapping or by means of name based mapping.
      static java.lang.String ANY_UNMAPPED
      In an ValueMapping this represents any source that is not already mapped by a defined mapping.
      static java.lang.String CASE_TRANSFORMATION
      In an EnumMapping this represent the enum transformation strategy that applies case transformation at the source.
      static java.lang.String NULL
      In an ValueMapping this represents a null source or target.
      static java.lang.String PREFIX_TRANSFORMATION
      In an EnumMapping this represent the enum transformation strategy that adds a prefix to the source enum.
      static java.lang.String STRIP_PREFIX_TRANSFORMATION
      In an EnumMapping this represent the enum transformation strategy that strips a prefix from the source enum.
      static java.lang.String STRIP_SUFFIX_TRANSFORMATION
      In an EnumMapping this represent the enum transformation strategy that strips a suffix from the source enum.
      static java.lang.String SUFFIX_TRANSFORMATION
      In an EnumMapping this represent the enum transformation strategy that adds a suffix to the source enum.
      static java.lang.String THROW_EXCEPTION
      In an ValueMapping this represents any target that will be mapped to an IllegalArgumentException which will be thrown at runtime.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private MappingConstants()  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • SUFFIX_TRANSFORMATION

        public static final java.lang.String SUFFIX_TRANSFORMATION
        In an EnumMapping 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 java.lang.String STRIP_SUFFIX_TRANSFORMATION
        In an EnumMapping 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 java.lang.String PREFIX_TRANSFORMATION
        In an EnumMapping 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 java.lang.String STRIP_PREFIX_TRANSFORMATION
        In an EnumMapping 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 java.lang.String CASE_TRANSFORMATION
        In an EnumMapping this represent the enum transformation strategy that applies case transformation at the source.
        Since:
        1.5
        See Also:
        Constant Field Values
    • Constructor Detail

      • MappingConstants

        private MappingConstants()