Exemple #1
0
 public void removePackageType(PackageType packageType) {
   packageTypes.remove(packageType);
   packageType.setResourceType(null);
   if (packageTypes.isEmpty()) {
     packageTypes = null;
   }
 }
Exemple #2
0
 public void addPackageType(PackageType packageType) {
   if (packageTypes == null) {
     packageTypes = new HashSet<PackageType>(1);
   }
   packageType.setResourceType(this);
   packageTypes.add(packageType);
 }