Package com.fasterxml.jackson.databind.util

Examples of com.fasterxml.jackson.databind.util.NameTransformer


                continue;
            }
            // [Issue#15]: handle unwrapped props
            AnnotatedMember m = prop.getPrimaryMember();
            if (m != null) {
                NameTransformer nextUnwrapper = intr.findUnwrappingNameTransformer(prop.getPrimaryMember());
                if (nextUnwrapper != null) {
                    if (unwrapper != null) {
                        nextUnwrapper = NameTransformer.chainedTransformer(unwrapper, nextUnwrapper);
                    }
                    JavaType nextType = m.getType(beanDesc.bindingsForBeanType());
View Full Code Here


                    properties[i] = constructCreatorProperty(ctxt, beanDesc, name, i, param, injectId);
                } else if (injectId != null) { // injectable
                    ++injectCount;
                    properties[i] = constructCreatorProperty(ctxt, beanDesc, name, i, param, injectId);
                } else {
                    NameTransformer unwrapper = intr.findUnwrappingNameTransformer(param);
                    if (unwrapper != null) { // [Issue#265]: allow unwrapped properties
                        properties[i] = constructCreatorProperty(ctxt, beanDesc,
                                UNWRAPPED_CREATOR_PARAM_NAME, i, param, null);
                        ++namedCount;
                    } else {
View Full Code Here

                    properties[i] = constructCreatorProperty(ctxt, beanDesc, name, i, param, injectId);
                } else if (injectId != null) {
                    ++injectCount;
                    properties[i] = constructCreatorProperty(ctxt, beanDesc, name, i, param, injectId);
                } else {
                    NameTransformer unwrapper = intr.findUnwrappingNameTransformer(param);
                    if (unwrapper != null) {
                        properties[i] = constructCreatorProperty(ctxt, beanDesc, UNWRAPPED_CREATOR_PARAM_NAME, i, param, null);
                        ++namedCount;
                    } else {
                        if (nonAnnotatedParam == null) {
View Full Code Here

                    properties[i] = constructCreatorProperty(ctxt, beanDesc, name, i, param, injectId);
                } else if (injectId != null) { // injectable
                    ++injectCount;
                    properties[i] = constructCreatorProperty(ctxt, beanDesc, name, i, param, injectId);
                } else {
                    NameTransformer unwrapper = intr.findUnwrappingNameTransformer(param);
                    if (unwrapper != null) { // [Issue#265]: allow unwrapped properties
                        properties[i] = constructCreatorProperty(ctxt, beanDesc,
                                UNWRAPPED_CREATOR_PARAM_NAME, i, param, null);
                        ++namedCount;
                    } else {
View Full Code Here

                    properties[i] = constructCreatorProperty(ctxt, beanDesc, name, i, param, injectId);
                } else if (injectId != null) {
                    ++injectCount;
                    properties[i] = constructCreatorProperty(ctxt, beanDesc, name, i, param, injectId);
                } else {
                    NameTransformer unwrapper = intr.findUnwrappingNameTransformer(param);
                    if (unwrapper != null) {
                        properties[i] = constructCreatorProperty(ctxt, beanDesc, UNWRAPPED_CREATOR_PARAM_NAME, i, param, null);
                        ++namedCount;
                    } else {
                        if (nonAnnotatedParam == null) {
View Full Code Here

        return (r == null) ? _secondary.findReferenceType(member) : r;
    }

    @Override       
    public NameTransformer findUnwrappingNameTransformer(AnnotatedMember member) {
        NameTransformer r = _primary.findUnwrappingNameTransformer(member);
        return (r == null) ? _secondary.findUnwrappingNameTransformer(member) : r;
    }
View Full Code Here

                    properties[i] = constructCreatorProperty(ctxt, beanDesc, name, i, param, injectId);
                } else if (injectId != null) { // injectable
                    ++injectCount;
                    properties[i] = constructCreatorProperty(ctxt, beanDesc, name, i, param, injectId);
                } else {
                    NameTransformer unwrapper = intr.findUnwrappingNameTransformer(param);
                    if (unwrapper != null) { // [Issue#265]: allow unwrapped properties
                        properties[i] = constructCreatorProperty(ctxt, beanDesc,
                                UNWRAPPED_CREATOR_PARAM_NAME, i, param, null);
                        ++namedCount;
                    } else {
View Full Code Here

                    properties[i] = constructCreatorProperty(ctxt, beanDesc, name, i, param, injectId);
                } else if (injectId != null) {
                    ++injectCount;
                    properties[i] = constructCreatorProperty(ctxt, beanDesc, name, i, param, injectId);
                } else {
                    NameTransformer unwrapper = intr.findUnwrappingNameTransformer(param);
                    if (unwrapper != null) {
                        properties[i] = constructCreatorProperty(ctxt, beanDesc, UNWRAPPED_CREATOR_PARAM_NAME, i, param, null);
                        ++namedCount;
                    } else {
                        if (nonAnnotatedParam == null) {
View Full Code Here

    @Override
    public void assignSerializer(JsonSerializer<Object> ser)
    {
        super.assignSerializer(ser);
        if (_serializer != null) {
            NameTransformer t = _nameTransformer;
            if (_serializer.isUnwrappingSerializer()) {
                t = NameTransformer.chainedTransformer(t, ((UnwrappingBeanSerializer) _serializer)._nameTransformer);
            }
            _serializer = _serializer.unwrappingSerializer(t);
        }
View Full Code Here

            JavaType subtype = provider.constructSpecializedType(_nonTrivialBaseType, type);
            serializer = provider.findValueSerializer(subtype, this);
        } else {
            serializer = provider.findValueSerializer(type, this);
        }
        NameTransformer t = _nameTransformer;
        if (serializer.isUnwrappingSerializer()) {
            t = NameTransformer.chainedTransformer(t, ((UnwrappingBeanSerializer) serializer)._nameTransformer);
        }
        serializer = serializer.unwrappingSerializer(t);
       
View Full Code Here

TOP

Related Classes of com.fasterxml.jackson.databind.util.NameTransformer

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.