Examples of replaceMetadata()


Examples of org.apache.oodt.cas.metadata.Metadata.replaceMetadata()

    DefaultMutableTreeNode node = new DefaultMutableTreeNode(graph);
    DefaultMutableTreeNode metadataNode = new DefaultMutableTreeNode(
        "static-metadata");
    Metadata staticMetadata = new Metadata();
    if (graph.getInheritedStaticMetadata(state) != null)
      staticMetadata.replaceMetadata(graph.getInheritedStaticMetadata(state));
    if (graph.getModel().getStaticMetadata() != null)
      staticMetadata.replaceMetadata(graph.getModel().getStaticMetadata());
    this.addMetadataNodes(metadataNode, staticMetadata);
    if (!metadataNode.isLeaf())
      node.add(metadataNode);
View Full Code Here

Examples of org.apache.oodt.cas.metadata.Metadata.replaceMetadata()

        "static-metadata");
    Metadata staticMetadata = new Metadata();
    if (graph.getInheritedStaticMetadata(state) != null)
      staticMetadata.replaceMetadata(graph.getInheritedStaticMetadata(state));
    if (graph.getModel().getStaticMetadata() != null)
      staticMetadata.replaceMetadata(graph.getModel().getStaticMetadata());
    this.addMetadataNodes(metadataNode, staticMetadata);
    if (!metadataNode.isLeaf())
      node.add(metadataNode);

    if (graph.getPreConditions() != null) {
View Full Code Here

Examples of org.apache.oodt.cas.metadata.Metadata.replaceMetadata()

      Metadata combinedMetadata = new Metadata();
      for (Type type : combineOrder) {
         switch (type) {
            case DYNAMIC:
               combinedMetadata.replaceMetadata(dynamicMetadata);
               break;
            case STATIC:
               combinedMetadata.replaceMetadata(staticMetadata);
               break;
            case LOCAL:
View Full Code Here

Examples of org.apache.oodt.cas.metadata.Metadata.replaceMetadata()

         switch (type) {
            case DYNAMIC:
               combinedMetadata.replaceMetadata(dynamicMetadata);
               break;
            case STATIC:
               combinedMetadata.replaceMetadata(staticMetadata);
               break;
            case LOCAL:
               combinedMetadata.replaceMetadata(localMetadata);
               for (String key : keyLinkMap.keySet()) {
                  List<String> values = getAllMetadata(key);
View Full Code Here

Examples of org.apache.oodt.cas.metadata.Metadata.replaceMetadata()

               break;
            case STATIC:
               combinedMetadata.replaceMetadata(staticMetadata);
               break;
            case LOCAL:
               combinedMetadata.replaceMetadata(localMetadata);
               for (String key : keyLinkMap.keySet()) {
                  List<String> values = getAllMetadata(key);
                  if (values != null) {
                     combinedMetadata.replaceMetadata(key, values);
                  }
View Full Code Here

Examples of org.apache.oodt.cas.metadata.Metadata.replaceMetadata()

            case LOCAL:
               combinedMetadata.replaceMetadata(localMetadata);
               for (String key : keyLinkMap.keySet()) {
                  List<String> values = getAllMetadata(key);
                  if (values != null) {
                     combinedMetadata.replaceMetadata(key, values);
                  }
               }
               break;
         }
      }
View Full Code Here

Examples of org.apache.oodt.cas.metadata.Metadata.replaceMetadata()

    public Metadata getMetadataForFile(File sciPgeCreatedDataFile,
            PgeMetadata pgeMetadata, Object... customArgs) throws Exception {
        try {
            Metadata inputMetadata = pgeMetadata.asMetadata();

            inputMetadata.replaceMetadata(CoreMetKeys.FILENAME,
                    sciPgeCreatedDataFile.getName());
            inputMetadata.replaceMetadata(CoreMetKeys.FILE_LOCATION,
                    sciPgeCreatedDataFile.getParentFile().getAbsolutePath());
            inputMetadata.replaceMetadata(FILE_SIZE, Long.toString(new File(
          inputMetadata.getMetadata(CoreMetKeys.FILE_LOCATION),
View Full Code Here

Examples of org.apache.oodt.cas.metadata.Metadata.replaceMetadata()

        try {
            Metadata inputMetadata = pgeMetadata.asMetadata();

            inputMetadata.replaceMetadata(CoreMetKeys.FILENAME,
                    sciPgeCreatedDataFile.getName());
            inputMetadata.replaceMetadata(CoreMetKeys.FILE_LOCATION,
                    sciPgeCreatedDataFile.getParentFile().getAbsolutePath());
            inputMetadata.replaceMetadata(FILE_SIZE, Long.toString(new File(
          inputMetadata.getMetadata(CoreMetKeys.FILE_LOCATION),
          inputMetadata.getMetadata(CoreMetKeys.FILENAME)).length()));
           
View Full Code Here

Examples of org.apache.oodt.cas.metadata.Metadata.replaceMetadata()

            inputMetadata.replaceMetadata(CoreMetKeys.FILENAME,
                    sciPgeCreatedDataFile.getName());
            inputMetadata.replaceMetadata(CoreMetKeys.FILE_LOCATION,
                    sciPgeCreatedDataFile.getParentFile().getAbsolutePath());
            inputMetadata.replaceMetadata(FILE_SIZE, Long.toString(new File(
          inputMetadata.getMetadata(CoreMetKeys.FILE_LOCATION),
          inputMetadata.getMetadata(CoreMetKeys.FILENAME)).length()));
           
            return this.getSciPgeSpecificMetadata(
                    sciPgeCreatedDataFile, inputMetadata, customArgs);
View Full Code Here

Examples of org.apache.oodt.cas.metadata.Metadata.replaceMetadata()

                         .getName())) {
                     try {
                         PcsMetFileWriter writer = (PcsMetFileWriter) Class
                                 .forName(regExprFiles.getConverterClass())
                                 .newInstance();
                         outputMetadata.replaceMetadata(this.getMetadataForFile(
                 (regExprFiles.getRenamingConv() != null)
               ? createdFile = this.renameFile(createdFile, regExprFiles.getRenamingConv())
               : createdFile, writer, regExprFiles.getArgs()));
                     } catch (Exception e) {
                         logger.severe(
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.