public boolean isRelated ( Class < ? extends ElementBase > sourceClass , Class < ? extends ElementBase > targetClass ) { return getCardinality ( sourceClass , targetClass ) . maxOccurrences > 0 ; }
Returns true if targetClass or a superclass of targetClass is related to sourceClass .