public Cardinalities getCardinalities(Class<? extends ElementBase> sourceClass) {
        Class<?> clazz = sourceClass;
        Cardinalities cardinalities = null;
        
        while (cardinalities == null && clazz != null) {
            cardinalities = map.get(clazz);
            clazz = clazz == ElementBase.class ? null : clazz.getSuperclass();
        }
        
        return cardinalities;
    }
public Cardinalities getCardinalities ( Class < ? extends ElementBase > sourceClass ) { Class < ? > clazz = sourceClass ; Cardinalities cardinalities = null ; while ( cardinalities == null && clazz != null ) { cardinalities = map . get ( clazz ) ; clazz = clazz == ElementBase . class ? null : clazz . getSuperclass ( ) ; } return cardinalities ; }
Returns the cardinalities associated with this class or a superclass.

@param sourceClass Class whose relation is sought.
@return The cardinalities, or null if none found.