shz.core.translate.SchemeHandler Maven / Gradle / Ivy
package shz.core.translate;
import shz.core.type.TypeHelp;
import java.lang.annotation.Annotation;
import java.lang.reflect.Field;
public abstract class SchemeHandler {
protected final Class cls = TypeHelp.getParameterizedType(getClass(), SchemeHandler.class, "A", false);
protected abstract TranslateMap map(A a);
protected String refFieldName(A a) {
return null;
}
protected String defaultRefFieldName(A a, Field field) {
return field.getName() + "Text";
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy