Enum MappingOption

java.lang.Object
java.lang.Enum<MappingOption>
org.mapstruct.ap.internal.option.MappingOption
All Implemented Interfaces:
Serializable, Comparable<MappingOption>, java.lang.constant.Constable

public enum MappingOption extends Enum<MappingOption>
The different compiler mapping options that are available in MapStruct.
Author:
Filip Hrisafov
  • Enum Constant Details

    • SUPPRESS_GENERATOR_TIMESTAMP

      public static final MappingOption SUPPRESS_GENERATOR_TIMESTAMP
    • SUPPRESS_GENERATOR_VERSION_INFO_COMMENT

      public static final MappingOption SUPPRESS_GENERATOR_VERSION_INFO_COMMENT
    • UNMAPPED_TARGET_POLICY

      public static final MappingOption UNMAPPED_TARGET_POLICY
    • UNMAPPED_SOURCE_POLICY

      public static final MappingOption UNMAPPED_SOURCE_POLICY
    • DEFAULT_COMPONENT_MODEL

      public static final MappingOption DEFAULT_COMPONENT_MODEL
    • DEFAULT_INJECTION_STRATEGY

      public static final MappingOption DEFAULT_INJECTION_STRATEGY
    • ALWAYS_GENERATE_SERVICE_FILE

      public static final MappingOption ALWAYS_GENERATE_SERVICE_FILE
    • DISABLE_BUILDERS

      public static final MappingOption DISABLE_BUILDERS
    • VERBOSE

      public static final MappingOption VERBOSE
    • NULL_VALUE_ITERABLE_MAPPING_STRATEGY

      public static final MappingOption NULL_VALUE_ITERABLE_MAPPING_STRATEGY
    • NULL_VALUE_MAP_MAPPING_STRATEGY

      public static final MappingOption NULL_VALUE_MAP_MAPPING_STRATEGY
    • DISABLE_LIFECYCLE_OVERLOAD_DEDUPLICATE_SELECTOR

      public static final MappingOption DISABLE_LIFECYCLE_OVERLOAD_DEDUPLICATE_SELECTOR
  • Method Details

    • values

      public static MappingOption[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static MappingOption valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getOptionName

      public String getOptionName()
      Returns the name of the option, which can be used in the compiler arguments.
      Returns:
      the name of the option