All Downloads are FREE. Search and download functionalities are using the official Maven repository.

shz.core.translate.SchemeHandler Maven / Gradle / Ivy

There is a newer version: 2024.0.2
Show newest version
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