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 .