/** * Returns a set of category option group sets which are linked to this data * set through its category combination. */ public Set<CategoryOptionGroupSet> getCategoryOptionGroupSets() { Set<CategoryOptionGroupSet> groupSets = new HashSet<>(); if ( categoryCombo != null ) { for ( Category category : categoryCombo.getCategories() ) { for ( CategoryOption categoryOption : category.getCategoryOptions() ) { groupSets.addAll( categoryOption.getGroupSets() ); } } } return groupSets; }
if ( option.getGroupSets() != null ) cogSets.addAll( option.getGroupSets() );