public static DozerPropertyDescriptor getPropertyDescriptor(Class<?> clazz, ClassMap classMap, List<DozerField> srcFields, DozerField dest) { DozerPropertyDescriptor[] propertyDescriptors = new DozerPropertyDescriptor[srcFields.size()]; for (int i = 0; i < srcFields.size(); i++) { propertyDescriptors[i] = getPropertyDescriptor(clazz, classMap, srcFields.get(i), dest); } return new MultiFieldsPropertyDescriptor(propertyDescriptors); }
public static DozerPropertyDescriptor getPropertyDescriptor(Class<?> clazz, ClassMap classMap, List<DozerField> srcFields, DozerField dest) { DozerPropertyDescriptor[] propertyDescriptors = new DozerPropertyDescriptor[srcFields.size()]; for (int i = 0; i < srcFields.size(); i++) { propertyDescriptors[i] = getPropertyDescriptor(clazz, classMap, srcFields.get(i), dest); } return new MultiFieldsPropertyDescriptor(propertyDescriptors); }
@Override public DozerPropertyDescriptor getDestPropertyDescriptor(Class<?> runtimeDestClass) { DozerPropertyDescriptor result = getDestPropertyDescriptorMap().get(runtimeDestClass); if (result == null) { DozerPropertyDescriptor descriptor = PropertyDescriptorFactory.getPropertyDescriptor(runtimeDestClass, getClassMap(), getDest(), null); getDestPropertyDescriptorMap().putIfAbsent(runtimeDestClass, descriptor); result = descriptor; } return result; }
@Override public DozerPropertyDescriptor getDestPropertyDescriptor(Class<?> runtimeDestClass) { DozerPropertyDescriptor result = getDestPropertyDescriptorMap().get(runtimeDestClass); if (result == null) { DozerPropertyDescriptor descriptor = PropertyDescriptorFactory.getPropertyDescriptor(runtimeDestClass, getClassMap(), getDest(), null); getDestPropertyDescriptorMap().putIfAbsent(runtimeDestClass, descriptor); result = descriptor; } return result; }
@Override public DozerPropertyDescriptor getSrcPropertyDescriptor(Class<?> runtimeSrcClass) { DozerPropertyDescriptor result = getSrcPropertyDescriptorMap().get(runtimeSrcClass); if (result == null) { DozerPropertyDescriptor descriptor = PropertyDescriptorFactory.getPropertyDescriptor(runtimeSrcClass, getClassMap(), getSrc(), getDestField()); getSrcPropertyDescriptorMap().putIfAbsent(runtimeSrcClass, descriptor); result = descriptor; } return result; }
@Override public DozerPropertyDescriptor getSrcPropertyDescriptor(Class<?> runtimeSrcClass) { DozerPropertyDescriptor result = getSrcPropertyDescriptorMap().get(runtimeSrcClass); if (result == null) { DozerPropertyDescriptor descriptor = PropertyDescriptorFactory.getPropertyDescriptor(runtimeSrcClass, getClassMap(), getSrcField(), getDestField()); getSrcPropertyDescriptorMap().putIfAbsent(runtimeSrcClass, descriptor); result = descriptor; } return result; }
@Override public DozerPropertyDescriptor getSrcPropertyDescriptor(Class<?> runtimeSrcClass) { DozerPropertyDescriptor result = getSrcPropertyDescriptorMap().get(runtimeSrcClass); if (result == null) { DozerPropertyDescriptor descriptor = PropertyDescriptorFactory.getPropertyDescriptor(runtimeSrcClass, getClassMap(), getSrc(), getDestField()); getSrcPropertyDescriptorMap().putIfAbsent(runtimeSrcClass, descriptor); result = descriptor; } return result; }
@Override public DozerPropertyDescriptor getSrcPropertyDescriptor(Class<?> runtimeSrcClass) { DozerPropertyDescriptor result = getSrcPropertyDescriptorMap().get(runtimeSrcClass); if (result == null) { DozerPropertyDescriptor descriptor = PropertyDescriptorFactory.getPropertyDescriptor(runtimeSrcClass, getClassMap(), getSrc(), getDestField()); getSrcPropertyDescriptorMap().putIfAbsent(runtimeSrcClass, descriptor); result = descriptor; } return result; }
@Override public DozerPropertyDescriptor getSrcPropertyDescriptor(Class<?> runtimeSrcClass) { DozerPropertyDescriptor result = getSrcPropertyDescriptorMap().get(runtimeSrcClass); if (result == null) { DozerPropertyDescriptor descriptor = PropertyDescriptorFactory.getPropertyDescriptor(runtimeSrcClass, getClassMap(), getSrc(), getDestField()); getSrcPropertyDescriptorMap().putIfAbsent(runtimeSrcClass, descriptor); result = descriptor; } return result; }
@Override public DozerPropertyDescriptor getSrcPropertyDescriptor(Class<?> runtimeSrcClass) { DozerPropertyDescriptor result = getSrcPropertyDescriptorMap().get(runtimeSrcClass); if (result == null) { DozerPropertyDescriptor descriptor = PropertyDescriptorFactory.getPropertyDescriptor(runtimeSrcClass, getClassMap(), getSrcField(), getDestField()); getSrcPropertyDescriptorMap().putIfAbsent(runtimeSrcClass, descriptor); result = descriptor; } return result; }
public static DozerPropertyDescriptor getPropertyDescriptor(Class<?> clazz, ClassMap classMap, DozerField src, DozerField dest) { if (MappingUtils.isBlankOrNull(src.getName())) { return new EmptyFieldPropertyDescriptor(); } LOG.info("clazz = " + clazz.getName()); LOG.info("src.getTheGetMethod() = " + src.getTheGetMethod()); LOG.info("src.getTheSetMethod() = " + src.getTheSetMethod()); LOG.info("src.getMapGetMethod() = " + src.getMapGetMethod()); LOG.info("src.getMapSetMethod() = " + src.getMapSetMethod()); LOG.info("src.isAccessible() = " + src.isAccessible()); LOG.info("src.isIndexed() = " + src.isIndexed()); LOG.info("src.getIndex() = " + src.getIndex()); LOG.info("src.getName() = " + src.getName()); LOG.info("src.getKey() = " + src.getKey()); LOG.info("src.isSelfReferenced() = " + src.isSelfReferenced()); LOG.info("src.getName() = " + src.getName()); LOG.info("src.getDeepIndexHintContainer() = " + src.getDeepIndexHintContainer()); LOG.info("classMap.getDestClassBeanFactory() = " + classMap.getDestClassBeanFactory()); return getPropertyDescriptor(clazz, src.getTheGetMethod(), src.getTheSetMethod(), src.getMapGetMethod(), src.getMapSetMethod(), src.isAccessible(), src.isIndexed(), src.getIndex(), src.getName(), src .getKey(), src.isSelfReferenced(), src.getName(), src.getDeepIndexHintContainer(), classMap.getDestClassBeanFactory()); }
LOG.info("classMap.getDestClassBeanFactory() = " + classMap.getDestClassBeanFactory()); return getPropertyDescriptor(clazz, src.getTheGetMethod(), src.getTheSetMethod(),
protected DozerPropertyDescriptor getSrcPropertyDescriptor(Class<?> runtimeSrcClass) { DozerPropertyDescriptor result = this.srcPropertyDescriptorMap.get(runtimeSrcClass); if (result == null) { String srcFieldMapGetMethod = getSrcFieldMapGetMethod(); String srcFieldMapSetMethod = getSrcFieldMapSetMethod(); DozerPropertyDescriptor descriptor = PropertyDescriptorFactory.getPropertyDescriptor(runtimeSrcClass, getSrcFieldTheGetMethod(), getSrcFieldTheSetMethod(), srcFieldMapGetMethod, srcFieldMapSetMethod, isSrcFieldAccessible(), isSrcFieldIndexed(), getSrcFieldIndex(), getSrcFieldName(), getSrcFieldKey(), isSrcSelfReferencing(), getDestFieldName(), getSrcDeepIndexHintContainer(), getDestDeepIndexHintContainer(), classMap.getSrcClassBeanFactory()); this.srcPropertyDescriptorMap.putIfAbsent(runtimeSrcClass, descriptor); result = descriptor; } return result; }
protected DozerPropertyDescriptor getDestPropertyDescriptor(Class<?> runtimeDestClass) { if (BeanBuilder.class.isAssignableFrom(runtimeDestClass)) { MappingUtils.throwMappingException( "getDestPropertyDescriptor received builder instead of concrete class - it's a bug, please post stack trace at https://github.com/DozerMapper/dozer or directly to dmitry@spikhalskiy.com "); return null; } DozerPropertyDescriptor result = this.destPropertyDescriptorMap.get(runtimeDestClass); if (result == null) { DozerPropertyDescriptor descriptor = PropertyDescriptorFactory.getPropertyDescriptor(runtimeDestClass, getDestFieldTheGetMethod(), getDestFieldTheSetMethod(), getDestFieldMapGetMethod(), getDestFieldMapSetMethod(), isDestFieldAccessible(), isDestFieldIndexed(), getDestFieldIndex(), getDestFieldName(), getDestFieldKey(), isDestSelfReferencing(), getSrcFieldName(), getSrcDeepIndexHintContainer(), getDestDeepIndexHintContainer(), classMap.getDestClassBeanFactory()); this.destPropertyDescriptorMap.putIfAbsent(runtimeDestClass, descriptor); result = descriptor; } return result; }
public DozerPropertyDescriptor getDestPropertyDescriptor(Class<?> runtimeDestClass) { DozerPropertyDescriptor result = this.destPropertyDescriptorMap.get(runtimeDestClass); if (result == null) { DozerPropertyDescriptor descriptor = PropertyDescriptorFactory.getPropertyDescriptor(runtimeDestClass, getDestFieldTheGetMethod(), getDestFieldTheSetMethod(), getDestFieldMapGetMethod(), getDestFieldMapSetMethod(), isDestFieldAccessible(), isDestFieldIndexed(), getDestFieldIndex(), getDestFieldName(), getDestFieldKey(), isDestSelfReferencing(), getSrcFieldName(), getDestDeepIndexHintContainer(), classMap.getDestClassBeanFactory()); this.destPropertyDescriptorMap.putIfAbsent(runtimeDestClass, descriptor); result = descriptor; } return result; }
public DozerPropertyDescriptor getSrcPropertyDescriptor(Class<?> runtimeSrcClass) { DozerPropertyDescriptor result = this.srcPropertyDescriptorMap.get(runtimeSrcClass); if (result == null) { String srcFieldMapGetMethod = getSrcFieldMapGetMethod(); String srcFieldMapSetMethod = getSrcFieldMapSetMethod(); DozerPropertyDescriptor descriptor = PropertyDescriptorFactory.getPropertyDescriptor(runtimeSrcClass, getSrcFieldTheGetMethod(), getSrcFieldTheSetMethod(), srcFieldMapGetMethod, srcFieldMapSetMethod, isSrcFieldAccessible(), isSrcFieldIndexed(), getSrcFieldIndex(), getSrcFieldName(), getSrcFieldKey(), isSrcSelfReferencing(), getDestFieldName(), getSrcDeepIndexHintContainer(), classMap.getSrcClassBeanFactory()); this.srcPropertyDescriptorMap.putIfAbsent(runtimeSrcClass, descriptor); result = descriptor; } return result; }
@Override public DozerPropertyDescriptor getDestPropertyDescriptor(Class<?> runtimeDestClass) { DozerPropertyDescriptor result = getDestPropertyDescriptorMap().get(runtimeDestClass); if (result == null) { DozerPropertyDescriptor descriptor = PropertyDescriptorFactory.getPropertyDescriptor(runtimeDestClass, getDestFieldTheGetMethod(), getDestFieldTheSetMethod(), getDestFieldMapGetMethod(), getDestFieldMapSetMethod(), isDestFieldAccessible(), isDestFieldIndexed(), getDestFieldIndex(), getDestFieldName(), getDestFieldKey(), isDestSelfReferencing(), getSrcFieldName(), getDestDeepIndexHintContainer(), getClassMap().getDestClassBeanFactory()); getDestPropertyDescriptorMap().putIfAbsent(runtimeDestClass, descriptor); result = descriptor; } return result; }
public DozerPropertyDescriptor getDestPropertyDescriptor(Class<?> runtimeDestClass) { DozerPropertyDescriptor result = this.destPropertyDescriptorMap.get(runtimeDestClass); if (result == null) { DozerPropertyDescriptor descriptor = PropertyDescriptorFactory.getPropertyDescriptor(runtimeDestClass, getDestFieldTheGetMethod(), getDestFieldTheSetMethod(), getDestFieldMapGetMethod(), getDestFieldMapSetMethod(), isDestFieldAccessible(), isDestFieldIndexed(), getDestFieldIndex(), getDestFieldName(), getDestFieldKey(), isDestSelfReferencing(), getSrcFieldName(), getDestDeepIndexHintContainer(), classMap.getDestClassBeanFactory()); this.destPropertyDescriptorMap.putIfAbsent(runtimeDestClass, descriptor); result = descriptor; } return result; }
public DozerPropertyDescriptor getSrcPropertyDescriptor(Class<?> runtimeSrcClass) { DozerPropertyDescriptor result = this.srcPropertyDescriptorMap.get(runtimeSrcClass); if (result == null) { String srcFieldMapGetMethod = getSrcFieldMapGetMethod(); String srcFieldMapSetMethod = getSrcFieldMapSetMethod(); DozerPropertyDescriptor descriptor = PropertyDescriptorFactory.getPropertyDescriptor(runtimeSrcClass, getSrcFieldTheGetMethod(), getSrcFieldTheSetMethod(), srcFieldMapGetMethod, srcFieldMapSetMethod, isSrcFieldAccessible(), isSrcFieldIndexed(), getSrcFieldIndex(), getSrcFieldName(), getSrcFieldKey(), isSrcSelfReferencing(), getDestFieldName(), getSrcDeepIndexHintContainer(), classMap.getSrcClassBeanFactory()); this.srcPropertyDescriptorMap.putIfAbsent(runtimeSrcClass, descriptor); result = descriptor; } return result; }
@Override public DozerPropertyDescriptor getDestPropertyDescriptor(Class<?> runtimeDestClass) { DozerPropertyDescriptor result = getDestPropertyDescriptorMap().get(runtimeDestClass); if (result == null) { DozerPropertyDescriptor descriptor = PropertyDescriptorFactory.getPropertyDescriptor(runtimeDestClass, getDestFieldTheGetMethod(), getDestFieldTheSetMethod(), getDestFieldMapGetMethod(), getDestFieldMapSetMethod(), isDestFieldAccessible(), isDestFieldIndexed(), getDestFieldIndex(), getDestFieldName(), getDestFieldKey(), isDestSelfReferencing(), getSrcFieldName(), getDestDeepIndexHintContainer(), getClassMap().getDestClassBeanFactory()); getDestPropertyDescriptorMap().putIfAbsent(runtimeDestClass, descriptor); result = descriptor; } return result; }