Examples of XmlElementDeclPrism


Examples of org.mapstruct.ap.prism.XmlElementDeclPrism

            if ( !( candidate instanceof SourceMethod ) ) {
                continue;
            }

            SourceMethod candidateMethod = (SourceMethod) candidate;
            XmlElementDeclPrism xmlElememtDecl = XmlElementDeclPrism.getInstanceOn( candidateMethod.getExecutable() );

            if ( xmlElememtDecl == null ) {
                continue;
            }

            String name = xmlElememtDecl.name();
            TypeMirror scope = xmlElememtDecl.scope();
            TypeMirror target = sourceMappingMethod.getExecutable().getReturnType();

            boolean nameIsSetAndMatches = name != null && name.equals( targetPropertyName );
            boolean scopeIsSetAndMatches = scope != null && typeUtils.isSameType( scope, target );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.