Package org.mapstruct.ap.model.source

Examples of org.mapstruct.ap.model.source.EnumMapping


            for ( String enumConstant : sourceEnumConstants ) {
                List<Mapping> mappedConstants = method.getMappingBySourcePropertyName( enumConstant );

                if ( mappedConstants.isEmpty() ) {
                    enumMappings.add( new EnumMapping( enumConstant, enumConstant ) );
                }
                else if ( mappedConstants.size() == 1 ) {
                    enumMappings.add(
                        new EnumMapping(
                            enumConstant, mappedConstants.iterator().next().getTargetName()
                        )
                    );
                }
                else {
View Full Code Here

TOP

Related Classes of org.mapstruct.ap.model.source.EnumMapping

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.