@Test public void testExtractMetadata_secondLevel() { final MetadataElement secondary = new MetadataElement("secondary"); secondary.addAttribute(new MetadataAttribute("attribute_1", ProductData.ASCII.createInstance("hoppla_1"), true)); secondary.addAttribute(new MetadataAttribute("attribute_2", ProductData.ASCII.createInstance("hoppla_2"), true)); metadataRoot.addElement(secondary); final Properties properties = AbstractFormatExporter.extractMetadata(metadataRoot); assertEquals(2, properties.size()); assertEquals("hoppla_2", properties.getProperty("secondary:attribute_2")); }
static Properties extractMetadata(MetadataElement root) { final Properties properties = new Properties(); extractAttributes(root, properties, ""); return properties; }
AbstractFormatExporter implements FormatExporter { static Properties extractMetadata(MetadataElement root) { final Properties properties = new Properties(); extractAttributes(root, properties, ""); return properties; } }
AbstractFormatExporter implements FormatExporter { static Properties extractMetadata(MetadataElement root) { final Properties properties = new Properties(); extractAttributes(root, properties, ""); return properties; }  }
AbstractFormatExporter implements FormatExporter { static Properties extractMetadata(MetadataElement root) { final Properties properties = new Properties(); extractAttributes(root, properties, ""); return properties; }  @Override void initialize(Product product, ExportParameter exportParameter); @Override void prepareGeographicSubset(NFileWriteable nFileWriteable, ExportParameter exportParameter); @Override void addGlobalAttributes(NFileWriteable nFileWriteable, MetadataElement metadataRoot, ExportParameter exportParameter); @Override void addVariables(NFileWriteable nFileWriteable, ExportParameter exportParameter); @Override abstract void addDimensions(NFileWriteable nFileWriteable); }
AbstractFormatExporter implements FormatExporter { static Properties extractMetadata(MetadataElement root) { final Properties properties = new Properties(); extractAttributes(root, properties, ""); return properties; }  @Override void initialize(Product product, ExportParameter exportParameter); @Override void prepareGeographicSubset(NFileWriteable nFileWriteable, ExportParameter exportParameter); @Override void addGlobalAttributes(NFileWriteable nFileWriteable, MetadataElement metadataRoot, ExportParameter exportParameter); @Override void addVariables(NFileWriteable nFileWriteable, ExportParameter exportParameter); @Override abstract void addDimensions(NFileWriteable nFileWriteable);  }