Package org.modeshape.common.annotation

Examples of org.modeshape.common.annotation.Category


                label = localizedString(labelAnnotation.i18n(), labelAnnotation.value());
                inferred = false;
            }
        }
        if (category == null) {
            Category cat = getAnnotation(Category.class, field, getters, setters);
            if (cat != null) {
                category = localizedString(cat.i18n(), cat.value());
                inferred = false;
            }
        }
        if (!readOnly) {
            ReadOnly readOnlyAnnotation = getAnnotation(ReadOnly.class, field, getters, setters);
View Full Code Here


    protected void verifyI18nForAnnotation( Annotation annotation,
                                            Object annotatedObject ) throws Exception {
        String i18nIdentifier;
        Class<?> i18nClass;
        if (annotation instanceof Category) {
            Category cat = (Category)annotation;
            i18nClass = cat.i18n();
            i18nIdentifier = cat.value();
        } else if (annotation instanceof Description) {
            Description desc = (Description)annotation;
            i18nClass = desc.i18n();
            i18nIdentifier = desc.value();
        } else if (annotation instanceof Label) {
View Full Code Here

TOP

Related Classes of org.modeshape.common.annotation.Category

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.