Class MappingReferences


  • public class MappingReferences
    extends java.lang.Object
    • Field Detail

      • mappingReferences

        private final java.util.Set<MappingReference> mappingReferences
      • targetThisReferences

        private final java.util.List<MappingReference> targetThisReferences
      • restrictToDefinedMappings

        private final boolean restrictToDefinedMappings
      • forForgedMethods

        private final boolean forForgedMethods
    • Constructor Detail

      • MappingReferences

        public MappingReferences​(java.util.Set<MappingReference> mappingReferences,
                                 java.util.List<MappingReference> targetThisReferences,
                                 boolean restrictToDefinedMappings)
      • MappingReferences

        public MappingReferences​(java.util.Set<MappingReference> mappingReferences,
                                 boolean restrictToDefinedMappings)
      • MappingReferences

        public MappingReferences​(java.util.Set<MappingReference> mappingReferences,
                                 boolean restrictToDefinedMappings,
                                 boolean forForgedMethods)
    • Method Detail

      • getMappingReferences

        public java.util.Set<MappingReference> getMappingReferences()
      • isRestrictToDefinedMappings

        public boolean isRestrictToDefinedMappings()
      • isForForgedMethods

        public boolean isForForgedMethods()
      • collectNestedDependsOn

        public java.util.Set<java.lang.String> collectNestedDependsOn()
        Returns:
        all dependencies to other properties the contained mappings are dependent on
      • hasNestedTargetReferences

        public boolean hasNestedTargetReferences()
        Check there are nested target references for this mapping options.
        Returns:
        boolean, true if there are nested target references
      • getTargetThisReferences

        public java.util.List<MappingReference> getTargetThisReferences()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • isValidWhenInversed

        private static boolean isValidWhenInversed​(MappingReference mappingRef)
        MapStruct filters automatically inversed invalid methods out. TODO: this is a principle we should discuss!
        Parameters:
        mappingRef -
        Returns: