public void addCardinality ( Class < ? extends ElementBase > sourceClass , Class < ? extends ElementBase > targetClass , int maxOccurrences ) { Cardinality cardinality = new Cardinality ( sourceClass , targetClass , maxOccurrences ) ; getOrCreateCardinalities ( sourceClass ) . addCardinality ( cardinality ) ; }
Adds cardinality relationship between source and target classes .