Package com.buschmais.cdo.spi.reflection

Examples of com.buschmais.cdo.spi.reflection.AnnotatedType


            }
        }
        // remove all super types if their sub types are already contained in the type set
        TypeMetadataSet<EntityMetadata> uniqueTypes = new TypeMetadataSet();
        for (TypeMetadata<EntityMetadata> typeMetadata : allTypeMetadatas) {
            AnnotatedType annotatedType = typeMetadata.getAnnotatedType();
            boolean subtype = false;
            for (Iterator<TypeMetadata<EntityMetadata>> subTypeIterator = allTypeMetadatas.iterator(); subTypeIterator.hasNext() && !subtype; ) {
                AnnotatedType otherAnnotatedType = subTypeIterator.next().getAnnotatedType();
                if (!annotatedType.equals(otherAnnotatedType) && annotatedType.getAnnotatedElement().isAssignableFrom(otherAnnotatedType.getAnnotatedElement())) {
                    subtype = true;
                }
            }
            if (!subtype) {
                uniqueTypes.add(typeMetadata);
View Full Code Here

TOP

Related Classes of com.buschmais.cdo.spi.reflection.AnnotatedType

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.