Examples of asMetadata()


Examples of org.apache.oodt.cas.pge.metadata.PgeMetadata.asMetadata()

         PgeMetadata parentPgeMetadata) throws Exception {
      PgeMetadata pgeMetadata = new PgeMetadata(parentPgeMetadata);
      Element root = getRootElement(configFile);

      // Read in imports
      List<Pair<String, String>> imports = getImports(root, pgeMetadata.asMetadata());
      for (Pair<String, String> imp : imports) {
         String namespace = imp.getFirst();
         String file = imp.getSecond();

         // If relative path, then make path relative to configFile.
View Full Code Here

Examples of org.apache.oodt.cas.pge.metadata.PgeMetadata.asMetadata()

         }
      }

      // load custom metadata
      loadCustomMetadata(root, pgeMetadata);
      Metadata metadata = pgeMetadata.asMetadata();

      // load dynamic config file info
      for (DynamicConfigFile dcf : getDynamicConfigFiles(root, metadata)) {
         pgeConfig.addDynamicConfigFile(dcf);
      }
View Full Code Here

Examples of org.apache.oodt.cas.pge.metadata.PgeMetadata.asMetadata()

      pgeMetadata.markAsDynamicMetadataKey();
      pgeMetadata.commitMarkedDynamicMetadataKeys();
      PgeConfig pgeConfig = builder.build(pgeMetadata);

      // Verify metadata checks out.
      assertEquals(40, pgeMetadata.asMetadata().getAllKeys().size());
      assertEquals(CONFIG_FILE, pgeMetadata.getMetadata(CONFIG_FILE_PATH));
      assertEquals("src/test/resources/data-file-1.txt", pgeMetadata.getMetadata("INPUT_FILE_1"));
      assertEquals("src/test/resources/data-file-2.txt", pgeMetadata.getMetadata("INPUT_FILE_2"));
      assertEquals("/tmp", pgeMetadata.getMetadata("WORKING_DIR"));
      assertEquals(">", pgeMetadata.getMetadata("commons/GreaterThan"));
View Full Code Here

Examples of org.apache.oodt.cas.pge.metadata.PgeMetadata.asMetadata()

        PgeMetadata localPgeMetadata = this.getCustomMetadata((Element) root
                .getElementsByTagName(CUSTOM_METADATA_TAG).item(0), pgeMetadata);
        PgeMetadata curPgeMetadata = new PgeMetadata();
        curPgeMetadata.replaceMetadata(pgeMetadata);
        curPgeMetadata.replaceMetadata(localPgeMetadata);
        Metadata curMetadata = curPgeMetadata.asMetadata();
       
        // load dynamic config file info
        List<DynamicConfigFile> configFileList = this.getDynConfigFile(
                (Element) root.getElementsByTagName(DYN_INPUT_FILES_TAG)
                        .item(0), curMetadata);
View Full Code Here

Examples of org.apache.oodt.cas.pge.metadata.PgeMetadata.asMetadata()

            throws MalformedURLException, Exception {
      PgeMetadata localPgeMetadata = new PgeMetadata();
      PgeMetadata curPgeMetadata = new PgeMetadata();
      curPgeMetadata.replaceMetadata(pgeMetadata);
      Metadata curPlusLocalMetadata = new Metadata();
      curPlusLocalMetadata.addMetadata(curPgeMetadata.asMetadata().getHashtable());
     
        if (customMetadataElem != null) {
            NodeList customMetadataList = customMetadataElem
                    .getElementsByTagName(METADATA_TAG);
            for (int i = 0; i < customMetadataList.getLength(); i++) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.