Package org.mapstruct.ap.internal.model
Class NestedTargetPropertyMappingHolder
- java.lang.Object
-
- org.mapstruct.ap.internal.model.NestedTargetPropertyMappingHolder
-
public class NestedTargetPropertyMappingHolder extends Object
This is a helper class that holds the generatedPropertyMapping
(s) and all the information associated with it for nested target properties.- Author:
- Filip Hrisafov
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NestedTargetPropertyMappingHolder.Builder
-
Constructor Summary
Constructors Constructor Description NestedTargetPropertyMappingHolder(List<Parameter> processedSourceParameters, Set<String> handledTargets, List<PropertyMapping> propertyMappings, Map<String,Set<MappingReference>> unprocessedDefinedTarget, boolean errorOccurred)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>
getHandledTargets()
List<Parameter>
getProcessedSourceParameters()
List<PropertyMapping>
getPropertyMappings()
Map<String,Set<MappingReference>>
getUnprocessedDefinedTarget()
boolean
hasErrorOccurred()
-
-
-
Constructor Detail
-
NestedTargetPropertyMappingHolder
public NestedTargetPropertyMappingHolder(List<Parameter> processedSourceParameters, Set<String> handledTargets, List<PropertyMapping> propertyMappings, Map<String,Set<MappingReference>> unprocessedDefinedTarget, boolean errorOccurred)
-
-
Method Detail
-
getProcessedSourceParameters
public List<Parameter> getProcessedSourceParameters()
- Returns:
- The source parameters that were processed during the generation of the property mappings
-
getPropertyMappings
public List<PropertyMapping> getPropertyMappings()
- Returns:
- the generated property mappings
-
getUnprocessedDefinedTarget
public Map<String,Set<MappingReference>> getUnprocessedDefinedTarget()
- Returns:
- a map of all the unprocessed defined targets that can be applied to name forged base methods
-
hasErrorOccurred
public boolean hasErrorOccurred()
- Returns:
true
if an error occurred during the creation of the nested mappings
-
-