FieldMapBuilder(final ClassMapBuilder<A, B> classMapBuilder, final String a, final String b, final boolean byDefault, final Boolean sourceMappedOnNull, final Boolean destinationMappedOnNull) { this(classMapBuilder, a, b, classMapBuilder.getAType(), classMapBuilder.getBType(), byDefault, sourceMappedOnNull, destinationMappedOnNull); }
FieldMapBuilder(final ClassMapBuilder<A, B> classMapBuilder, final String a, final String b, boolean byDefault, Boolean sourceMappedOnNull, Boolean destinationMappedOnNull) { this(classMapBuilder, a, b, classMapBuilder.getAType(), classMapBuilder.getBType(), byDefault, sourceMappedOnNull, destinationMappedOnNull); }
public String toString() { return getClass().getSimpleName() + "[" + getAType() + ", " + getBType() + "]"; }
public String toString() { return getClass().getSimpleName() + "[" + getAType() + ", " + getBType() + "]"; }
/** * 构建执行拷贝的 Copier * * @return copier */ public OrikaCopier<F, T> register() { builder.byDefault().register(); Class<F> sourceClass = builder.getAType().getRawType(); Class<T> targetClass = builder.getBType().getRawType(); return new OrikaCopier<>(sourceClass, targetClass); }
/** * Exclude the specified field from mapping * * @param fieldName * the name of the field/property to exclude * @return this ClassMapBuilder */ public ClassMapBuilder<A, B> exclude(String fieldName) { if (propertyResolver.existsProperty(getAType(), fieldName) && propertyResolver.existsProperty(getBType(), fieldName)) { return fieldMap(fieldName).exclude().add(); } else { return this; } }