Examples of NameTransformer


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

                    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

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

                    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

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

        }

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

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

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

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

                    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

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

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

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

Examples of org.modelmapper.spi.NameTransformer

    if (source != null)
      valueReader = configuration.valueAccessStore.getFirstSupportedReader(type);
    if (valueReader == null)
      resolveProperties(type, true, configuration, accessors);
    else {
      NameTransformer nameTransformer = configuration.getSourceNameTransformer();
      for (String memberName : valueReader.memberNames(source)) {
        Object sourceValue = valueReader.get(source, memberName);
        if (sourceValue != null)
          accessors.put(nameTransformer.transform(memberName, NameableType.GENERIC),
              new ValueReaderPropertyInfo(valueReader, sourceValue, memberName));
      }
    }
    return accessors;
  }
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.