public class MappingMethodOptions extends Object
Constructor and Description |
---|
MappingMethodOptions(MapperOptions mapper,
Set<MappingOptions> mappings,
IterableMappingOptions iterableMapping,
MapMappingOptions mapMapping,
BeanMappingOptions beanMapping,
EnumMappingOptions enumMappingOptions,
List<ValueMappingOptions> valueMappings) |
public MappingMethodOptions(MapperOptions mapper, Set<MappingOptions> mappings, IterableMappingOptions iterableMapping, MapMappingOptions mapMapping, BeanMappingOptions beanMapping, EnumMappingOptions enumMappingOptions, List<ValueMappingOptions> valueMappings)
public static MappingMethodOptions empty()
public Set<MappingOptions> getMappings()
MappingOptions
s configured for this method, keyed by target property name. Only for enum
mapping methods a target will be mapped by several sources.public IterableMappingOptions getIterableMapping()
public MapMappingOptions getMapMapping()
public BeanMappingOptions getBeanMapping()
public EnumMappingOptions getEnumMappingOptions()
public List<ValueMappingOptions> getValueMappings()
public void setIterableMapping(IterableMappingOptions iterableMapping)
public void setMapMapping(MapMappingOptions mapMapping)
public void setBeanMapping(BeanMappingOptions beanMapping)
public void setEnumMappingOptions(EnumMappingOptions enumMappingOptions)
public void setValueMappings(List<ValueMappingOptions> valueMappings)
public MapperOptions getMapper()
public boolean isFullyInitialized()
true
, iff the options have been fully initialized by applying all available inheritance
optionspublic void markAsFullyInitialized()
public void applyInheritedOptions(SourceMethod templateMethod, boolean isInverse)
templateMethod
- the template method with the options to inherit, may be null
isInverse
- if true
, the specified options are from an inverse methodpublic void applyIgnoreAll(SourceMethod method, TypeFactory typeFactory, FormattingMessager messager)
Copyright © 2012-2021 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.