Class NestedTargetPropertyMappingHolder


  • public class NestedTargetPropertyMappingHolder
    extends java.lang.Object
    This is a helper class that holds the generated PropertyMapping(s) and all the information associated with it for nested target properties.
    • 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:
        true if an error occurred during the creation of the nested mappings