Package com.asakusafw.runtime.model

Examples of com.asakusafw.runtime.model.DataModelKind


    private static boolean isKindMatched(OperatorCompilingEnvironment environment, TypeMirror type) {
        assert environment != null;
        assert type != null;
        TypeElement element = (TypeElement) environment.getTypeUtils().asElement(type);
        DataModelKind kind = element.getAnnotation(DataModelKind.class);
        return kind != null && kind.value().equals("DMDL");
    }
View Full Code Here


            LOG.debug("{}は{}のサブタイプでないため、スキップされます",
                    aClass.getName(),
                    DataModel.class.getName());
            return false;
        }
        DataModelKind kind = aClass.getAnnotation(DataModelKind.class);
        if (kind == null) {
            LOG.debug("{}は{}の指定がないため、スキップされます",
                    aClass.getName(),
                    DataModelKind.class.getName());
            return false;
        }
        if (kind.value().equals(KIND) == false) {
            LOG.debug("{}は@{}(\"{}\")の指定がないため、スキップされます", new Object[] {
                    aClass.getName(),
                    DataModelKind.class.getName(),
                    KIND,
            });
View Full Code Here

    @Override
    public <T> DataModelDefinition<T> get(Class<T> modelClass) {
        if (DataModel.class.isAssignableFrom(modelClass) == false) {
            return null;
        }
        DataModelKind kind = modelClass.getAnnotation(DataModelKind.class);
        if (kind == null || kind.value().equals(KIND_NAME) == false) {
            return null;
        }
        return new DefaultDataModelDefinition<T>(modelClass);
    }
View Full Code Here

TOP

Related Classes of com.asakusafw.runtime.model.DataModelKind

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.