Package org.mapstruct.ap.model.PropertyMapping

Examples of org.mapstruct.ap.model.PropertyMapping.PropertyMappingBuilder


                            if ( targetProperty != null ) {

                                // targetProperty == null can occur: we arrived here because we want as many errors
                                // as possible before we stop analysing
                                propertyMapping = new PropertyMappingBuilder()
                                        .mappingContext( ctx )
                                        .souceMethod( method )
                                        .targetAccessor( targetProperty )
                                        .targetPropertyName( mapping.getTargetName() )
                                        .sourceReference( sourceRef )
View Full Code Here


                                    .type( ctx.getTypeFactory().getReturnType( sourceAccessor ) )
                                    .accessor( sourceAccessor )
                                    .name( targetProperty.getKey() )
                                    .build();

                            newPropertyMapping = new PropertyMappingBuilder()
                                    .mappingContext( ctx )
                                    .souceMethod( method )
                                    .targetAccessor( targetProperty.getValue() )
                                    .targetPropertyName( targetProperty.getKey() )
                                    .sourceReference( sourceRef )
View Full Code Here

TOP

Related Classes of org.mapstruct.ap.model.PropertyMapping.PropertyMappingBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.