Package com.fasterxml.jackson.module.mrbean.BeanBuilder

Examples of com.fasterxml.jackson.module.mrbean.BeanBuilder.TypeDescription


        return (_setter != null) && BeanUtil.isConcrete(_setter);
    }

    private TypeDescription getterType(TypeFactory tf)
    {
        return new TypeDescription(tf.constructType(_getter.getGenericReturnType(), _context));
    }
View Full Code Here


        return new TypeDescription(tf.constructType(_getter.getGenericReturnType(), _context));
    }

    private TypeDescription setterType(TypeFactory tf)
    {
        return new TypeDescription(tf.constructType(_setter.getGenericParameterTypes()[0], _context));
    }
View Full Code Here

            return getterType(tf);
        }
        /* Otherwise must ensure they are compatible, choose more specific
         * (most often setter - type)
         */
        TypeDescription st = setterType(tf);
        TypeDescription gt = getterType(tf);
        TypeDescription specificType = TypeDescription.moreSpecificType(st, gt);
        if (specificType == null) { // incompatible...
            throw new IllegalArgumentException("Invalid property '"+getName()
                    +"': incompatible types for getter/setter ("
                    +gt+" vs "+st+")");

View Full Code Here

TOP

Related Classes of com.fasterxml.jackson.module.mrbean.BeanBuilder.TypeDescription

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.