private void checkTypeCompatability(final SoftwareModule softwareModule) { // we cannot allow that modules are added without a type defined if (type == null) { throw new DistributionSetTypeUndefinedException(); } // check if it is allowed to such a module to this DS type if (!type.containsModuleType(softwareModule.getType())) { throw new UnsupportedSoftwareModuleForThisDistributionSetException(); } }
private void checkTypeCompatability(final SoftwareModule softwareModule) { // we cannot allow that modules are added without a type defined if (type == null) { throw new DistributionSetTypeUndefinedException(); } // check if it is allowed to such a module to this DS type if (!type.containsModuleType(softwareModule.getType())) { throw new UnsupportedSoftwareModuleForThisDistributionSetException(); } }
return false; if (!ds.getType().containsModuleType(sm.getType())) {
return false; if (!ds.getType().containsModuleType(sm.getType())) {