Examples of removeMetaData()


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

        String key = getKey(
            (String) DefaultPropView.this.table.getValueAt(row, 1), state);
        Metadata staticMet = state.getSelected().getModel().getStaticMetadata();
        if (staticMet == null)
          staticMet = new Metadata();
        staticMet.removeMetadata(key);
        staticMet.removeMetadata(key + "/envReplace");
        state.getSelected().getModel().setStaticMetadata(staticMet);
        DefaultPropView.this.notifyListeners();
      }
View Full Code Here

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

            (String) DefaultPropView.this.table.getValueAt(row, 1), state);
        Metadata staticMet = state.getSelected().getModel().getStaticMetadata();
        if (staticMet == null)
          staticMet = new Metadata();
        staticMet.removeMetadata(key);
        staticMet.removeMetadata(key + "/envReplace");
        state.getSelected().getModel().setStaticMetadata(staticMet);
        DefaultPropView.this.notifyListeners();
      }

    });
View Full Code Here

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

            staticMet.replaceMetadata(newKey, staticMet.getAllMetadata(oldKey));
            if (staticMet.containsKey(oldKey + "/envReplace"))
              staticMet.replaceMetadata(newKey,
                  staticMet.getAllMetadata(oldKey + "/envReplace"));
            if (!newKey.equals(oldKey))
              staticMet.removeMetadata(oldKey);
            notifyListeners();
          } else {
            staticMet.replaceMetadata(oldKey = newKey, (String) null);
          }
        } else if (e.getColumn() == 2) {
View Full Code Here

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

            String newValue = (String) table.getValueAt(e.getFirstRow(),
                e.getColumn());
            if (oldKey.endsWith("/envReplace")) {
              newValue = newValue.toLowerCase();
              if (newValue.equals("false"))
                staticMet.removeMetadata(oldKey);
              else
                staticMet.replaceMetadata(oldKey,
                    Arrays.asList(newValue.split(",")));
            } else {
              staticMet.replaceMetadata(oldKey,
View Full Code Here

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

            String newEnvReplace = ((String) table.getValueAt(e.getFirstRow(),
                e.getColumn())).toLowerCase();
            if (newEnvReplace.equals("true"))
              staticMet.replaceMetadata(oldKey + "/envReplace", newEnvReplace);
            else
              staticMet.removeMetadata(oldKey + "/envReplace");
            notifyListeners();
          }
        }
        state.getSelected().getModel().setStaticMetadata(staticMet);
      }
View Full Code Here

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

          // remove all metadata
          metadataTypes = currMet.getAllKeys();
        }

        for (String name : metadataTypes) {
            currMet.removeMetadata(name);
        }

        p.setMetadata(currMet);

        if (hasMetadataAndRefs(p)) {
View Full Code Here

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

           
      // retrieve existing metadata
      metadata = fmClient.getMetadata(product);

      // remove product references (as they will be added later)
      metadata.removeMetadata("reference_orig");
      metadata.removeMetadata("reference_data_store");
      metadata.removeMetadata("reference_fileSize");
      metadata.removeMetadata("reference_mimeType");
     
      // merge new and existing metadata
View Full Code Here

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

      // retrieve existing metadata
      metadata = fmClient.getMetadata(product);

      // remove product references (as they will be added later)
      metadata.removeMetadata("reference_orig");
      metadata.removeMetadata("reference_data_store");
      metadata.removeMetadata("reference_fileSize");
      metadata.removeMetadata("reference_mimeType");
     
      // merge new and existing metadata
      metadata.addMetadata(newMetadata);
View Full Code Here

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

      metadata = fmClient.getMetadata(product);

      // remove product references (as they will be added later)
      metadata.removeMetadata("reference_orig");
      metadata.removeMetadata("reference_data_store");
      metadata.removeMetadata("reference_fileSize");
      metadata.removeMetadata("reference_mimeType");
     
      // merge new and existing metadata
      metadata.addMetadata(newMetadata);
     
View Full Code Here

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

      // remove product references (as they will be added later)
      metadata.removeMetadata("reference_orig");
      metadata.removeMetadata("reference_data_store");
      metadata.removeMetadata("reference_fileSize");
      metadata.removeMetadata("reference_mimeType");
     
      // merge new and existing metadata
      metadata.addMetadata(newMetadata);
     
      // replace metadata values for keys specified in HTTP request (not others)
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.