@Test public void testGetMetadata() { final MetadataElement manifestElement = manifest.getMetadata(); assertNotNull(manifestElement); assertEquals("Manifest", manifestElement.getName()); assertEquals(0, manifestElement.getNumAttributes()); assertEquals(1, manifestElement.getNumElements()); final MetadataElement headerElement = manifestElement.getElement("Earth_Explorer_Header"); assertNotNull(headerElement); assertEquals(2, headerElement.getNumElements()); final MetadataElement fixedHeaderElement = headerElement.getElement("Fixed_Header"); assertNotNull(fixedHeaderElement); assertEquals(7, fixedHeaderElement.getNumAttributes()); assertEquals("TEST", fixedHeaderElement.getAttributeString("File_Class")); MetadataElement validityPeriodElement = fixedHeaderElement.getElement("Validity_Period"); assertNotNull(validityPeriodElement); assertEquals(2, validityPeriodElement.getNumAttributes()); }
@Override public MetadataElement getMetadata() { final MetadataElement manifestElement = new MetadataElement("Manifest"); final Node node = xPathHelper.getNode(" manifestElement.addElement(convertNodeToMetadataElement(node, new MetadataElement(node.getNodeName()))); return manifestElement; }
EarthExplorerManifest implements Manifest { @Override public MetadataElement getMetadata() { final MetadataElement manifestElement = new MetadataElement("Manifest"); final Node node = xPathHelper.getNode(" manifestElement.addElement(convertNodeToMetadataElement(node, new MetadataElement(node.getNodeName()))); return manifestElement; } }
EarthExplorerManifest implements Manifest { @Override public MetadataElement getMetadata() { final MetadataElement manifestElement = new MetadataElement("Manifest"); final Node node = xPathHelper.getNode(" manifestElement.addElement(convertNodeToMetadataElement(node, new MetadataElement(node.getNodeName()))); return manifestElement; } private  EarthExplorerManifest(Document manifestDocument); }
EarthExplorerManifest implements Manifest { @Override public MetadataElement getMetadata() { final MetadataElement manifestElement = new MetadataElement("Manifest"); final Node node = xPathHelper.getNode(" manifestElement.addElement(convertNodeToMetadataElement(node, new MetadataElement(node.getNodeName()))); return manifestElement; } private  EarthExplorerManifest(Document manifestDocument); @Override String getProductName(); @Override String getProductType(); @Override final String getDescription(); @Override final ProductData.UTC getStartTime(); @Override final ProductData.UTC getStopTime(); @Override final List<String> getFileNames(String schema); @Override List<String> getFileNames(String[] excluded); @Override MetadataElement getMetadata(); }
EarthExplorerManifest implements Manifest { @Override public MetadataElement getMetadata() { final MetadataElement manifestElement = new MetadataElement("Manifest"); final Node node = xPathHelper.getNode(" manifestElement.addElement(convertNodeToMetadataElement(node, new MetadataElement(node.getNodeName()))); return manifestElement; } private  EarthExplorerManifest(Document manifestDocument); @Override String getProductName(); @Override String getProductType(); @Override final String getDescription(); @Override final ProductData.UTC getStartTime(); @Override final ProductData.UTC getStopTime(); @Override final List<String> getFileNames(String schema); @Override List<String> getFileNames(String[] excluded); @Override MetadataElement getMetadata();  }