public FieldPropertyDescriptor(Class<?> clazz, String fieldName, boolean isIndexed, int index, HintContainer srcDeepIndexHintContainer, HintContainer destDeepIndexHintContainer) { super(clazz, fieldName, isIndexed, index, srcDeepIndexHintContainer, destDeepIndexHintContainer); String[] tokens = fieldName.split(DozerConstants.DEEP_FIELD_DELIMITER_REGEXP); descriptorChain = new DozerPropertyDescriptor[tokens.length]; Class<?> currentType = clazz; for (int i = 0, tokensLength = tokens.length; i < tokensLength; i++) { String token = tokens[i]; descriptorChain[i] = new ChainedPropertyDescriptor(currentType, token, isIndexed, index); if (i < tokensLength) { Field field = ReflectionUtils.getFieldFromBean(currentType, tokens[i]); currentType = field.getType(); } } }
public FieldPropertyDescriptor(Class<?> clazz, String fieldName, boolean isIndexed, String index, HintContainer deepIndexHintContainer) { super(clazz, fieldName, isIndexed, index, deepIndexHintContainer); String[] tokens = fieldName.split(DozerConstants.DEEP_FIELD_DELIMITER_REGEXP); descriptorChain = new DozerPropertyDescriptor[tokens.length]; Class<?> currentType = clazz; for (int i = 0, tokensLength = tokens.length; i < tokensLength; i++) { String token = tokens[i]; descriptorChain[i] = new ChainedPropertyDescriptor(currentType, token, isIndexed, index); if (i < tokensLength) { Field field = ReflectionUtils.getFieldFromBean(currentType, tokens[i]); currentType = field.getType(); } } }
public FieldPropertyDescriptor(Class<?> clazz, String fieldName, boolean isIndexed, String index, HintContainer deepIndexHintContainer) { super(clazz, fieldName, isIndexed, index, deepIndexHintContainer); String[] tokens = fieldName.split(DozerConstants.DEEP_FIELD_DELIMITER_REGEXP); descriptorChain = new DozerPropertyDescriptor[tokens.length]; Class<?> currentType = clazz; for (int i = 0, tokensLength = tokens.length; i < tokensLength; i++) { String token = tokens[i]; descriptorChain[i] = new ChainedPropertyDescriptor(currentType, token, isIndexed, index); if (i < tokensLength) { Field field = ReflectionUtils.getFieldFromBean(currentType, tokens[i]); currentType = field.getType(); } } }