Examples of removeMetaData()


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

      }
     
      // remove metadata tags
      if (remove) {
        for (String key : newMetadata.getAllKeys()) {
          metadata.removeMetadata(key);
        }
      }
     
      // insert old and new metadata
      fmClient.updateMetadata(product, metadata);
View Full Code Here

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

                            + ": Message: " + e.getMessage());
        }

        for (Iterator<Element> i = metadataTypes.iterator(); i.hasNext();) {
            Element element = i.next();
            currMet.removeMetadata(element.getElementName());
        }

        p.setMetadata(currMet);

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

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

   * @return A cleansed version of the static and dynamic metadata, merged, and
   *         with {@link #LOCAL_KEYS} removed.
   */
  public Metadata getPassThroughDynamicMetadata() {
    Metadata passThroughMet = new Metadata(this.dynamicMetadata);
    passThroughMet.removeMetadata(LOCAL_KEYS);
    if (this.dynamicMetadata.getAllMetadata(LOCAL_KEYS) != null)
      for (String key : this.dynamicMetadata.getAllMetadata(LOCAL_KEYS))
        passThroughMet.removeMetadata(key);
    if (this.staticMetadata.getAllMetadata(LOCAL_KEYS) != null)
      for (String key : this.staticMetadata.getAllMetadata(LOCAL_KEYS))
View Full Code Here

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

  public Metadata getPassThroughDynamicMetadata() {
    Metadata passThroughMet = new Metadata(this.dynamicMetadata);
    passThroughMet.removeMetadata(LOCAL_KEYS);
    if (this.dynamicMetadata.getAllMetadata(LOCAL_KEYS) != null)
      for (String key : this.dynamicMetadata.getAllMetadata(LOCAL_KEYS))
        passThroughMet.removeMetadata(key);
    if (this.staticMetadata.getAllMetadata(LOCAL_KEYS) != null)
      for (String key : this.staticMetadata.getAllMetadata(LOCAL_KEYS))
        passThroughMet.removeMetadata(key);
    return passThroughMet;
  }
View Full Code Here

Examples of org.bukkit.block.Block.removeMetadata()

        Block block = event.getBlock();
        if (block == null)
            return;
       
        if (block.getType().equals(Material.FURNACE) && block.hasMetadata(furnaceOwnerMetadata))
            block.removeMetadata(furnaceOwnerMetadata, plugin);
       
        // make sure plugin is enabled
        if(!plugin.isEnabled()) return;
       
        Player player = event.getPlayer();
View Full Code Here

Examples of org.bukkit.block.Block.removeMetadata()

        if (block == null)
            return;
       
        if (block.getType().equals(Material.FURNACE)) {
            if (block.hasMetadata(furnaceOwnerMetadata))
                block.removeMetadata(furnaceOwnerMetadata, plugin);
           
            block.setMetadata(furnaceOwnerMetadata, new FixedMetadataValue(plugin, event.getPlayer().getName()));
        } else if (block.getType().equals(Material.BREWING_STAND)) {
            if (block.hasMetadata(brewingOwnerMetadata))
                block.removeMetadata(brewingOwnerMetadata, plugin);
View Full Code Here

Examples of org.bukkit.block.Block.removeMetadata()

                block.removeMetadata(furnaceOwnerMetadata, plugin);
           
            block.setMetadata(furnaceOwnerMetadata, new FixedMetadataValue(plugin, event.getPlayer().getName()));
        } else if (block.getType().equals(Material.BREWING_STAND)) {
            if (block.hasMetadata(brewingOwnerMetadata))
                block.removeMetadata(brewingOwnerMetadata, plugin);
           
            block.setMetadata(brewingOwnerMetadata, new FixedMetadataValue(plugin, event.getPlayer().getName()));
        }
    }
}
View Full Code Here

Examples of org.bukkit.entity.Entity.removeMetadata()

        }

        Entity defender = event.getEntity();

        if (defender.hasMetadata(mcMMO.customDamageKey)) {
            defender.removeMetadata(mcMMO.customDamageKey, plugin);
            return;
        }

        if (Misc.isNPCEntity(defender) || !defender.isValid() || !(defender instanceof LivingEntity)) {
            return;
View Full Code Here

Examples of org.bukkit.entity.LivingEntity.removeMetadata()

            return;
        LivingEntity lVictim = (LivingEntity)event.getEntity();

        // mob spawner, no payment or experience
        if (lVictim.hasMetadata(mobSpawnerMetadata)) {
            lVictim.removeMetadata(mobSpawnerMetadata, plugin);
            return;
        }
       
        // make sure plugin is enabled
        if(!plugin.isEnabled())
View Full Code Here

Examples of org.drools.guvnor.client.modeldriven.brl.RuleModel.removeMetadata()

    m.addMetadata(rm2);
    assertEquals(2, m.metadataList.length);
    assertEquals(rm2, m.metadataList[1]);
    assertEquals("@foo(bar)", rm.toString());

    m.removeMetadata(0);
    assertEquals(1, m.metadataList.length);
    assertEquals(rm2, m.metadataList[0]);
    assertEquals("@foo2(bar2)", (m.metadataList[0]).toString());

    // should be able to find it now that it was removed
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.