Package org.mapstruct.ap.internal.model
Class NestedTargetPropertyMappingHolder.GroupedSourceReferences
- java.lang.Object
-
- org.mapstruct.ap.internal.model.NestedTargetPropertyMappingHolder.GroupedSourceReferences
-
- Enclosing class:
- NestedTargetPropertyMappingHolder
private static class NestedTargetPropertyMappingHolder.GroupedSourceReferences extends java.lang.ObjectThis class is used to group Source references in respected to the nestings that they have. This class contains all groupings by Property Entries if they are nested, or a list of all the other options that could not have been popped. So, take sourceReference 1: propertyEntryX.propertyEntryX1.propertyEntryX1a sourceReference 2: propertyEntryX.propertyEntryX2 sourceReference 3: propertyEntryY.propertyY1 sourceReference 4: propertyEntryZ sourceReference 5: propertyEntryZ2 We will have a map with entries:propertyEntryX - ( sourceReference1: propertyEntryX1.propertyEntryX1a, sourceReference2 propertyEntryX2 ) propertyEntryY - ( sourceReference1: propertyEntryY1 )If non-nested mappings were found they will be located in a List.sourceReference 4: propertyEntryZ sourceReference 5: propertyEntryZ2
If Mappings that should apply to all were found, but no grouping was found, they will be located in a different list:
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<PropertyEntry,java.util.Set<MappingReference>>groupedBySourceReferencesprivate java.util.Set<MappingReference>nonNestedprivate java.util.Set<MappingReference>notProcessedAppliesToAllprivate java.util.Set<MappingReference>sourceParameterMappings
-
Constructor Summary
Constructors Modifier Constructor Description privateGroupedSourceReferences(java.util.Map<PropertyEntry,java.util.Set<MappingReference>> groupedBySourceReferences, java.util.Set<MappingReference> nonNested, java.util.Set<MappingReference> notProcessedAppliesToAll, java.util.Set<MappingReference> sourceParameterMappings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringtoString()
-
-
-
Field Detail
-
groupedBySourceReferences
private final java.util.Map<PropertyEntry,java.util.Set<MappingReference>> groupedBySourceReferences
-
nonNested
private final java.util.Set<MappingReference> nonNested
-
notProcessedAppliesToAll
private final java.util.Set<MappingReference> notProcessedAppliesToAll
-
sourceParameterMappings
private final java.util.Set<MappingReference> sourceParameterMappings
-
-
Constructor Detail
-
GroupedSourceReferences
private GroupedSourceReferences(java.util.Map<PropertyEntry,java.util.Set<MappingReference>> groupedBySourceReferences, java.util.Set<MappingReference> nonNested, java.util.Set<MappingReference> notProcessedAppliesToAll, java.util.Set<MappingReference> sourceParameterMappings)
-
-