@Test public void testSampleCodingRemovedInSubset() throws IOException { final ProductSubsetDef subsetDef = new ProductSubsetDef(); subsetDef.setNodeNames(new String[]{COLORED_BAND_NAME}); final Product subset = ProductSubsetBuilder.createProductSubset(product, subsetDef, "subset", ""); assertFalse(subset.getBandGroup().contains(INDEX_CODED_BAND_NAME)); assertTrue(subset.getBandGroup().contains(COLORED_BAND_NAME)); assertFalse(subset.getIndexCodingGroup().contains(INDEX_CODING_NAME)); }
public static Product createProductSubset(Product sourceProduct, ProductSubsetDef subsetDef, String name, String desc) throws IOException { return createProductSubset(sourceProduct, false, subsetDef, name, desc); }
ProductSubsetBuilder extends AbstractProductBuilder { public static Product createProductSubset(Product sourceProduct, ProductSubsetDef subsetDef, String name, String desc) throws IOException { return createProductSubset(sourceProduct, false, subsetDef, name, desc); } }
ProductSubsetBuilder extends AbstractProductBuilder { public static Product createProductSubset(Product sourceProduct, ProductSubsetDef subsetDef, String name, String desc) throws IOException { return createProductSubset(sourceProduct, false, subsetDef, name, desc); } ProductSubsetBuilder();  ProductSubsetBuilder(boolean sourceProductOwner); }
ProductSubsetBuilder extends AbstractProductBuilder { public static Product createProductSubset(Product sourceProduct, ProductSubsetDef subsetDef, String name, String desc) throws IOException { return createProductSubset(sourceProduct, false, subsetDef, name, desc); } ProductSubsetBuilder();  ProductSubsetBuilder(boolean sourceProductOwner); static Product createProductSubset(Product sourceProduct, ProductSubsetDef subsetDef, String name,
                                              String desc); static Product createProductSubset(Product sourceProduct, boolean sourceProductOwner,
                                              ProductSubsetDef subsetDef, String name, String desc); }
ProductSubsetBuilder extends AbstractProductBuilder { public static Product createProductSubset(Product sourceProduct, ProductSubsetDef subsetDef, String name, String desc) throws IOException { return createProductSubset(sourceProduct, false, subsetDef, name, desc); } ProductSubsetBuilder();  ProductSubsetBuilder(boolean sourceProductOwner); static Product createProductSubset(Product sourceProduct, ProductSubsetDef subsetDef, String name,
                                              String desc); static Product createProductSubset(Product sourceProduct, boolean sourceProductOwner,
                                              ProductSubsetDef subsetDef, String name, String desc);  }