public Object getValue(ObjectFields of) {
        switch (of.getType()) {
            case "integer":
                return of.getIntval();
            case "long":
                return of.getLongval();
            case "double":
                return of.getFloatval();
            case "date":
                return of.getDateval();
            case "string":
                return of.getStrval();
        }
        return null;
    }