public class MappingOptions extends Object
Constructor and Description |
---|
MappingOptions(Map<String,List<Mapping>> mappings,
IterableMapping iterableMapping,
MapMapping mapMapping,
BeanMapping beanMapping) |
Modifier and Type | Method and Description |
---|---|
void |
applyInheritedOptions(MappingOptions inherited,
boolean isInverse,
SourceMethod method,
FormattingMessager messager,
TypeFactory typeFactory)
Merges in all the mapping options configured, giving the already defined options precedence.
|
BeanMapping |
getBeanMapping() |
IterableMapping |
getIterableMapping() |
MapMapping |
getMapMapping() |
Map<String,List<Mapping>> |
getMappings() |
boolean |
isFullyInitialized() |
void |
markAsFullyInitialized() |
void |
setBeanMapping(BeanMapping beanMapping) |
void |
setIterableMapping(IterableMapping iterableMapping) |
void |
setMapMapping(MapMapping mapMapping) |
void |
setMappings(Map<String,List<Mapping>> mappings) |
public MappingOptions(Map<String,List<Mapping>> mappings, IterableMapping iterableMapping, MapMapping mapMapping, BeanMapping beanMapping)
public Map<String,List<Mapping>> getMappings()
Mapping
s configured for this method, keyed by target property name. Only for enum mapping
methods a target will be mapped by several sources.public IterableMapping getIterableMapping()
public MapMapping getMapMapping()
public BeanMapping getBeanMapping()
public void setIterableMapping(IterableMapping iterableMapping)
public void setMapMapping(MapMapping mapMapping)
public void setBeanMapping(BeanMapping beanMapping)
public boolean isFullyInitialized()
true
, iff the options have been fully initialized by applying all available inheritance
optionspublic void markAsFullyInitialized()
public void applyInheritedOptions(MappingOptions inherited, boolean isInverse, SourceMethod method, FormattingMessager messager, TypeFactory typeFactory)
inherited
- the options to inherit, may be null
isInverse
- if true
, the specified options are from an inverse methodmethod
- the source methodmessager
- the messagertypeFactory
- the type factoryCopyright © 2012-2015 Gunnar Morling; All rights reserved. Released under the Apache Software License 2.0.