Package org.mapstruct.ap.internal.model
Class NestedTargetPropertyMappingHolder
- java.lang.Object
-
- org.mapstruct.ap.internal.model.NestedTargetPropertyMappingHolder
-
public class NestedTargetPropertyMappingHolder extends java.lang.ObjectThis is a helper class that holds the generatedPropertyMapping(s) and all the information associated with it for nested target properties.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNestedTargetPropertyMappingHolder.Builderprivate static classNestedTargetPropertyMappingHolder.GroupedBySourceParametersprivate static classNestedTargetPropertyMappingHolder.GroupedSourceReferencesThis class is used to group Source references in respected to the nestings that they have.private static classNestedTargetPropertyMappingHolder.GroupedTargetReferencesThe grouped target references.
-
Field Summary
Fields Modifier and Type Field Description private booleanerrorOccurredprivate java.util.Set<java.lang.String>handledTargetsprivate java.util.List<Parameter>processedSourceParametersprivate java.util.List<PropertyMapping>propertyMappingsprivate java.util.Map<java.lang.String,java.util.Set<MappingReference>>unprocessedDefinedTarget
-
Constructor Summary
Constructors Constructor Description NestedTargetPropertyMappingHolder(java.util.List<Parameter> processedSourceParameters, java.util.Set<java.lang.String> handledTargets, java.util.List<PropertyMapping> propertyMappings, java.util.Map<java.lang.String,java.util.Set<MappingReference>> unprocessedDefinedTarget, boolean errorOccurred)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.lang.String>getHandledTargets()java.util.List<Parameter>getProcessedSourceParameters()java.util.List<PropertyMapping>getPropertyMappings()java.util.Map<java.lang.String,java.util.Set<MappingReference>>getUnprocessedDefinedTarget()booleanhasErrorOccurred()
-
-
-
Field Detail
-
processedSourceParameters
private final java.util.List<Parameter> processedSourceParameters
-
handledTargets
private final java.util.Set<java.lang.String> handledTargets
-
propertyMappings
private final java.util.List<PropertyMapping> propertyMappings
-
unprocessedDefinedTarget
private final java.util.Map<java.lang.String,java.util.Set<MappingReference>> unprocessedDefinedTarget
-
errorOccurred
private final boolean errorOccurred
-
-
Constructor Detail
-
NestedTargetPropertyMappingHolder
public NestedTargetPropertyMappingHolder(java.util.List<Parameter> processedSourceParameters, java.util.Set<java.lang.String> handledTargets, java.util.List<PropertyMapping> propertyMappings, java.util.Map<java.lang.String,java.util.Set<MappingReference>> unprocessedDefinedTarget, boolean errorOccurred)
-
-
Method Detail
-
getProcessedSourceParameters
public java.util.List<Parameter> getProcessedSourceParameters()
- Returns:
- The source parameters that were processed during the generation of the property mappings
-
getHandledTargets
public java.util.Set<java.lang.String> getHandledTargets()
- Returns:
- all the targets that were hanled
-
getPropertyMappings
public java.util.List<PropertyMapping> getPropertyMappings()
- Returns:
- the generated property mappings
-
getUnprocessedDefinedTarget
public java.util.Map<java.lang.String,java.util.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:
trueif an error occurred during the creation of the nested mappings
-
-