private static DozerField prepareField(String name, String type) { String fieldName; String fieldType = null; if (isIndexed(name)) { fieldName = getFieldNameOfIndexedField(name); } else { fieldName = name; } if (StringUtils.isNotEmpty(type)) { fieldType = type; } DozerField field = new DozerField(fieldName, fieldType); if (isIndexed(name)) { field.setIndexed(true); field.setIndex(getIndexOfIndexedField(name)); } return field; }
private static DozerField prepareField(String name, String type) { String fieldName; String fieldType = null; if (isIndexed(name)) { fieldName = getFieldNameOfIndexedField(name); } else { fieldName = name; } if (StringUtils.isNotEmpty(type)) { fieldType = type; } DozerField field = new DozerField(fieldName, fieldType); if (isIndexed(name)) { field.setIndexed(true); field.setIndex(getIndexOfIndexedField(name)); } return field; }
private static DozerField prepareField(String name, String type) { if (MappingUtils.isBlankOrNull(name)) { throw new MappingException("Field name can not be empty"); } String fieldName; String fieldType = null; if (isIndexed(name)) { fieldName = getFieldNameOfIndexedField(name); } else { fieldName = name; } if (StringUtils.isNotEmpty(type)) { fieldType = type; } DozerField field = new DozerField(fieldName, fieldType); if (isIndexed(name)) { field.setIndexed(true); field.setIndex(getIndexOfIndexedField(name)); } return field; }
public DozerField copyOf() { DozerField copy = new DozerField(name, type); copy.setDateFormat(dateFormat); copy.setTheGetMethod(theGetMethod); copy.setTheSetMethod(theSetMethod); copy.setKey(key); copy.setMapSetMethod(mapSetMethod); copy.setMapGetMethod(mapGetMethod); copy.setAccessible(accessible); copy.setCreateMethod(createMethod); copy.setIndexed(indexed); copy.setIndex(index); return copy; }
public DozerField copyOf() { DozerField copy = new DozerField(name, type); copy.setDateFormat(dateFormat); copy.setTheGetMethod(theGetMethod); copy.setTheSetMethod(theSetMethod); copy.setKey(key); copy.setMapSetMethod(mapSetMethod); copy.setMapGetMethod(mapGetMethod); copy.setAccessible(accessible); copy.setCreateMethod(createMethod); copy.setIndexed(indexed); copy.setIndex(index); return copy; }