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

com.fastchar.extjs.provider.FastExtEnum Maven / Gradle / Ivy

There is a newer version: 2.2.2
Show newest version
package com.fastchar.extjs.provider;

import com.fastchar.extjs.accepter.FastExtEnumAccepter;
import com.fastchar.extjs.core.enums.FastEnumInfo;
import com.fastchar.extjs.interfaces.IFastExtEnum;
import com.fastchar.utils.FastEnumUtils;

import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.util.ArrayList;
import java.util.List;

public class FastExtEnum extends FastExtBaseEnum {

    public static boolean isOverride(Object data) {
        if (data == null) {
            return false;
        }
        return FastExtEnumAccepter.ENUM_MAP.containsKey(data.toString());
    }


    private Class enumClass;
    public FastExtEnum(String enumName) {
        enumClass = FastExtEnumAccepter.ENUM_MAP.get(enumName);
    }

    public Class getEnumClass() {
        return enumClass;
    }

    public FastExtEnum setEnumClass(Class enumClass) {
        this.enumClass = enumClass;
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy